public interface XGBoostOutputConverter<T extends Output<T>> extends Serializable
Modifier and Type | Method and Description |
---|---|
List<Prediction<T>> |
convertBatchOutput(ImmutableOutputInfo<T> info,
List<float[][]> probabilities,
int[] numValidFeatures,
Example<T>[] examples)
Converts a list of float arrays from XGBoost Boosters into a Tribuo
Prediction . |
Prediction<T> |
convertOutput(ImmutableOutputInfo<T> info,
List<float[]> probabilities,
int numValidFeatures,
Example<T> example)
Converts a list of float arrays from XGBoost Boosters into a Tribuo
Prediction . |
boolean |
generatesProbabilities()
Does this converter produce probabilities?
|
boolean generatesProbabilities()
Prediction<T> convertOutput(ImmutableOutputInfo<T> info, List<float[]> probabilities, int numValidFeatures, Example<T> example)
Prediction
.info
- The output info.probabilities
- The XGBoost output.numValidFeatures
- The number of valid features used in the prediction.example
- The example this prediction was generated from.List<Prediction<T>> convertBatchOutput(ImmutableOutputInfo<T> info, List<float[][]> probabilities, int[] numValidFeatures, Example<T>[] examples)
Prediction
.info
- The output info.probabilities
- The XGBoost output, list dimension is across models, first array dimension is across examples, second array dimension is across outputs.numValidFeatures
- The number of valid features used in each prediction.examples
- The examples these predictions were generated from.Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.