org.encog.neural.pnn
public class BasicPNN extends AbstractPNN implements MLRegression, MLError, MLClassification
| Constructor and Description |
|---|
BasicPNN(PNNKernelType kernel,
PNNOutputMode outmodel,
int inputCount,
int outputCount)
Construct a BasicPNN network.
|
| Modifier and Type | Method and Description |
|---|---|
double |
calculateError(MLDataSet data)
Calculate the error of the ML method, given a dataset.
|
int |
classify(MLData input)
Classify the input into a group.
|
MLData |
compute(MLData input)
Compute the output from this network.
|
int[] |
getCountPer() |
double[] |
getPriors() |
BasicMLDataSet |
getSamples() |
double[] |
getSigma() |
void |
setSamples(BasicMLDataSet samples) |
void |
updateProperties()
Update any objeccts when a property changes.
|
getDeriv, getDeriv2, getError, getExclude, getInputCount, getKernel, getOutputCount, getOutputMode, isSeparateClass, isTrained, resetConfusion, setError, setExclude, setSeparateClass, setTrainedgetProperties, getPropertyDouble, getPropertyLong, getPropertyString, setProperty, setProperty, setPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInputCountgetOutputCountpublic BasicPNN(PNNKernelType kernel, PNNOutputMode outmodel, int inputCount, int outputCount)
kernel - The kernel to use.outmodel - The output model for this network.inputCount - The number of inputs in this network.outputCount - The number of outputs in this network.public MLData compute(MLData input)
compute in interface MLRegressioncompute in class AbstractPNNinput - The input to the network.public int[] getCountPer()
public double[] getPriors()
public BasicMLDataSet getSamples()
public double[] getSigma()
public void setSamples(BasicMLDataSet samples)
samples - the samples to setpublic void updateProperties()
updateProperties in interface MLPropertiesupdateProperties in class BasicMLpublic double calculateError(MLDataSet data)
calculateError in interface MLErrordata - The dataset.public int classify(MLData input)
classify in interface MLClassificationinput - The input data to classify.Copyright © 2014. All Rights Reserved.