Description Format Methods Examples
LinearRegressions
creates a streaming algorithm that can
calculate and update linear regression coefficients.
An R6Class
generator object
new()
Creates a new LinearRegression
streamer object.
LinearRegression$new(X, y, fit_intercept = TRUE, method = "woodbury")
X
initial design matrix
y
initial labels
fit_intercept
if 'TRUE', add an intercept to the model
method
the method used to update regression coefficients
The new LinearRegression
(invisibly)
update()
Updates the regression coefficient based on new data
LinearRegression$update(X, y)
X
new design matrix
y
new labels
#' @return The updated LinearRegression
(invisibly)
clone()
The objects of this class are cloneable with this method.
LinearRegression$clone(deep = FALSE)
deep
Whether to make a deep clone.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.