Repository navigation
Conversation
|
I think we want to add a |
| inc = Incremental(est, scoring='accuracy') | ||
|
|
||
| inc = delayed(inc) | ||
| r = inc.partial_fit(X, y, classes=da.unique(y)) |
There was a problem hiding this comment.
Partial_fit can call dask code though, right? If so I would like to avoid calling dask within dask if we can avoid it.
I think that it might be simpler long term to provide a compute=False keyword to partial_fit.
There was a problem hiding this comment.
Something like the following:
inc = inc.partial_fit(X, y, compute=False)
This might not align well with current design though.
In general, I think all of these should gain a
probably others. |
|
How should these operate? For example, lets consider the case of incremental.fit(X, y, compute=False)
score = incremental.score(X2, y2, compute=False)
score.compute()After the lazy fit, where do we keep the compute graph? What happens if someone looks at |
|
I'm closing this in favor of #278. |
These test cases makes sure that
delayed(Incremental(...))work as expected.This PR implements nothing new but will help people clarify what works and what doesn't. It took me a while to find out how call
fitandscorerepeatedly without re-building the graph.