Module: CrossValidation

Defined in:
lib/cross_validation.rb,
lib/cross_validation/runner.rb,
lib/cross_validation/sample.rb,
lib/cross_validation/partitioner.rb,
lib/cross_validation/confusion_matrix.rb

Defined Under Namespace

Modules: Partitioner Classes: ConfusionMatrix, Runner, Sample

Constant Summary collapse

VERSION =
'0.0.2'

Class Method Summary collapse

Class Method Details

.Sample(tuple) ⇒ Sample

Converts an array of [class, value] into a `Sample` object.


12
13
14
# File 'lib/cross_validation/sample.rb', line 12

def self.Sample(tuple)
  Sample.new(tuple.fetch(0), tuple.fetch(1))
end