public class Excuse<T extends Output<T>> extends Object
Example
, a Prediction
and a Map from String to List of Pairs
that contains the per output explanation.Constructor and Description |
---|
Excuse(Example<T> example,
Prediction<T> prediction,
Map<String,List<com.oracle.labs.mlrg.olcut.util.Pair<String,Double>>> weights)
Constructs an excuse for the prediction of the supplied example, using the feature weights.
|
Modifier and Type | Method and Description |
---|---|
List<com.oracle.labs.mlrg.olcut.util.Pair<String,Double>> |
excuse(String label)
Returns the features involved in this excuse.
|
Example<T> |
getExample()
The example being excused.
|
Prediction<T> |
getPrediction()
Returns the prediction being excused.
|
Map<String,List<com.oracle.labs.mlrg.olcut.util.Pair<String,Double>>> |
getScores()
Returns the scores for all outputs and the relevant feature values.
|
public Excuse(Example<T> example, Prediction<T> prediction, Map<String,List<com.oracle.labs.mlrg.olcut.util.Pair<String,Double>>> weights)
example
- The example to excuse.prediction
- The prediction to excuse.weights
- The feature weights involved.public List<com.oracle.labs.mlrg.olcut.util.Pair<String,Double>> excuse(String label)
label
- The features for the requested output.public Prediction<T> getPrediction()
public Map<String,List<com.oracle.labs.mlrg.olcut.util.Pair<String,Double>>> getScores()
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.