Class MLIntegrationExamples.ThresholdModel
java.lang.Object
neqsim.process.safety.risk.ml.MLIntegrationExamples.BaseMLAdapter
neqsim.process.safety.risk.ml.MLIntegrationExamples.ThresholdModel
- All Implemented Interfaces:
Serializable, MLIntegrationExamples.MLModelAdapter
- Enclosing class:
MLIntegrationExamples
public static class MLIntegrationExamples.ThresholdModel
extends MLIntegrationExamples.BaseMLAdapter
Simple threshold-based model for testing and fallback.
- Since:
- 3.3.0
- Version:
- 1.0
- Author:
- NeqSim Development Team
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longFields inherited from class MLIntegrationExamples.BaseMLAdapter
featureDefaults, inputFeatures, isLoaded, modelName -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class MLIntegrationExamples.BaseMLAdapter
getInputFeatures, getModelName, isLoaded, prepareInput
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
thresholds
-
weights
-
-
Constructor Details
-
ThresholdModel
Creates a threshold model.- Parameters:
modelName- model name
-
-
Method Details
-
addThreshold
Adds a threshold rule.- Parameters:
feature- feature namethreshold- threshold valueweight- contribution weight when threshold exceeded
-
predict
Description copied from interface:MLIntegrationExamples.MLModelAdapterPredicts output from input features.- Parameters:
features- input features as name-value map- Returns:
- prediction score or probability
-