File tree 1 file changed +14
-14
lines changed
1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ Here's the Python code if you want to reproduce these plots:
74
74
from mlxtend.evaluate import plot_decision_regions
75
75
from mlxtend.classifier import Perceptron
76
76
from mlxtend.classifier import Adaline
77
- from mlxtend.classifier import NeuralNetMLP
77
+ from mlxtend.classifier import MultiLayerPerceptron
78
78
import numpy as np
79
79
import matplotlib.pyplot as plt
80
80
from sklearn.datasets import make_moons
@@ -90,19 +90,19 @@ ppn.fit(X, y)
90
90
ada = Adaline(epochs = 50 , eta = 0.05 , random_seed = 0 )
91
91
ada.fit(X, y)
92
92
93
- mlp = NeuralNetMLP (n_output = len (np.unique(y)),
94
- n_features = X.shape[1 ],
95
- n_hidden = 150 ,
96
- l2 = 0.0 ,
97
- l1 = 0.0 ,
98
- epochs = 500 ,
99
- eta = 0.01 ,
100
- alpha = 0.0 ,
101
- decrease_const = 0.0 ,
102
- minibatches = 1 ,
103
- shuffle_init = False ,
104
- shuffle_epoch = False ,
105
- random_seed = 0 )
93
+ mlp = MultiLayerPerceptron (n_output = len (np.unique(y)),
94
+ n_features = X.shape[1 ],
95
+ n_hidden = 150 ,
96
+ l2 = 0.0 ,
97
+ l1 = 0.0 ,
98
+ epochs = 500 ,
99
+ eta = 0.01 ,
100
+ alpha = 0.0 ,
101
+ decrease_const = 0.0 ,
102
+ minibatches = 1 ,
103
+ shuffle_init = False ,
104
+ shuffle_epoch = False ,
105
+ random_seed = 0 )
106
106
107
107
mlp = mlp.fit(X, y)
108
108
You can’t perform that action at this time.
0 commit comments