You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:alt:Animation showing how to connect a custom subloop
281
-
282
-
----------
283
-
284
262
Built-in Loops
285
263
--------------
286
264
@@ -342,71 +320,6 @@ Each of these :code:`for`-loops represents a class implementing the :class:`~pyt
342
320
It simply iterates over each prediction dataloader from one to the next by calling :code:`PredictionEpochLoop.run()` in its :code:`advance()` method.
343
321
344
322
345
-
----------
346
-
347
-
Available Loops in Lightning Flash
348
-
----------------------------------
349
-
350
-
`Active Learning <https://en.wikipedia.org/wiki/Active_learning_(machine_learning)>`__ is a machine learning practice in which the user interacts with the learner in order to provide new labels when required.
351
-
352
-
You can find a real use case in `Lightning Flash <https://github.com/Lightning-AI/lightning-flash>`_.
353
-
354
-
Flash implements the :code:`ActiveLearningLoop` that you can use together with the :code:`ActiveLearningDataModule` to label new data on the fly.
355
-
To run the following demo, install Flash and `BaaL <https://github.com/ElementAI/baal>`__ first:
356
-
357
-
.. code-block:: bash
358
-
359
-
pip install lightning-flash[image] baal
360
-
361
-
.. code-block:: python
362
-
363
-
import torch
364
-
365
-
import flash
366
-
from flash.core.classification import Probabilities
367
-
from flash.core.data.utils import download_data
368
-
from flash.image import ImageClassificationData, ImageClassifier
369
-
from flash.image.classification.integrations.baal import ActiveLearningDataModule, ActiveLearningLoop
Here is the `Active Learning Loop example <https://github.com/Lightning-AI/lightning-flash/blob/master/flash_examples/integrations/baal/image_classification_active_learning.py>`_ and the `code for the active learning loop <https://github.com/Lightning-AI/lightning-flash/blob/master/flash/image/classification/integrations/baal/loop.py>`_.
0 commit comments