Class: LogisticRegressionGradientDescent
- Inherits:
-
Object
- Object
- LogisticRegressionGradientDescent
- Defined in:
- lib/logisticregressiongradientdescent.rb
Instance Method Summary collapse
Instance Method Details
#fit(x, y, alpha, num_iter) ⇒ Object
7 8 9 10 11 |
# File 'lib/logisticregressiongradientdescent.rb', line 7 def fit(x,y,alpha,num_iter) theta_start = N.zeros([x.cols,1]) theta_end = cost_function(x,y,theta_start) @@theta_class = theta_end end |