Skip to content

Commit

Permalink
upd MultiLayerPerceptron name
Browse files Browse the repository at this point in the history
  • Loading branch information
rasbt committed Jan 5, 2017
1 parent e8f6402 commit 97d8c22
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions faq/diff-perceptron-adaline-neuralnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Here's the Python code if you want to reproduce these plots:
from mlxtend.evaluate import plot_decision_regions
from mlxtend.classifier import Perceptron
from mlxtend.classifier import Adaline
from mlxtend.classifier import NeuralNetMLP
from mlxtend.classifier import MultiLayerPerceptron
import numpy as np
import matplotlib.pyplot as plt
from sklearn.datasets import make_moons
Expand All @@ -90,19 +90,19 @@ ppn.fit(X, y)
ada = Adaline(epochs=50, eta=0.05, random_seed=0)
ada.fit(X, y)

mlp = NeuralNetMLP(n_output=len(np.unique(y)),
n_features=X.shape[1],
n_hidden=150,
l2=0.0,
l1=0.0,
epochs=500,
eta=0.01,
alpha=0.0,
decrease_const=0.0,
minibatches=1,
shuffle_init=False,
shuffle_epoch=False,
random_seed=0)
mlp = MultiLayerPerceptron(n_output=len(np.unique(y)),
n_features=X.shape[1],
n_hidden=150,
l2=0.0,
l1=0.0,
epochs=500,
eta=0.01,
alpha=0.0,
decrease_const=0.0,
minibatches=1,
shuffle_init=False,
shuffle_epoch=False,
random_seed=0)

mlp = mlp.fit(X, y)

Expand Down

0 comments on commit 97d8c22

Please sign in to comment.