public class RegressorTransformer extends Object implements OutputTransformer<Regressor>
Constructor and Description |
---|
RegressorTransformer() |
Modifier and Type | Method and Description |
---|---|
boolean |
generatesProbabilities()
Does this OutputTransformer generate probabilities.
|
com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance |
getProvenance() |
String |
toString() |
List<Regressor> |
transformToBatchOutput(List<ai.onnxruntime.OnnxValue> tensor,
ImmutableOutputInfo<Regressor> outputIDInfo)
Converts a
OnnxValue containing multiple outputs into a list of Output s. |
List<Prediction<Regressor>> |
transformToBatchPrediction(List<ai.onnxruntime.OnnxValue> tensor,
ImmutableOutputInfo<Regressor> outputIDInfo,
int[] numValidFeatures,
List<Example<Regressor>> examples)
Converts a
OnnxValue containing multiple outputs into a list of Prediction s. |
Regressor |
transformToOutput(List<ai.onnxruntime.OnnxValue> tensor,
ImmutableOutputInfo<Regressor> outputIDInfo)
Converts a
OnnxValue into the specified output type. |
Prediction<Regressor> |
transformToPrediction(List<ai.onnxruntime.OnnxValue> tensor,
ImmutableOutputInfo<Regressor> outputIDInfo,
int numValidFeatures,
Example<Regressor> example)
Converts a
OnnxValue into a Prediction . |
public Prediction<Regressor> transformToPrediction(List<ai.onnxruntime.OnnxValue> tensor, ImmutableOutputInfo<Regressor> outputIDInfo, int numValidFeatures, Example<Regressor> example)
OutputTransformer
OnnxValue
into a Prediction
.transformToPrediction
in interface OutputTransformer<Regressor>
tensor
- The value to convert.outputIDInfo
- The output info to use to identify the outputs.numValidFeatures
- The number of valid features used by the prediction.example
- The example to insert into the prediction.public Regressor transformToOutput(List<ai.onnxruntime.OnnxValue> tensor, ImmutableOutputInfo<Regressor> outputIDInfo)
OutputTransformer
OnnxValue
into the specified output type.transformToOutput
in interface OutputTransformer<Regressor>
tensor
- The value to convert.outputIDInfo
- The output info to use to identify the outputs.public List<Prediction<Regressor>> transformToBatchPrediction(List<ai.onnxruntime.OnnxValue> tensor, ImmutableOutputInfo<Regressor> outputIDInfo, int[] numValidFeatures, List<Example<Regressor>> examples)
OutputTransformer
OnnxValue
containing multiple outputs into a list of Prediction
s.transformToBatchPrediction
in interface OutputTransformer<Regressor>
tensor
- The value to convert.outputIDInfo
- The output info to use to identify the outputs.numValidFeatures
- The number of valid features used by the prediction.examples
- The example to insert into the prediction.public List<Regressor> transformToBatchOutput(List<ai.onnxruntime.OnnxValue> tensor, ImmutableOutputInfo<Regressor> outputIDInfo)
OutputTransformer
OnnxValue
containing multiple outputs into a list of Output
s.transformToBatchOutput
in interface OutputTransformer<Regressor>
tensor
- The value to convert.outputIDInfo
- The output info to use to identify the outputs.public boolean generatesProbabilities()
OutputTransformer
generatesProbabilities
in interface OutputTransformer<Regressor>
Prediction
.public com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance getProvenance()
getProvenance
in interface com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.