Class: FSelector::FTest

Inherits:
BaseContinuous show all
Defined in:
lib/fselector/algo_continuous/F-Test.rb

Overview

F-Test (FT) based on F-statistics for continuous feature

      between-group variability
FT = ---------------------------
      within-group variability

      sigma_k n_k*(ybar_k - ybar)^2 / (K-1)
   = --------------------------------------
      sigma_ik (y_ik - ybar_k)^2 / (N-K)

where n_k is the sample size of class k
      ybar_k is the sample mean of class k
      ybar is the overall smaple mean
      K is the number of classes
      y_ik is the value of sample i of class k
      N is the overall sample size

ref: Wikipedia and Minimum redundancy feature selection from microarray gene expression data

Method Summary

Methods inherited from BaseContinuous

#initialize

Methods included from Normalizer

#normalize_by_log!, #normalize_by_min_max!, #normalize_by_zscore!

Methods inherited from Base

#algo_type, #each_class, #each_feature, #each_sample, #get_class_labels, #get_classes, #get_data, #get_data_copy, #get_feature_ranks, #get_feature_scores, #get_feature_type, #get_feature_values, #get_features, #get_opt, #get_sample_size, #initialize, #select_feature!, #select_feature_by_rank!, #select_feature_by_score!, #set_classes, #set_data, #set_feature_type, #set_features, #set_opt

Methods included from ReplaceMissingValues

#replace_by_fixed_value!, #replace_by_knn_value!, #replace_by_mean_value!, #replace_by_median_value!, #replace_by_most_seen_value!

Methods included from FileIO

#data_from_csv, #data_from_libsvm, #data_from_random, #data_from_url, #data_from_weka, #data_to_csv, #data_to_libsvm, #data_to_weka

Constructor Details

This class inherits a constructor from FSelector::BaseContinuous