diff options
author | davor <vorgrimmlerdavid@gmx.de> | 2012-01-15 15:52:18 +0100 |
---|---|---|
committer | davor <vorgrimmlerdavid@gmx.de> | 2012-01-15 15:52:18 +0100 |
commit | c19b6a19c8ef0207824b038fade096af84649ea9 (patch) | |
tree | fda58073dc98c97a6efdcfbab7ebc341afa2a11c | |
parent | eff86c3f6c7e99a19edf1e38dee577a9e9080bf7 (diff) |
Lowered sim threshold for cosine similarity to 0.4
-rw-r--r-- | lazar.rb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -135,7 +135,7 @@ post '/lazar/?' do training_features = OpenTox::Dataset.new(feature_dataset_uri) if training_features.feature_type(@subjectid) == "regression" lazar.similarity_algorithm = "Similarity.cosine" - min_sim = 0.6 unless params[:min_sim] + min_sim = 0.4 unless params[:min_sim] raise OpenTox::NotFoundError.new "No pc_type parameter." unless params[:pc_type] end @@ -164,7 +164,7 @@ post '/lazar/?' do entry.keys.each do |feature| # CASE 1: Substructure - if lazar.feature_calculation_algorithm == "Substructure.match" || lazar.feature_calculation_algorithm == "Substructure.match_hits" + if (lazar.feature_calculation_algorithm == "Substructure.match") || (lazar.feature_calculation_algorithm == "Substructure.match_hits") if training_features.features[feature] smarts = training_features.features[feature][OT.smarts] #lazar.fingerprints[compound] << smarts |