This repository has been archived by the owner on Jul 10, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Making the new
Layer
-based construction syntax mandatory, porting a…
…ll of the tests accordingly.
- Loading branch information
Showing
10 changed files
with
66 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
import unittest | ||
from nose.tools import (assert_is_not_none, assert_raises, assert_equal) | ||
|
||
from sknn.mlp import MultiLayerPerceptronRegressor as MLPR, MultiLayerPerceptronClassifier as MLPC | ||
from sknn.mlp import MultiLayerPerceptronRegressor as MLPR | ||
from sknn.mlp import Layer as L | ||
|
||
from . import test_linear | ||
|
||
|
||
class TestGaussianOutput(test_linear.TestLinearNetwork): | ||
|
||
def setUp(self): | ||
self.nn = MLPR(layers=[("Gaussian",)], n_iter=1) | ||
self.nn = MLPR(layers=[L("Gaussian")], n_iter=1) | ||
|
||
|
||
class TestSoftmaxOutput(test_linear.TestLinearNetwork): | ||
|
||
def setUp(self): | ||
self.nn = MLPR(layers=[("Softmax",)], n_iter=1) | ||
self.nn = MLPR(layers=[L("Softmax")], n_iter=1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.