Class: FSelector::LasVegasFilter

Inherits:
Base
  • Object
show all
Includes:
Consistency
Defined in:
lib/fselector/algo_both/LasVegasFilter.rb

Overview

Note:

we only keep one of the equivalently good solutions

Las Vegas Filter (LVF) for discrete, continuous or mixed feature, use select_feature! for feature selection

ref: Review and Evaluation of Feature Selection Algorithms in Synthetic Problems

Instance Method Summary collapse

Methods included from Consistency

#get_IR, #get_IR_by_count, #get_IR_by_feature, #get_instance_count

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, #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

#initialize(max_iter = 100, data = nil) ⇒ LasVegasFilter

initialize from an existing data structure


25
26
27
28
29
# File 'lib/fselector/algo_both/LasVegasFilter.rb', line 25

def initialize(max_iter=100, data=nil)
  super(data)
  
  @max_iter = max_iter || 100
end