Class MLTrainANNMLP
java.lang.Object
net.algart.json.PropertyChecker
net.algart.executors.api.ExecutionBlock
net.algart.executors.api.Executor
net.algart.executors.modules.opencv.common.OpenCVExecutor
net.algart.executors.modules.opencv.matrices.ml.AbstractMLOperation
net.algart.executors.modules.opencv.matrices.ml.AbstractMLTrain
net.algart.executors.modules.opencv.matrices.ml.training.MLTrainANNMLP
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumNested classes/interfaces inherited from class net.algart.executors.api.Executor
net.algart.executors.api.Executor.SystemParameter, net.algart.executors.api.Executor.Timing -
Field Summary
FieldsFields inherited from class net.algart.executors.modules.opencv.matrices.ml.AbstractMLTrain
OUTPUT_ACTUAL_TRAINING_RESPONSES, OUTPUT_IS_CLASSIFIER, OUTPUT_TRAINING_ERROR, OUTPUT_TRAINING_METADATA, OUTPUT_TRAINING_MODEL_FILEFields inherited from class net.algart.executors.modules.opencv.matrices.ml.AbstractMLOperation
INPUT_SAMPLES, INPUT_TRAINING_RESPONSES, MAX_NUMBER_OF_CATEGORICAL_RESPONSES_FOR_CONVERSION_TO_BINARYFields inherited from class net.algart.executors.api.Executor
ENUM_VALUE_OF_NAME_CUSTOM_METHOD, LOG, LOGGABLE_DEBUG, LOGGABLE_INFO, LOGGABLE_TRACE, OUTPUT_EXECUTOR_ID_NAME, OUTPUT_PLATFORM_ID_NAME, OUTPUT_RESOURCE_FOLDER_NAME, STANDARD_VISIBLE_RESULT_PARAMETER_NAMEFields inherited from class net.algart.executors.api.ExecutionBlock
DEFAULT_INPUT_PORT, DEFAULT_OUTPUT_PORT, GLOBAL_SHARED_SESSION_ID, SHOW_INFO_ON_STARTUP -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected voiddoTrain(MLTrainer trainer, org.bytedeco.opencv.opencv_ml.TrainData trainData, int sampleLength, int responseLength) doubledoubledoubledoubledoubleintdoubledoubleint[]intdoubledoubledoubledoubledoubledoubleintdoubledoublebooleanbooleanbooleanstatic voidprotected MLKindstatic MLTrainANNMLPstatic MLTrainANNMLPvoidprocess()setActivationFunction(MLTrainANNMLP.ActivationFunction activationFunction) setActivationFunctionParam1(double activationFunctionParam1) setActivationFunctionParam2(double activationFunctionParam2) setAnnealCoolingRatio(double annealCoolingRatio) setAnnealEnergyRandSeed(Integer annealEnergyRandSeed) setAnnealFinalT(double annealFinalT) setAnnealInitialT(double annealInitialT) setAnnealItePerStep(int annealItePerStep) setBackpropMomentumScale(double backpropMomentumScale) setBackpropWeightScale(double backpropWeightScale) setHiddenLayerSizes(int[] hiddenLayerSizes) setHiddenLayerSizes(String layerSizes) setLayerIndexToGetWeights(int layerIndexToGetWeights) setNoInputScale(boolean noInputScale) setNoOutputScale(boolean noOutputScale) setRpropDW0(double rpropDW0) setRpropDWMax(double rpropDWMax) setRpropDWMin(double rpropDWMin) setRpropDWMinus(double rpropDWMinus) setRpropDWPlus(double rpropDWPlus) setTerminationEpsilon(double terminationEpsilon) setTerminationMaxCount(int terminationMaxCount) setTrainingMethod(MLTrainANNMLP.TrainingMethod trainingMethod) setTrainingMethodParam1(double trainingMethodParam1) setTrainingMethodParam2(double trainingMethodParam2) setUpdateWeights(boolean updateWeights) static StringtoString(org.bytedeco.opencv.opencv_ml.ANN_MLP model) Methods inherited from class net.algart.executors.modules.opencv.matrices.ml.AbstractMLTrain
doCalculateError, doCalculateError, doTrain, doTrain, getTrainingFlagByMask, getTrainingFlags, isCalculateError, isConvertCategoricalResponses, isTestPredictTrainedSamples, isTrainingCombinedSamplesAndResponses, metadata, setCalculateError, setConvertCategoricalResponses, setTestPredictTrainedSamples, setTrainingCombinedSamplesAndResponses, setTrainingFlagByMask, setTrainingFlags, setTrainingFlags, train, trainNumbers, trainPixels, varType, writeTrainerMethods inherited from class net.algart.executors.modules.opencv.matrices.ml.AbstractMLOperation
categoricalToMultiBinaryResponses, categoricalToMultiBinaryResponses, getStatModelFile, samplesType, selectIndexesOfMaximalMultiResponses, selectIndexesOfMaximalMultiResponses, setStatModelFile, statModelFileMethods inherited from class net.algart.executors.modules.opencv.common.OpenCVExecutor
close, isUseGPU, postprocess, putMat, setMat, setUseGPU, useGPUMethods inherited from class net.algart.executors.api.Executor
addServiceTime, allocatedMemory, allOutputContainers, allParameters, checkOutputNecessary, configAllocatedMemory, debugTime, defaultInputPortName, defaultInputPortName, defaultOutputPortName, defaultOutputPortName, defaultVisibleResultsInformation, disableOnChangeParameterAutomatic, disableOnChangeParametersAutomatic, execute, execute, executorModel, executorModel, executorPlatform, executorResourceFolder, fillSystemOutputs, fineAllocatedMemory, finishTimingOfExecutingAll, freeAllInputPortData, freeAllOutputPortData, freeAllPortData, getCurrentDirectory, getEndProcessingTimeStamp, getServiceTime, getStartProcessingTimeStamp, infoTime, initialize, isCancellingExecutionRequested, isCancellingFurtherExecutionRequested, isMultithreadingEnvironment, isTimingEnabled, isUsingVisibleResultParameter, isVisiblePort, isVisibleResultDisabled, logDebug, logDebug, loggingEnabled, logInfo, logInfo, logTrace, logTrace, onChangeParameter, onChangeParameterAutomatic, parameterControlValueType, parameterJavaType, requestCancellingFurtherExecution, requestContinuingFurtherExecution, requestOutput, reset, resetTiming, setCurrentDirectory, setDefaultInputMat, setDefaultInputNumbers, setDefaultInputPort, setDefaultInputScalar, setDefaultOutputMat, setDefaultOutputNumbers, setDefaultOutputPort, setDefaultOutputScalar, setEndProcessingTimeStamp, setMultithreadingEnvironment, setStartProcessingTimeStamp, setTimingEnabled, showStatus, showStatus, skipStandardAutomaticParameters, startTimingOfExecutingAll, status, statusData, toString, translateCurrentDirectory, useVisibleResultParameter, valueOfLogLevel, visibleOutputPortName, visibleResultsInformationMethods inherited from class net.algart.executors.api.ExecutionBlock
addInputData, addInputMat, addInputNumbers, addInputScalar, addOneTimeTaskAfterExecutingAll, addOutputData, addOutputMat, addOutputNumbers, addOutputScalar, addPort, addTaskAfterExecutingAll, addTaskBeforeExecutingAll, afterExecutingAll, allInputPorts, allOneTimeTasksAfterExecutingAll, allOutputPorts, allTasksAfterExecutingAll, allTasksBeforeExecutingAll, availableExecutorModelArray, availableExecutorModelDescriptions, beforeExecutingAll, checkInputNecessary, clearSession, contextPath, getCaller, getContextId, getContextName, getContextPath, getData, getData, getDoubleScalar, getDoubleScalar, getExecutorId, getExecutorModelDescription, getExecutorSpecification, getInputData, getInputData, getInputData, getInputData, getInputDataContainer, getInputDataContainer, getInputMat, getInputMat, getInputMat, getInputMat, getInputMatContainer, getInputMatContainer, getInputNumbers, getInputNumbers, getInputNumbers, getInputNumbers, getInputNumbersContainer, getInputNumbersContainer, getInputPort, getInputScalar, getInputScalar, getInputScalar, getInputScalar, getInputScalarContainer, getInputScalarContainer, getIntScalar, getIntScalar, getLongScalar, getLongScalar, getMat, getMat, getNumbers, getNumbers, getOutputPort, getOwnerId, getPlatformId, getPort, getRequiredInputPort, getRequiredOutputPort, getRootCaller, getScalar, getScalar, getSessionId, getStringScalar, getStringScalar, hasDefaultInputPort, hasDefaultOutputPort, hasInputPort, hasOutputPort, initializeExecutionSystem, interrupt, isAllOutputsNecessary, isClosed, isInputNecessary, isInterrupted, isInterruptionRequested, isOutputNecessary, isReadOnlyInput, isVisibleResultNecessary, needToRepeat, newExecutionBlock, parameters, putDoubleScalar, putDoubleScalar, putIntScalar, putIntScalar, putJsonScalar, putJsonScalar, putLongScalar, putLongScalar, putMat, putMat, putNumbers, putNumbers, putNumbers, putNumbers, putScalar, putScalar, putStringScalar, putStringScalar, recommendedCategory, recommendedName, registerExecutionBlockLoader, removeInputPort, removeOneTimeTaskAfterExecutingAll, removeOutputData, removeOutputPort, removeTaskAfterExecutingAll, removeTaskBeforeExecutingAll, replacePort, setAllOutputsNecessary, setBooleanParameter, setCaller, setContextId, setContextId, setContextName, setContextPath, setDoubleParameter, setInterruptionRequested, setIntParameter, setLongParameter, setOutputScalar, setOutputScalar, setOutputScalar, setOutputScalar, setOutputScalar, setOutputScalar, setOutputScalarIfNecessary, setOwnerId, setSessionId, setStringParameter, setVisibleResultNecessaryMethods inherited from class net.algart.json.PropertyChecker
doubleOrDefault, doubleOrNegativeInfinity, doubleOrNull, doubleOrPositiveInfinity, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, inRange, inRange, inRange, inRange, inRange, inRange, intOrDefault, intOrNull, longOrDefault, longOrNull, nonEmpty, nonEmpty, nonEmptyTrimmed, nonEmptyTrimmed, nonLessThan, nonLessThan, nonLessThan, nonLessThan, nonLessThan, nonLessThan, nonNegative, nonNegative, nonNegative, nonNegative, nonNegative, nonNegative, nonNull, nonNull, positive, positive, positive, positive, positive, positive, propertyName
-
Field Details
-
OUTPUT_LAYER_WEIGHTS
- See Also:
-
-
Method Details
-
newTrainNumbers
-
newTrainPixels
-
getTrainingMethod
-
setTrainingMethod
-
getTrainingMethodParam1
public double getTrainingMethodParam1() -
setTrainingMethodParam1
-
getTrainingMethodParam2
public double getTrainingMethodParam2() -
setTrainingMethodParam2
-
getActivationFunction
-
setActivationFunction
-
getActivationFunctionParam1
public double getActivationFunctionParam1() -
setActivationFunctionParam1
-
getActivationFunctionParam2
public double getActivationFunctionParam2() -
setActivationFunctionParam2
-
getHiddenLayerSizes
public int[] getHiddenLayerSizes() -
setHiddenLayerSizes
-
setHiddenLayerSizes
-
getBackpropMomentumScale
public double getBackpropMomentumScale() -
setBackpropMomentumScale
-
getBackpropWeightScale
public double getBackpropWeightScale() -
setBackpropWeightScale
-
getRpropDW0
public double getRpropDW0() -
setRpropDW0
-
getRpropDWMax
public double getRpropDWMax() -
setRpropDWMax
-
getRpropDWMin
public double getRpropDWMin() -
setRpropDWMin
-
getRpropDWMinus
public double getRpropDWMinus() -
setRpropDWMinus
-
getRpropDWPlus
public double getRpropDWPlus() -
setRpropDWPlus
-
getAnnealCoolingRatio
public double getAnnealCoolingRatio() -
setAnnealCoolingRatio
-
getAnnealFinalT
public double getAnnealFinalT() -
setAnnealFinalT
-
getAnnealInitialT
public double getAnnealInitialT() -
setAnnealInitialT
-
getAnnealItePerStep
public int getAnnealItePerStep() -
setAnnealItePerStep
-
getAnnealEnergyRandSeed
-
setAnnealEnergyRandSeed
-
isUpdateWeights
public boolean isUpdateWeights() -
setUpdateWeights
-
isNoInputScale
public boolean isNoInputScale() -
setNoInputScale
-
isNoOutputScale
public boolean isNoOutputScale() -
setNoOutputScale
-
getTerminationMaxCount
public int getTerminationMaxCount() -
setTerminationMaxCount
-
getTerminationEpsilon
public double getTerminationEpsilon() -
setTerminationEpsilon
-
getLayerIndexToGetWeights
public int getLayerIndexToGetWeights() -
setLayerIndexToGetWeights
-
process
public void process()- Specified by:
processin classnet.algart.executors.api.Executor
-
doTrain
protected void doTrain(MLTrainer trainer, org.bytedeco.opencv.opencv_ml.TrainData trainData, int sampleLength, int responseLength) - Overrides:
doTrainin classAbstractMLTrain
-
toString
-
modelKind
- Specified by:
modelKindin classAbstractMLTrain
-
categoricalResponses
protected boolean categoricalResponses()- Specified by:
categoricalResponsesin classAbstractMLTrain
-
main
-