Method: Eps::Model#initialize
- Defined in:
- lib/eps/model.rb
#initialize(data = nil, y = nil, estimator: nil, **options) ⇒ Model
Returns a new instance of Model.
3 4 5 6 7 8 9 |
# File 'lib/eps/model.rb', line 3 def initialize(data = nil, y = nil, estimator: nil, **) if estimator @estimator = estimator elsif data train(data, y, **) end end |