modAL
modAL copied to clipboard
Using custom learner with this framework
Hi, Thanks a lot for this awesome framework for active learning. I am quite new to programming. I wanted to ask if, I have to use my own custom learner , how can I use it in this framework. For example we initialize a learner as:
# Specify our active learning model.
learner = ActiveLearner(
estimator=knn,
X_training=X_train,
y_training=y_train,
query_strategy=preset_batch
)
However if I want to use my learner with let us suppose model from fylearn, how can I do it? If I have to make custom changes somewhere where should I do it? Or do I have to write code from scratch?
Hi!
The only requirement for the model is to follow the scikit-learn API. Roughly speaking, it should have fit
, predict
and predict_proba
methods. If fylearn learners satisfy it, in principle they should work.
Where exactly do you want to make custom changes? I am afraid I don't understand your question entirely.