Package com.helix.core.parser.ast
Class OnnxInferenceNode
java.lang.Object
com.helix.core.parser.ast.OnnxInferenceNode
- All Implemented Interfaces:
ExpressionNode
AST node representing an in-process machine learning inference invocation via ONNX Runtime.
Produces a scalar floating-point score (posterior probability or confidence score)
within the range [0.0, 1.0] that can participate in downstream relational and boolean
guard expressions (e.g., ML(fraud_model_v1) > 0.85).
-
Constructor Summary
ConstructorsConstructorDescriptionOnnxInferenceNode(String modelName) Constructs an OnnxInferenceNode with default output tensor mapping ("probabilities", index 1).OnnxInferenceNode(String modelName, String outputTensorName, int outputIndex) Constructs an OnnxInferenceNode with custom output tensor mapping and index. -
Method Summary
Modifier and TypeMethodDescription<R> Raccept(AstVisitor<R> visitor) Accepts an AST visitor.booleanintinthashCode()toString()
-
Constructor Details
-
OnnxInferenceNode
Constructs an OnnxInferenceNode with default output tensor mapping ("probabilities", index 1).- Parameters:
modelName- unique name of the target ONNX model
-
OnnxInferenceNode
Constructs an OnnxInferenceNode with custom output tensor mapping and index.- Parameters:
modelName- unique name of the target ONNX modeloutputTensorName- target output tensor identifier in the ONNX graphoutputIndex- index within the output tensor to extract
-
-
Method Details
-
getModelName
-
getOutputTensorName
-
getOutputIndex
public int getOutputIndex() -
accept
Description copied from interface:ExpressionNodeAccepts an AST visitor.- Specified by:
acceptin interfaceExpressionNode- Type Parameters:
R- return type- Parameters:
visitor- the visitor- Returns:
- result from visitor
-
equals
-
hashCode
public int hashCode() -
toString
-