Class MLPredict
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.AbstractMLPredict
net.algart.executors.modules.opencv.matrices.ml.prediction.MLPredict
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from class net.algart.executors.api.Executor
net.algart.executors.api.Executor.Timing -
Field Summary
Fields inherited from class net.algart.executors.modules.opencv.matrices.ml.AbstractMLPredict
OUTPUT_IS_CLASSIFIER, OUTPUT_PREDICTION_MODEL_KINDFields 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 TypeMethodDescriptionbooleanbooleanstatic MLPredictstatic MLPredictstatic net.algart.executors.api.data.SMatpredict(MLPredictor predictor, net.algart.executors.api.data.SMat samples, boolean selectIndexesOfMaximalResponses, boolean useGPU) static net.algart.executors.api.data.SNumberspredict(MLPredictor predictor, net.algart.executors.api.data.SNumbers samples, boolean selectIndexesOfMaximalResponses, boolean useGPU) voidprocess()setDefaultPredictor(MLKind.StatModelBased defaultPredictor) setPredictionDTreesMaxVote(boolean predictionDTreesMaxVote) setPredictionDTreesSum(boolean predictionDTreesSum) Methods inherited from class net.algart.executors.modules.opencv.matrices.ml.AbstractMLPredict
doPredict, doPredict, getPredictionFlagByMask, getPredictionFlags, isPredictionRawOutput, isPredictionRoundResponses, isSelectIndexesOfMaximalResponses, predict, predictNumbers, predictPixels, readPredictor, readStandardPredictor, selectIndexesOfMaximalResponses, setPredictionFlagByMask, setPredictionFlags, setPredictionFlags, setPredictionRawOutput, setPredictionRoundResponses, setSelectIndexesOfMaximalResponsesMethods 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, 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, 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, beforeExecutingAll, checkInputNecessary, clearSession, contextPath, freeAllInputPortData, freeAllOutputPortData, freeAllPortData, getCaller, getContextId, getContextName, getContextPath, getCurrentDirectory, getData, getData, getDoubleScalar, getDoubleScalar, getExecutorId, 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, globalExecutorLoaders, hasDefaultInputPort, hasDefaultOutputPort, hasInputPort, hasOutputPort, initializeExecutionSystem, interrupt, isAllOutputsNecessary, isClosed, isInputNecessary, isInterrupted, isInterruptionRequested, isOutputNecessary, isReadOnlyInput, isVisibleResultNecessary, needToRepeat, newExecutor, newExecutor, 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, serializedSpecifications, setAllOutputsNecessary, setBooleanParameter, setCaller, setContextId, setContextId, setContextName, setContextPath, setCurrentDirectory, setDoubleParameter, setExecutorSpecification, setInterruptionRequested, setIntParameter, setLongParameter, setOutputScalar, setOutputScalar, setOutputScalar, setOutputScalar, setOutputScalar, setOutputScalar, setOutputScalarIfNecessary, setOwnerId, setSessionId, 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
-
newPredictNumbers
-
newPredictPixels
-
getDefaultPredictor
-
setDefaultPredictor
-
isPredictionDTreesSum
public boolean isPredictionDTreesSum() -
setPredictionDTreesSum
-
isPredictionDTreesMaxVote
public boolean isPredictionDTreesMaxVote() -
setPredictionDTreesMaxVote
-
process
public void process()- Specified by:
processin classnet.algart.executors.api.Executor
-
predict
public static net.algart.executors.api.data.SNumbers predict(MLPredictor predictor, net.algart.executors.api.data.SNumbers samples, boolean selectIndexesOfMaximalResponses, boolean useGPU) -
predict
public static net.algart.executors.api.data.SMat predict(MLPredictor predictor, net.algart.executors.api.data.SMat samples, boolean selectIndexesOfMaximalResponses, boolean useGPU)
-