modAL icon indicating copy to clipboard operation
modAL copied to clipboard

[FEATURE REQUEST] Should learner.teach call model.fit at every query?

Open aryamansriram opened this issue 4 years ago • 1 comments

I am working with the ActiveLearner and I want to visualize the loss,accuracy after every query. I was wondering if teach is calling the fit method at every query because if that's the case, tensorboard has issues visualizing the same since a new graph is created every time. I checked the code and indeed it is. Would having the uncertainty sampling a part of a callback in the model.fit() method be a better option? So that you only call fit once and have the sampling be done in the callback after every epoch? Apologies if this is a stupid doubt in any way

aryamansriram avatar Jan 02 '21 11:01 aryamansriram

Hi! I am not sure I understand the issue. Are you using Keras and its scikit-learn wrapper? I suspect that your problem can be solved with writing a custom adapter class, but I don't understand your usecase well enough.

cosmic-cortex avatar Jan 07 '21 10:01 cosmic-cortex