Class RiskMLInterface.PredictionRecord

java.lang.Object
neqsim.process.safety.risk.ml.RiskMLInterface.PredictionRecord
All Implemented Interfaces:
Serializable
Enclosing class:
RiskMLInterface

public static class RiskMLInterface.PredictionRecord extends Object implements Serializable
Prediction record for history tracking.
Version:
1.0
Author:
NeqSim Development Team
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • modelId

      private String modelId
    • timestamp

      private Instant timestamp
    • features

      private Map<String,Double> features
    • prediction

      private double prediction
    • actualValue

      private Double actualValue
    • validated

      private boolean validated
  • Constructor Details

    • PredictionRecord

      public PredictionRecord(String modelId, Map<String,Double> features, double prediction)
      Creates a prediction record with auto-generated timestamp.
      Parameters:
      modelId - model ID
      features - input features
      prediction - predicted value
    • PredictionRecord

      public PredictionRecord(String modelId, Map<String,Double> features, double prediction, Instant timestamp)
      Creates a prediction record with specified timestamp.
      Parameters:
      modelId - model ID
      features - input features
      prediction - predicted value
      timestamp - timestamp of prediction
  • Method Details

    • setActualValue

      public void setActualValue(double actual)
    • getPredictionError

      public double getPredictionError()
    • getModelId

      public String getModelId()
    • getTimestamp

      public Instant getTimestamp()
    • getPrediction

      public double getPrediction()
    • getActualValue

      public Double getActualValue()
    • isValidated

      public boolean isValidated()