diff options
Diffstat (limited to 'views/predict.haml')
-rw-r--r-- | views/predict.haml | 74 |
1 files changed, 24 insertions, 50 deletions
diff --git a/views/predict.haml b/views/predict.haml index 273e567..de92c15 100644 --- a/views/predict.haml +++ b/views/predict.haml @@ -103,53 +103,24 @@ // whole site content needs to be in one form. Input and checkboxes are proofed by js functions. %form{:name => "form", :action => to('/predict'), :method => "post", :enctype => "multipart/form-data", :onsubmit => "return !!(showcircle())" } %fieldset#top.well - %div.row - %h2.col-md-6 1. Draw a chemical structure - %h2.col-md-6 Select csv file - %div.row - %div.col-md-6 - #insert - %label - #appletContainer - %br - %label{:for => 'identifier'} - or enter the - %a{:href => "http://en.wikipedia.org/wiki/Simplified_molecular_input_line_entry_specification", :rel => "external"} SMILES - string: - %br - %input{:type => 'text', :name => 'identifier', :id => 'identifier', :size => '60'} - %div.col-md-6{:style=>"padding-top:3em;"} - #batch - Browse file (csv) for batch prediction: - %br - %span.btn.btn-default.btn-file - %input{:type=>"file", :name=> "fileselect", :id=>"fileselect", :accept=>".csv"} - %p - Example structure: - %table.table.table-bordered{:style=>"border-bottom:0;"} - %thead - %tr - %th - SMILES - %th - notes - %tbody - %tr - %td - compound - %td - %tr - %td - compound - %td - %tr - %td - compound - %td - %tr - %td{:style=>"border-bottom:0;"} - = "...." - %td{:style=>"border-bottom:0;"} + %h2 1. Draw a chemical structure + #insert + %label + #appletContainer + %br + %label{:for => 'identifier'} + or enter the + %a{:href => "http://en.wikipedia.org/wiki/Simplified_molecular_input_line_entry_specification", :rel => "external"} SMILES + string: + %br + %input{:type => 'text', :name => 'identifier', :id => 'identifier', :size => '60'} + %p + %label{:for=>"fileselect"} + or upload a CSV file for batch predictions + %br + %span.btn.btn-default.btn-file + -#%input{:type=>"file", :name=> "fileselect", :id=>"fileselect", :accept=>".csv", :disabled=>"disabled"} + %input{:type=>"file", :name=> "fileselect", :id=>"fileselect", :accept=>"text/csv"} %fieldset#middle.well %h2 2. Select one or more endpoints @@ -168,7 +139,10 @@ Details | Validation %div.panel-collapse.collapse{:id=>"details#{model.id}", :style=>"margin-left:1em;"} %b Model: - = model.id + %br + Source: + %a{:href=>model.source, :rel=>"external"} + = model.source %br = "Algorithm:\tLAZAR" %br @@ -259,8 +233,8 @@ %td =cv.confusion_matrix[0][1]+cv.confusion_matrix[1][1] %td - -#= "Confusion Matrix:\t" - -#= cv.confusion_matrix + -#= "Confusion Matrix:\t" + -#= cv.confusion_matrix - if model.regression? %br = "Root mean squared error:\t" |