Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/m/o/mozsci-HEAD/test/test_pybrain_wrapper.py   mozsci(Download)
 
import unittest
from mozsci.models.pybrain_wrapper import PyBrainNN
import numpy as np
import json
               [1, 1]])
        y = np.array([0, 1, 1, 0])
        net = PyBrainNN(learning_rate=learning_rate, maxiterations=10000, lam=0.0, args=(2, 3, 1), kwargs={'fast':True, 'bias':True})
        net.fit(X, y)