Class MLTrainBoost
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.MLTrainBoost
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.algart.executors.api.Executor
net.algart.executors.api.Executor.TimingNested classes/interfaces inherited from class net.algart.executors.api.ExecutionBlock
net.algart.executors.api.ExecutionBlock.ExecutionMode -
Field Summary
Fields 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, EXTENDED_MODE, GLOBAL_SHARED_SESSION_ID, SHOW_INFO_ON_STARTUP -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanintintintfloat[]doubleintdoublebooleanbooleanbooleanprotected MLKindstatic MLTrainBooststatic MLTrainBoostvoidprocess()setBoostType(MLTrainBoost.BoostType boostType) net.algart.executors.modules.opencv.matrices.ml.training.MLTrainDTreessetCvFolds(int cvFolds) net.algart.executors.modules.opencv.matrices.ml.training.MLTrainDTreessetMaxCategories(int maxCategories) net.algart.executors.modules.opencv.matrices.ml.training.MLTrainDTreessetMaxDepth(Integer maxDepth) net.algart.executors.modules.opencv.matrices.ml.training.MLTrainDTreessetMinSampleCount(int minSampleCount) net.algart.executors.modules.opencv.matrices.ml.training.MLTrainDTreessetPriors(float[] priors) net.algart.executors.modules.opencv.matrices.ml.training.MLTrainDTreesnet.algart.executors.modules.opencv.matrices.ml.training.MLTrainDTreessetRegressionAccuracy(double regressionAccuracy) net.algart.executors.modules.opencv.matrices.ml.training.MLTrainDTreessetTruncatePrunedTree(boolean truncatePrunedTree) net.algart.executors.modules.opencv.matrices.ml.training.MLTrainDTreessetUse1SERule(boolean use1SERule) net.algart.executors.modules.opencv.matrices.ml.training.MLTrainDTreessetUseSurrogates(boolean useSurrogates) setWeakCount(int weakCount) setWeightTrimRate(double weightTrimRate) static StringtoString(org.bytedeco.opencv.opencv_ml.Boost model) static StringtoString(org.bytedeco.opencv.opencv_ml.DTrees model) Methods inherited from class net.algart.executors.modules.opencv.matrices.ml.AbstractMLTrain
doCalculateError, doCalculateError, doTrain, 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, isRelativizePath, samplesType, selectIndexesOfMaximalMultiResponses, selectIndexesOfMaximalMultiResponses, setRelativizePath, 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, executorPlatform, executorResourceFolder, fillSystemOutputs, fineAllocatedMemory, finishTimingOfExecutingAll, getEndProcessingTimeStamp, getServiceTime, getStartProcessingTimeStamp, infoTime, initialize, isCancellingExecutionRequested, isCancellingFurtherExecutionRequested, isMultithreadingEnvironment, isTimingEnabled, isUsingVisibleResultParameter, isVisiblePort, isVisibleResultDisabled, logDebug, logDebug, loggingEnabled, logInfo, logInfo, logTrace, logTrace, ofLogLevel, onChangeParameter, onChangeParameterAutomatic, parameterControlValueType, parameterJavaType, requestCancellingFurtherExecution, requestContinuingFurtherExecution, reset, resetTiming, setDefaultInputMat, setDefaultInputNumbers, setDefaultInputPort, setDefaultInputScalar, setDefaultOutputMat, setDefaultOutputNumbers, setDefaultOutputPort, setDefaultOutputScalar, setEndProcessingTimeStamp, setMultithreadingEnvironment, setStartProcessingTimeStamp, setTimingEnabled, showStatus, showStatus, skipStandardAutomaticParameters, startTimingOfExecutingAll, status, statusData, toString, useVisibleResultParameter, visibleOutputPortName, visibleResultsInformationMethods inherited from class net.algart.executors.api.ExecutionBlock
addInputData, addInputMat, addInputNumbers, addInputScalar, addOneTimeTaskAfterExecutingAll, addOutputData, addOutputMat, addOutputNumbers, addOutputScalar, addPort, addTaskAfterExecutingAll, addTaskBeforeExecutingAll, afterExecutingAll, allOneTimeTasksAfterExecutingAll, allSerializedSpecificationsArray, allTasksAfterExecutingAll, allTasksBeforeExecutingAll, beforeExecutingAll, checkInputNecessary, clearSession, contextPath, freeAllInputPortData, freeAllOutputPortData, freeAllPortData, getCaller, getContextId, getContextName, getContextPath, getCurrentDirectory, getData, getData, getDoubleScalar, getDoubleScalar, getExecutorId, 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, getSpecification, getStringScalar, getStringScalar, globalLoaders, hasDefaultInputPort, hasDefaultOutputPort, hasInputPort, hasOutputPort, initializeExecutionSystem, inputPorts, inputPortsMap, interrupt, isAllOutputsNecessary, isClosed, isInputNecessary, isInterrupted, isInterruptionRequested, isOutputNecessary, isReadOnlyInput, isVisibleResultNecessary, needToRepeat, newExecutor, newExecutor, outputPorts, outputPortsMap, parameters, putDoubleScalar, putDoubleScalar, putIntScalar, putIntScalar, putJsonScalar, putJsonScalar, putLongScalar, putLongScalar, putMat, putMat, putNumbers, putNumbers, putNumbers, putNumbers, putScalar, putScalar, putStringScalar, putStringScalar, recommendedCategory, recommendedName, removeInputPort, removeOneTimeTaskAfterExecutingAll, removeOutputData, removeOutputPort, removeTaskAfterExecutingAll, removeTaskBeforeExecutingAll, replacePort, requestDefaultOutput, requestOutput, setAllOutputsNecessary, setBooleanParameter, setCaller, setContextId, setContextId, setContextName, setContextPath, setCurrentDirectory, setDoubleParameter, setInterruptionRequested, setIntParameter, setLongParameter, setOutputScalar, setOutputScalar, setOutputScalar, setOutputScalar, setOutputScalar, setOutputScalar, setOutputScalarIfNecessary, setOwnerId, setParameter, setParameters, setSession, setSessionId, setShared, setSpecification, setStringParameter, setVisibleResultNecessary, translateCurrentDirectoryMethods 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
-
Method Details
-
newTrainNumbers
-
newTrainPixels
-
getBoostType
-
setBoostType
-
getWeakCount
public int getWeakCount() -
setWeakCount
-
getWeightTrimRate
public double getWeightTrimRate() -
setWeightTrimRate
-
process
public void process()- Specified by:
processin classnet.algart.executors.api.Executor
-
toString
-
modelKind
- Specified by:
modelKindin classAbstractMLTrain
-
categoricalResponses
protected boolean categoricalResponses()- Specified by:
categoricalResponsesin classAbstractMLTrain
-
getCvFolds
public int getCvFolds() -
setCvFolds
public net.algart.executors.modules.opencv.matrices.ml.training.MLTrainDTrees setCvFolds(int cvFolds) -
getMaxCategories
public int getMaxCategories() -
setMaxCategories
public net.algart.executors.modules.opencv.matrices.ml.training.MLTrainDTrees setMaxCategories(int maxCategories) -
getMaxDepth
-
setMaxDepth
public net.algart.executors.modules.opencv.matrices.ml.training.MLTrainDTrees setMaxDepth(Integer maxDepth) -
getMinSampleCount
public int getMinSampleCount() -
setMinSampleCount
public net.algart.executors.modules.opencv.matrices.ml.training.MLTrainDTrees setMinSampleCount(int minSampleCount) -
getPriors
public float[] getPriors() -
setPriors
public net.algart.executors.modules.opencv.matrices.ml.training.MLTrainDTrees setPriors(float[] priors) -
setPriors
public net.algart.executors.modules.opencv.matrices.ml.training.MLTrainDTrees setPriors(String priors) -
getRegressionAccuracy
public double getRegressionAccuracy() -
setRegressionAccuracy
public net.algart.executors.modules.opencv.matrices.ml.training.MLTrainDTrees setRegressionAccuracy(double regressionAccuracy) -
isTruncatePrunedTree
public boolean isTruncatePrunedTree() -
setTruncatePrunedTree
public net.algart.executors.modules.opencv.matrices.ml.training.MLTrainDTrees setTruncatePrunedTree(boolean truncatePrunedTree) -
isUse1SERule
public boolean isUse1SERule() -
setUse1SERule
public net.algart.executors.modules.opencv.matrices.ml.training.MLTrainDTrees setUse1SERule(boolean use1SERule) -
isUseSurrogates
public boolean isUseSurrogates() -
setUseSurrogates
public net.algart.executors.modules.opencv.matrices.ml.training.MLTrainDTrees setUseSurrogates(boolean useSurrogates) -
toString
-