Class: NekonekoGen::Classifier

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

Direct Known Subclasses

LinearClassifier, MLP

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#kObject (readonly)

Returns the value of attribute k.



4
5
6
# File 'lib/nekoneko_gen/classifier.rb', line 4

def k
  @k
end

Instance Method Details

#classify_method_codeObject

Raises:

  • (NotImplementedError)


8
9
10
# File 'lib/nekoneko_gen/classifier.rb', line 8

def classify_method_code
  raise NotImplementedError
end

#default_iterationObject

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/nekoneko_gen/classifier.rb', line 17

def default_iteration
  raise NotImplementedError
end

#features(i = -1)) ⇒ Object

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/nekoneko_gen/classifier.rb', line 14

def features(i = -1)
  raise NotImplementedError
end

#parameter_codeObject

Raises:

  • (NotImplementedError)


5
6
7
# File 'lib/nekoneko_gen/classifier.rb', line 5

def parameter_code
  raise NotImplementedError
end

#update(vec, label) ⇒ Object

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/nekoneko_gen/classifier.rb', line 11

def update(vec, label)
  raise NotImplementedError
end