summaryrefslogtreecommitdiff
path: root/views/prediction.haml
diff options
context:
space:
mode:
Diffstat (limited to 'views/prediction.haml')
-rw-r--r--views/prediction.haml16
1 files changed, 0 insertions, 16 deletions
diff --git a/views/prediction.haml b/views/prediction.haml
index e6b4ae4..53a9cfd 100644
--- a/views/prediction.haml
+++ b/views/prediction.haml
@@ -43,7 +43,6 @@
Net cell association
%br
[mL/ug(Mg)]
- -#- @input.sort_by{|d| OpenTox::Feature.find(d[0]).category}.each do |key|
- @input.each{|d| OpenTox::Feature.find(d[0]).category}.each do |key|
- feature = OpenTox::Feature.find_by(:id=>key[0])
- name = feature.name
@@ -95,16 +94,6 @@
%h5.th5 Prediction:
= "not available"
%br
- -#- if @prediction[:rmse]
- %h5.th5
- %a{:href=>"https://en.wikipedia.org/wiki/Root-mean-square_deviation", :rel=>"external"} RMSE:
- = @prediction[:rmse].round(3)
- %br
- -#- if @prediction[:r_squared]
- %h5.th5
- %a{:href=>"https://en.wikipedia.org/wiki/Coefficient_of_determination", :rel=>"external"}= "R"+"<sup>2</sup>"+":"
- = @prediction[:r_squared].round(3)
- %br
- if @prediction[:prediction_interval]
%h5
%a{:href=>"https://en.wikipedia.org/wiki/Prediction_interval", :rel=>"external"} 95% Prediction interval:
@@ -118,7 +107,6 @@
- if !@prediction[:value] && !@prediction[:measurements]
%h5.th5 not available
/ physchem
- -#- @input.sort_by{|d| OpenTox::Feature.find(d[0]).category}.each do |v|
- @input.each do |v|
%td.physchem
%div{:style=>"display:inline-block;padding-right:20px;"}
@@ -131,7 +119,6 @@
- if @prediction[:neighbors]
- @prediction[:neighbors].each_with_index do |neighbor,idx|
- nano = OpenTox::Nanoparticle.find(neighbor["_id"])
- -#- nano.physchem_descriptors.delete_if{|id,v| OpenTox::Feature.find(id).category != "P-CHEM"} if @type == "pc"
%tr
/ ID
%td
@@ -152,9 +139,6 @@
%h5.th5 Measurement:
= neighbor["measurements"][0]
/ Physchem
- -#- nano.physchem_descriptors.delete_if{|id,v| @type == "pc" ? !@pc_relevant_features.include?(OpenTox::Feature.find(id)) : !@pcp_relevant_features.include?(OpenTox::Feature.find(id))}.sort_by{|id,v| OpenTox::Feature.find(id).category}.each do |k,v|
- nano.physchem_descriptors.delete_if{|id,v| @type == "pc" ? !@pc_relevant_features.include?(OpenTox::Feature.find(id)) : !@pcp_relevant_features.include?(OpenTox::Feature.find(id))}.sort_by{|id,v| @pc_relevant_features.index OpenTox::Feature.find(id)}.each do |k,v|
%td.physchem
- -#%div
- %div{:style=>"display:inline-block;padding-right:20px;"}
= v[0].round(3) unless v.nil?