diff options
author | Christoph Helma <helma@in-silico.ch> | 2017-01-11 16:00:07 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2017-01-11 16:00:07 +0100 |
commit | 85553b339acf3f9285a1c03b2fff342d9ddb9b6b (patch) | |
tree | a00b5879578ed07ed2bea7b67c8da3896b43bc5d /lib/feature_selection.rb | |
parent | f522a1089af8775798450b3f9f0aa4b579a3e1b5 (diff) |
documentation for all classes
Diffstat (limited to 'lib/feature_selection.rb')
-rw-r--r-- | lib/feature_selection.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/feature_selection.rb b/lib/feature_selection.rb index 65f9752..c596b1f 100644 --- a/lib/feature_selection.rb +++ b/lib/feature_selection.rb @@ -1,13 +1,16 @@ module OpenTox module Algorithm + # Feature selection algorithms class FeatureSelection + # Select features correlated to the models prediction feature + # @param [OpenTox::Model::Lazar] def self.correlation_filter model relevant_features = {} R.assign "dependent", model.dependent_variables.collect{|v| to_r(v)} model.descriptor_weights = [] - selected_variables = [] + selected_variables = [] selected_descriptor_ids = [] model.independent_variables.each_with_index do |v,i| v.collect!{|n| to_r(n)} |