org.encog.neural.pattern
Class SVMPattern
- java.lang.Object
-
- org.encog.neural.pattern.SVMPattern
-
- All Implemented Interfaces:
- NeuralNetworkPattern
public class SVMPattern extends java.lang.Object implements NeuralNetworkPattern
A pattern to create support vector machines.
-
-
Constructor Summary
Constructors Constructor and Description SVMPattern()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddHiddenLayer(int count)Unused, a BAM has no hidden layers.voidclear()Clear any settings on the pattern.MLMethodgenerate()Generate the specified neural network.intgetInputNeurons()intgetOutputNeurons()booleanisRegression()voidsetActivationFunction(ActivationFunction activation)Not used, the BAM uses a bipoloar activation function.voidsetInputNeurons(int count)Set the number of input neurons.voidsetKernelType(KernelType kernelType)Set the kernel type.voidsetOutputNeurons(int count)Set the number of output neurons.voidsetRegression(boolean regression)Set if regression is used.voidsetSVMType(SVMType svmType)Set the SVM type.
-
-
-
Method Detail
-
addHiddenLayer
public void addHiddenLayer(int count)
Unused, a BAM has no hidden layers.- Specified by:
addHiddenLayerin interfaceNeuralNetworkPattern- Parameters:
count- Not used.
-
clear
public void clear()
Clear any settings on the pattern.- Specified by:
clearin interfaceNeuralNetworkPattern
-
generate
public MLMethod generate()
Description copied from interface:NeuralNetworkPatternGenerate the specified neural network.- Specified by:
generatein interfaceNeuralNetworkPattern- Returns:
- The generated network.
-
getInputNeurons
public int getInputNeurons()
- Returns:
- The input neuron count.
-
getOutputNeurons
public int getOutputNeurons()
- Returns:
- The input output count.
-
isRegression
public boolean isRegression()
- Returns:
- True, if this is regression.
-
setActivationFunction
public void setActivationFunction(ActivationFunction activation)
Not used, the BAM uses a bipoloar activation function.- Specified by:
setActivationFunctionin interfaceNeuralNetworkPattern- Parameters:
activation- Not used.
-
setInputNeurons
public void setInputNeurons(int count)
Set the number of input neurons.- Specified by:
setInputNeuronsin interfaceNeuralNetworkPattern- Parameters:
count- The number of input neurons.
-
setKernelType
public void setKernelType(KernelType kernelType)
Set the kernel type.- Parameters:
kernelType- The kernel type.
-
setOutputNeurons
public void setOutputNeurons(int count)
Set the number of output neurons.- Specified by:
setOutputNeuronsin interfaceNeuralNetworkPattern- Parameters:
count- The output neuron count.
-
setRegression
public void setRegression(boolean regression)
Set if regression is used.- Parameters:
regression- True if regression is used.
-
setSVMType
public void setSVMType(SVMType svmType)
Set the SVM type.- Parameters:
svmType- The SVM type.
-
-
DMelt 3.0 © DataMelt by jWork.ORG