Function add_dummy_feature
Source pub fn add_dummy_feature(
x: &Array2<Float>,
value: Float,
) -> Result<Array2<Float>>
Expand description
Add a dummy feature to the data
This is useful for fitting an intercept term with implementations which
cannot otherwise fit it directly.
§Arguments
x - The data to add dummy feature to
value - Value of the dummy feature
§Returns
Data with dummy feature added as first column