Class OCIRegressorConverter
java.lang.Object
org.tribuo.interop.oci.OCIRegressorConverter
- All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.config.Configurable,com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>,Serializable,OCIOutputConverter<Regressor>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertOutput(DenseMatrix scores, int[] numValidFeatures, List<Example<Regressor>> examples, ImmutableOutputInfo<Regressor> outputIDInfo) Converts a dense matrix into a list of predictions of the appropriate type.convertOutput(DenseVector scores, int numValidFeature, Example<Regressor> example, ImmutableOutputInfo<Regressor> outputIDInfo) Converts a dense vector into a single prediction of the appropriate type.booleanDoes this OCIOutputConverter generate probabilities?com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenancetoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.oracle.labs.mlrg.olcut.config.Configurable
postConfig
-
Constructor Details
-
OCIRegressorConverter
public OCIRegressorConverter()Constructs an OCIRegressorConverter.
-
-
Method Details
-
convertOutput
public Prediction<Regressor> convertOutput(DenseVector scores, int numValidFeature, Example<Regressor> example, ImmutableOutputInfo<Regressor> outputIDInfo) Description copied from interface:OCIOutputConverterConverts a dense vector into a single prediction of the appropriate type.- Specified by:
convertOutputin interfaceOCIOutputConverter<Regressor>- Parameters:
scores- The score vector.numValidFeature- The number of valid features (stored in the prediction).example- The example (stored in the prediction).outputIDInfo- The output information.- Returns:
- A prediction representing the value of this score vector.
-
convertOutput
public List<Prediction<Regressor>> convertOutput(DenseMatrix scores, int[] numValidFeatures, List<Example<Regressor>> examples, ImmutableOutputInfo<Regressor> outputIDInfo) Description copied from interface:OCIOutputConverterConverts a dense matrix into a list of predictions of the appropriate type.- Specified by:
convertOutputin interfaceOCIOutputConverter<Regressor>- Parameters:
scores- The score matrix.numValidFeatures- The number of valid features in each example (stored in the prediction).examples- The examples (stored in the prediction).outputIDInfo- The output information.- Returns:
- A list of predictions representing the value of this score matrix.
-
generatesProbabilities
public boolean generatesProbabilities()Description copied from interface:OCIOutputConverterDoes this OCIOutputConverter generate probabilities?- Specified by:
generatesProbabilitiesin interfaceOCIOutputConverter<Regressor>- Returns:
- True if it produces a probability distribution in the
Prediction.
-
toString
-
getProvenance
public com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance getProvenance()- Specified by:
getProvenancein interfacecom.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>
-