comparison test_mlp.py @ 180:2698c0feeb54

mlp seems to work!
author Yoshua Bengio <bengioy@iro.umontreal.ca>
date Tue, 13 May 2008 15:35:43 -0400
parents 0d8e721cc63c
children 25d0a0c713da
comparison
equal deleted inserted replaced
179:9911d2cc3c01 180:2698c0feeb54
1 1
2 from mlp import * 2 from mlp import *
3 import dataset 3 import dataset
4 4
5 def test0(): 5 def test0():
6 nnet = OneHiddenLayerNNetClassifier(10,3,.1,1000) 6 nnet = OneHiddenLayerNNetClassifier(10,2,.001,1000)
7 training_set = dataset.ArrayDataSet(numpy.array([[0, 0, 0], 7 training_set = dataset.ArrayDataSet(numpy.array([[0, 0, 0],
8 [0, 1, 1], 8 [0, 1, 1],
9 [1, 0, 1], 9 [1, 0, 1],
10 [1, 1, 1]]), 10 [1, 1, 1]]),
11 {'input':slice(2),'target':2}) 11 {'input':slice(2),'target':2})