Class: Rumale::LinearModel::BaseEstimator

Inherits:
Base::Estimator show all
Defined in:
rumale-linear_model/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

Attributes inherited from Base::Estimator

#params

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 'rumale-linear_model/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 'rumale-linear_model/lib/rumale/linear_model/base_estimator.rb', line 12

def weight_vec
  @weight_vec
end