Research Article
[Retracted] Economic Order Quantity Model-Based Optimized Fuzzy Nonlinear Dynamic Mathematical Schemes
Algorithm 1
Fuzzy mathematical model algorithm.
| from numpy import where | | from sklearn.datasets import make_classification | | from matplotlib import pyplot | | Step 1 | | # define data set | | X, y = make_classification(n_samples = 1000, n_features = 2, n_informative = 2, | | n_redundant = 0, n_clusters_per_class = 1, random_state = 4) | | Step 2 | | # create scatter plot for samples from each class | | for class_value in range (2): | | step 3 | | # get row indexes for samples with this class | | row_ix = where (y = = class_value) | | step 4 | | # create scatter of these samples | | pyplot.scatter (X [row_ix, 0], X [row_ix, 1]) | | step 5 | | # show the plot | | pyplot.show () |
|