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

All Samples(14)  |  Call(10)  |  Derive(0)  |  Import(4)

src/b/i/biopython-1.63/Tests/test_NNExclusiveOr.py   biopython(Download)
from __future__ import print_function
 
from Bio.NeuralNetwork.Training import TrainingExample
from Bio.NeuralNetwork.BackPropagation import Layer
from Bio.NeuralNetwork.BackPropagation.Network import BasicNetwork
    # set up the training examples
    examples = []
    examples.append(TrainingExample([0, 0], [0]))
    examples.append(TrainingExample([0, 1], [1]))
    examples.append(TrainingExample([1, 0], [1]))
    examples.append(TrainingExample([1, 1], [0]))

src/b/i/biopython-HEAD/Tests/test_NNExclusiveOr.py   biopython(Download)
from __future__ import print_function
 
from Bio.NeuralNetwork.Training import TrainingExample
from Bio.NeuralNetwork.BackPropagation import Layer
from Bio.NeuralNetwork.BackPropagation.Network import BasicNetwork
    # set up the training examples
    examples = []
    examples.append(TrainingExample([0, 0], [0]))
    examples.append(TrainingExample([0, 1], [1]))
    examples.append(TrainingExample([1, 0], [1]))
    examples.append(TrainingExample([1, 1], [0]))

src/b/i/biopython-1.63/Tests/test_NNGeneral.py   biopython(Download)
 
# local stuff
from Bio.NeuralNetwork.Training import TrainingExample, ExampleManager
from Bio.NeuralNetwork.StopTraining import ValidationIncreaseStop
 
                inputs.append(random.randrange(1, 7))
            outputs = [random.randrange(1, 7)]
            self.examples.append(TrainingExample(inputs, outputs))
 
    def test_adding_examples(self):

src/b/i/biopython-HEAD/Tests/test_NNGeneral.py   biopython(Download)
 
# local stuff
from Bio.NeuralNetwork.Training import TrainingExample, ExampleManager
from Bio.NeuralNetwork.StopTraining import ValidationIncreaseStop
 
                inputs.append(random.randrange(1, 7))
            outputs = [random.randrange(1, 7)]
            self.examples.append(TrainingExample(inputs, outputs))
 
    def test_adding_examples(self):