lib/fisher_classifier/meta.rb in fisher_classifier-0.0.2 vs lib/fisher_classifier/meta.rb in fisher_classifier-0.0.3
- old
+ new
@@ -38,10 +38,10 @@
def meta_feature_categories(feature)
categories.map do |category|
{
name: category,
- category_prob: category_prob(feature, category),
+ category_prob: category_prob(category, feature),
feature_prob: feature_prob(feature, category),
weighted_prob: weighted_prob(feature, category),
freqsum: feature_freqsum(feature, category)
}
end