class MachineLearner::DataSet

学習器にかけるデータ 特徴空間xと識別結果yを持つ

Attributes

id[RW]
x[R]
y[R]

Public Class Methods

new(x, y, id = nil) click to toggle source

コンストラクタ @param x 特徴空間 @param y 識別結果

# File lib/machine_learner/dataset.rb, line 13
def initialize(x, y, id = nil)
  @x, @y = x, y
  @id = id
end

Public Instance Methods

to_s() click to toggle source

@return データセットを表現する文字列

# File lib/machine_learner/dataset.rb, line 19
def to_s
  "(#{@x}=>#{@y})"
end