de.webdings.jannis.neuralnet

Class TrainingCoordinator


public class TrainingCoordinator
extends Coordinator

TrainingCoordinator is a subclass of Coordinator. It does the same as its superclass yet it also features a Teacher and calls its method Teacher.teach() at the appropriate time.

Version:
0.1 11.08.2005

Author:
Copyright 2005 by Stefan Thesing Website: http://www.webdings.de

Field Summary

Teacher
teacher
See Teacher

Fields inherited from class de.webdings.jannis.neuralnet.Coordinator

giver, layers, reader

Constructor Summary

TrainingCoordinator(NeuralNet net, String fileNameInputPattern, String fileNameDesiredOutputPattern)
TrainingCoordinator(NeuralNet net, String fileNameInputPattern, Pattern[] desiredOutputPattern)
TrainingCoordinator(NeuralNet net, String fileNameInputPattern, Teacher teacher)
TrainingCoordinator(NeuralNet net, PatternGiver giver, PatternReader reader, Pattern[] desiredOutputPattern)
TrainingCoordinator(NeuralNet net, Pattern[] inputPattern, Pattern[] desiredOutputPattern)
TrainingCoordinator(Neuron[][] layers, String fileNameInputPattern, String fileNameDesiredOutputPattern)
TrainingCoordinator(Neuron[][] layers, String fileNameInputPattern, Pattern[] desiredOutputPattern)
TrainingCoordinator(Neuron[][] layers, String fileNameInputPattern, Teacher teacher)
TrainingCoordinator(Neuron[][] layers, PatternGiver giver, PatternReader reader, Pattern[] desiredOutputPattern)
TrainingCoordinator(Neuron[][] layers, Pattern[] inputPattern, Pattern[] desiredOutputPattern)

Method Summary

void
start()
This method overwrites the method of the superclass.

Methods inherited from class de.webdings.jannis.neuralnet.Coordinator

clearAll, savePattern, start

Field Details

teacher

public Teacher teacher
See Teacher

Constructor Details

TrainingCoordinator

public TrainingCoordinator(NeuralNet net,
                           String fileNameInputPattern,
                           String fileNameDesiredOutputPattern)
            throws IOException,
                   PatternCreateException,
                   PatternLayerMismatchException

Parameters:
net - The neural net to be coordinated
fileNameInputPattern - Name of the file containing the input pattern used for the training
fileNameDesiredOutputPattern -

Throws:
PatternCreateException - PatternCreateException
PatternLayerMismatchException -


TrainingCoordinator

public TrainingCoordinator(NeuralNet net,
                           String fileNameInputPattern,
                           Pattern[] desiredOutputPattern)
            throws IOException,
                   PatternCreateException,
                   PatternLayerMismatchException

Parameters:
net - The neural net to be coordinated
fileNameInputPattern - Name of the file containing the input pattern used for the training
desiredOutputPattern -

Throws:
PatternCreateException - PatternCreateException
PatternLayerMismatchException -


TrainingCoordinator

public TrainingCoordinator(NeuralNet net,
                           String fileNameInputPattern,
                           Teacher teacher)
            throws IOException,
                   PatternCreateException,
                   PatternLayerMismatchException

Parameters:
net - The neural net to be coordinated
fileNameInputPattern - Name of the file containing the input pattern used for the training
teacher - The teacher used for this training

Throws:
PatternCreateException - See PatternCreateException
PatternLayerMismatchException -


TrainingCoordinator

public TrainingCoordinator(NeuralNet net,
                           PatternGiver giver,
                           PatternReader reader,
                           Pattern[] desiredOutputPattern)
            throws PatternLayerMismatchException

Parameters:
net - The neural net to be coordinated
giver -
reader -
desiredOutputPattern -

Throws:
PatternLayerMismatchException -


TrainingCoordinator

public TrainingCoordinator(NeuralNet net,
                           Pattern[] inputPattern,
                           Pattern[] desiredOutputPattern)
            throws PatternLayerMismatchException

Parameters:
net - The neural net to be coordinated
inputPattern - the input pattern used for the training
desiredOutputPattern -

Throws:
PatternLayerMismatchException -


TrainingCoordinator

public TrainingCoordinator(Neuron[][] layers,
                           String fileNameInputPattern,
                           String fileNameDesiredOutputPattern)
            throws IOException,
                   PatternCreateException,
                   PatternLayerMismatchException

Parameters:
layers - The layers of the neural net to be coordinated
fileNameInputPattern - Name of the file containing the input pattern used for the training
fileNameDesiredOutputPattern -

Throws:
PatternCreateException - PatternCreateException
PatternLayerMismatchException -


TrainingCoordinator

public TrainingCoordinator(Neuron[][] layers,
                           String fileNameInputPattern,
                           Pattern[] desiredOutputPattern)
            throws IOException,
                   PatternCreateException,
                   PatternLayerMismatchException

Parameters:
layers - The layers of the neural net to be coordinated
fileNameInputPattern - Name of the file containing the input pattern used for the training
desiredOutputPattern -

Throws:
PatternCreateException -
PatternLayerMismatchException -


TrainingCoordinator

public TrainingCoordinator(Neuron[][] layers,
                           String fileNameInputPattern,
                           Teacher teacher)
            throws IOException,
                   PatternCreateException,
                   PatternLayerMismatchException

Parameters:
layers - The layers of the neural net to be coordinated
fileNameInputPattern - Name of the file containing the input pattern used for the training
teacher - The teacher used for this training

Throws:
PatternCreateException - PatternCreateException
PatternLayerMismatchException -


TrainingCoordinator

public TrainingCoordinator(Neuron[][] layers,
                           PatternGiver giver,
                           PatternReader reader,
                           Pattern[] desiredOutputPattern)
            throws PatternLayerMismatchException

Parameters:
layers - The layers of the neural net to be coordinated
giver -
reader -
desiredOutputPattern -

Throws:
PatternLayerMismatchException -


TrainingCoordinator

public TrainingCoordinator(Neuron[][] layers,
                           Pattern[] inputPattern,
                           Pattern[] desiredOutputPattern)
            throws PatternLayerMismatchException

Parameters:
layers - The layers of the neural net to be coordinated
inputPattern - the input pattern used for the training
desiredOutputPattern -

Throws:
PatternLayerMismatchException -

Method Details

start

public void start()
            throws PatternGiverReaderCommunicationException
This method overwrites the method of the superclass. It does the same as Coordinator.start(), but additionally calls the method Teacher.teach() at the appropriate time.
Overrides:
start in interface Coordinator

See Also:
Coordinator.start()


TrainingCoordinator.java - Copyright (c) 2005 by Stefan Thesing

This file is part of Jannis.

Jannis is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Jannis is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Jannis; if not, write to the
Free Software Foundation, Inc.,
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA



© 2005 by Stefan Thesing;
Verbatim copying and redistribution of this entire page are permitted provided this notice is preserved.