Skip to content
This repository has been archived by the owner on Jul 10, 2021. It is now read-only.

Commit

Permalink
Merge 28bbc16 into c638eef
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjc committed Apr 27, 2015
2 parents c638eef + 28bbc16 commit 3b716de
Show file tree
Hide file tree
Showing 12 changed files with 384 additions and 147 deletions.
10 changes: 5 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,17 @@ The library supports both regressors (to estimate continuous outputs) and classi

.. code:: python
import sknn.mlp
from sknn import mlp
nn = sknn.mlp.MultiLayerPerceptronClassifier(
layers=[("Rectifier", 100), ("Linear",)],
nn = mlp.Classifier(
layers=[mlp.Layer("Rectifier", units=100), mlp.Layer("Linear")],
learning_rate=0.02,
n_iter=10)
nn.fit(X_train, y_train)
nn.predict(X_test)
nn.predict(X_valid)
nn.score(X_valid, y_valid)
nn.score(X_test, y_test)
We currently recommend reading ``sknn/mlp.py`` for more information about the parameters. There's also `generated documentation <http://scikit-neuralnetwork.readthedocs.org/>`_ as a standalone page.

Expand Down
10 changes: 5 additions & 5 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ The library supports both regressors (to estimate continuous outputs) and classi

.. code:: python
import sknn.mlp
from sknn import mlp
nn = sknn.mlp.MultiLayerPerceptronClassifier(
layers=[("Rectifier", 100), ("Linear",)],
nn = mlp.Classifier(
layers=[mlp.Layer("Rectifier", units=100), mlp.Layer("Linear")],
learning_rate=0.02,
n_iter=10)
nn.fit(X_train, y_train)
nn.predict(X_test)
nn.predict(X_valid)
nn.score(X_valid, y_valid)
nn.score(X_test, y_test)
You can also use a ``MultiLayerPerceptronRegressor`` in the exact same way. See the documentation in :mod:`sknn.mlp` for details about the construction parameters.

Expand Down

0 comments on commit 3b716de

Please sign in to comment.