Class: OpenTox::Algorithm::Lazar

Inherits:
Object
  • Object
show all
Defined in:
lib/algorithm.rb

Class Method Summary collapse

Class Method Details

.create_model(params) ⇒ Object



39
40
41
42
43
44
45
# File 'lib/algorithm.rb', line 39

def self.create_model(params)
	LOGGER.debug params
	LOGGER.debug File.basename(__FILE__) + ": creating model"
	LOGGER.debug File.join(@@config[:services]["opentox-algorithm"], "lazar")
     resource = RestClient::Resource.new(File.join(@@config[:services]["opentox-algorithm"], "lazar"), :user => @@users[:users].keys[0], :password => @@users[:users].values[0], :content_type => "application/x-yaml")
     @uri = resource.post(:dataset_uri => params[:dataset_uri], :prediction_feature => params[:prediction_feature], :feature_generation_uri => File.join(@@config[:services]["opentox-algorithm"], "fminer")).body.chomp
end

.uriObject



47
48
49
# File 'lib/algorithm.rb', line 47

def self.uri
	File.join(@@config[:services]["opentox-algorithm"], "lazar")
end