Class: Rumale::LinearModel::BaseEstimator

Inherits:
Base::Estimator
  • Object
show all
Defined in:
lib/rumale/linear_model/base_estimator.rb

Overview

BaseEstimator is an abstract class for implementation of linear model. This class is used internally.

Instance Attribute Summary collapse

Instance Attribute Details

#bias_termNumo::DFloat (readonly)

Return the bias term (a.k.a. intercept).

Returns:

  • (Numo::DFloat)

    (shape: [n_outputs/n_classes])



16
17
18
# File 'lib/rumale/linear_model/base_estimator.rb', line 16

def bias_term
  @bias_term
end

#weight_vecNumo::DFloat (readonly)

Return the weight vector.

Returns:

  • (Numo::DFloat)

    (shape: [n_outputs/n_classes, n_features])



12
13
14
# File 'lib/rumale/linear_model/base_estimator.rb', line 12

def weight_vec
  @weight_vec
end