modAL-python / modAL

A modular active learning framework for Python
https://modAL-python.github.io/
MIT License
2.24k stars 324 forks source link

Exporting the Keras model after learned from modAL #67

Closed somang closed 4 years ago

somang commented 4 years ago

Hi, I have used the modAL to load up my Kears model from (.h5) file, then to use an active learning process to refine the learning. I was wondering if it is possible to export the model to Keras, once we trained the model using modAL, ActiveLearner.teach().

Or is this an impossible atm?

cosmic-cortex commented 4 years ago

Hi!

You can simply access the trained model at the ActiveLearner.estimator attribute. This is a Keras object, so you can save it just as you would save it without modAL. Let me know if there are any additional problems!

somang commented 4 years ago

Thank you!