A function that creates a new linear model with parameters w.
A function that creates a new linear model with parameters w.
A stateless function that calculates the gradient of the loss function wrt.
A stateless function that calculates the gradient of the loss function wrt. model parameters.
A stateless function that calculates the value of the loss function.
A stateless function that calculates the value of the loss function.
A stateless function that predicts a target variable.
A stateless function that predicts a target variable.
Parameters (weights) of a linear model, i.e.
Parameters (weights) of a linear model, i.e. the state of the model.