Module: OpenTox::Model

Included in:
Generic
Defined in:
lib/model.rb

Defined Under Namespace

Classes: Generic, Lazar

Instance Method Summary collapse

Instance Method Details

#feature_typeObject


5
6
7
8
9
10
11
# File 'lib/model.rb', line 5

def feature_type
  unless @feature_type
    bad_request_error "Cannot determine feature type, dependent variable missing in model #{@uri}" unless [RDF::OT.dependentVariables]
    @feature_type = OpenTox::Feature.new( [RDF::OT.dependentVariables][0]).feature_type
  end
  @feature_type
end

#predicted_confidenceObject


18
19
20
21
# File 'lib/model.rb', line 18

def predicted_confidence
  load_predicted_variables unless defined? @predicted_confidence
  @predicted_confidence
end

#predicted_variableObject


13
14
15
16
# File 'lib/model.rb', line 13

def predicted_variable
  load_predicted_variables unless defined? @predicted_variable
  @predicted_variable
end