public class ModelDissector extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ModelDissector.Weight |
| Constructor and Description |
|---|
ModelDissector() |
| Modifier and Type | Method and Description |
|---|---|
List<ModelDissector.Weight> |
summary(int n)
Returns the n most important features with their
weights, most important category and the top few
categories that they affect.
|
void |
update(Vector features,
Map<String,Set<Integer>> traceDictionary,
AbstractVectorClassifier learner)
Probes a model to determine the effect of a particular variable.
|
public void update(Vector features, Map<String,Set<Integer>> traceDictionary, AbstractVectorClassifier learner)
features - A feature vector to use (destructively)traceDictionary - A trace dictionary containing variables and what locations
in the feature vector are affected by themlearner - The model that we are probing to find weights on featurespublic List<ModelDissector.Weight> summary(int n)
n - How many results to return.Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.