blob: c5b8293001f62f9cfc804aaf4b9a1b767683f555 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
%b Select:
= session[:echa].split('#').last
= "->"
= OpenTox::Dataset.new(session[:dataset]).load_metadata[DC.title]
= "->"
%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"}
|