Class: OpenTox::Model::Generic

Inherits:
Object
  • Object
show all
Includes:
OpenTox, Algorithm, OpenTox::Model
Defined in:
lib/model.rb

Direct Known Subclasses

Lazar

Constant Summary

Constants included from OpenTox

AA

Instance Attribute Summary

Attributes included from OpenTox

#metadata, #parameters, #uri

Class Method Summary collapse

Instance Method Summary collapse

Methods included from OpenTox::Model

#feature_type, #predicted_confidence, #predicted_variable

Methods included from Algorithm

#run

Methods included from OpenTox

#[], #[]=, #cancelled?, #code, #completed?, #create_rdf, #delete, #error?, #error_report, #get, included, #initialize, #parameter_value, #post, #put, #running?, #service_uri, #status, #to_html, #to_turtle

Class Method Details

.find(uri) ⇒ Object


40
41
42
# File 'lib/model.rb', line 40

def self.find uri
    URI.accessible?(uri) ? self.new(uri) : nil
end

Instance Method Details

#predict(params) ⇒ Object


44
45
46
# File 'lib/model.rb', line 44

def predict params
  run params
end