Skip to content

DBSTREAM - questions on learn_one(x) / predict_one(x)? #823

Answered by MaxHalford
kmsnyde asked this question in Q&A
Discussion options

You must be logged in to vote

If I start performing DBSTREAM on a new data stream, is it correct to perform both learn_one(x), followed by predict_one(x) for each item in X, within the "for loop"?

That's actually the classical way of going online learning: predict followed by fit. It simulates a real-world situation where predictions need to be made before learning is possible.

Or do I have to perform a certain amount of learn_one(x) methods to sort of "prime" the algorithm before using predict_one()?

That's essentially "warming up". It's quite a common practice :)

The nice thing is that you can do both. It really depends on what the specifics of your problem.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kmsnyde
Comment options

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