public class ThreadedBrain extends Brain implements Serializable
#Brain(NetFunction, LinkedList, String)
,
#Brain(NetFunction, LinkedList)
,
Serialized FormConstructor and Description |
---|
ThreadedBrain(NetFunction functg,
LinkedList<Integer> layerSizes,
String inputMappingStyle,
int threads) |
Modifier and Type | Method and Description |
---|---|
Map<String,Double> |
getAllOutputs()
Get the output values for all output neurons in a map
|
double |
getOutput(String name)
Get the output from the single output neuron.
|
void |
setThreads(int threads) |
String |
toString() |
addInput, addInputGroup, addOutput, backPropogate, backPropogate, getInputNode, getInternalLinkCount, incSerial, removeOutput, setAllInput, setHiddenLayers, setInput
public ThreadedBrain(NetFunction functg, LinkedList<Integer> layerSizes, String inputMappingStyle, int threads)
functg
- The function used inside neuronslayerSizes
- a list of hidden layer sizesinputMappingStyle
- Controls how the input layer is connected to the first hidden layer.
public void setThreads(int threads)
public double getOutput(String name)
public Map<String,Double> getAllOutputs()
getAllOutputs
in class Brain