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

Commit

Permalink
Testing codepath for splitting data into train/valid sets automatically.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjc committed Apr 21, 2015
1 parent 69c1a40 commit bbcae02
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sknn/tests/test_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ def test_FitTerminateStable(self):

self.nn._fit(a_in, a_out)

def test_FitAutomaticValidation(self):
a_in, a_out = numpy.zeros((8,16)), numpy.zeros((8,4))
self.nn = sknn.mlp.BaseMLP(
layers=[("LinearGaussian",)], learning_rate=0.001,
n_iter=None, n_stable=1, f_stable=0.1,
valid_size=0.25)

self.nn._fit(a_in, a_out)


class TestTrainingOutput(unittest.TestCase):

Expand Down

0 comments on commit bbcae02

Please sign in to comment.