Method: AprendizajeMaquina::ClasificacionLogistica#initialize
- Defined in:
- lib/aprendizaje_maquina/clasificacion_logistica.rb
#initialize(x, y, theta) ⇒ ClasificacionLogistica
Returns a new instance of ClasificacionLogistica.
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/aprendizaje_maquina/clasificacion_logistica.rb', line 3 def initialize(x,y,theta) @x = x @y = y @theta = theta if y.is_a? Matrix @m = y.row_count elsif y.is_a? Vector @m = y.size else @m = y.length end end |