Skip to content

Is it possible to set initial parameter value for logistic regression online updates? #665

Answered by gbolmier
cliu-sift asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @cliu-sift 👋

You can do so by providing an initializer object to your model at instantiation time, see the initializers API reference in the optim module.

from river import linear_model
from river import optim

init = optim.initializers.Normal(mu=0, sigma=1, seed=42)
model = linear_model.LogisticRegression(initializer=init)

Hope it answers your question

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@cliu-sift
Comment options

@MaxHalford
Comment options

@cliu-sift
Comment options

@MaxHalford
Comment options

@cliu-sift
Comment options

Answer selected by smastelini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants