class Mirlo::AndDataSet

Public Class Methods

new() click to toggle source
Calls superclass method Mirlo::Dataset::new
# File lib/mirlo/datasets/and_dataset.rb, line 3
def initialize
  @feature_names = ['x', 'y']
  @title = "Logical AND dataset"

  samples = [[0,0], [0,1], [1,0], [1,1]]
  targets = [ZERO, ZERO, ZERO, ONE]

  super(samples: samples, targets: targets)
end