public static class MutualInformationFeatureSelection.MutualInformationStats<OUTCOME_T> extends Object
Modifier and Type | Field and Description |
---|---|
protected com.google.common.collect.Table<String,OUTCOME_T,Integer> |
classConditionalCounts |
protected com.google.common.collect.Multiset<OUTCOME_T> |
classCounts |
protected double |
smoothingCount |
Constructor and Description |
---|
MutualInformationStats(double smoothingCount) |
Modifier and Type | Method and Description |
---|---|
com.google.common.base.Function<String,Double> |
getScoreFunction(MutualInformationFeatureSelection.CombineScoreMethod combineScoreMethod) |
double |
mutualInformation(String featureName,
OUTCOME_T outcome) |
void |
save(URI outputURI) |
void |
update(String featureName,
OUTCOME_T outcome,
int occurrences) |
protected com.google.common.collect.Multiset<OUTCOME_T> classCounts
protected com.google.common.collect.Table<String,OUTCOME_T,Integer> classConditionalCounts
protected double smoothingCount
public void save(URI outputURI) throws IOException
IOException
public com.google.common.base.Function<String,Double> getScoreFunction(MutualInformationFeatureSelection.CombineScoreMethod combineScoreMethod)
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.