summaryrefslogtreecommitdiff
path: root/views/feature.haml
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2011-04-04 18:44:44 +0200
committerChristoph Helma <helma@in-silico.ch>2011-04-04 18:44:44 +0200
commit3430ce8d28846a405d403b2c4a03bcab5a11f9e6 (patch)
tree1ec12749584cdafee768264acaadb2de1e4c5ff7 /views/feature.haml
parent29516a370a458915050eca3dca586b3ec3b6f877 (diff)
Selection of AMBIT datasets added
Diffstat (limited to 'views/feature.haml')
-rw-r--r--views/feature.haml26
1 files changed, 26 insertions, 0 deletions
diff --git a/views/feature.haml b/views/feature.haml
new file mode 100644
index 0000000..c5b8293
--- /dev/null
+++ b/views/feature.haml
@@ -0,0 +1,26 @@
+%b Select:
+= session[:echa].split('#').last
+= "-&gt;"
+= OpenTox::Dataset.new(session[:dataset]).load_metadata[DC.title]
+= "-&gt;"
+%b Prediction feature
+
+%form{ :action => url_for('/models'), :method => "post" }
+
+ %input{:type => 'hidden', :name => 'subjectid', :id => 'subjectid', :value => session[:subjectid]}
+ %input{:type => 'hidden', :name => 'dataset', :id => 'dataset', :value => session[:dataset]}
+
+ - @features.each do |feature|
+ -# type = "unknown"
+ -# if feature.metadata[RDF.type].include?(OT.NominalFeature)
+ - type = "classification"
+ -# elsif feature.metadata[RDF.type].include?(OT.NumericFeature)
+ - type = "regression"
+
+ %br
+ %input{:type=>'radio', :name => "prediction_feature", :value => feature.uri} #{feature.metadata[DC.title]} (#{feature.feature_type})
+ %br
+ =# feature.inspect
+
+ %p
+ %input{:type => 'submit', :value => "Create model"}