Technical requirements
For the exercises in this chapter, you will need to install these packages:
pip install scikit-learn pip install modAL-python
And you will need the following imports:
from sklearn.cluster import KMeans from sklearn.linear_model import LogisticRegression from sklearn.utils import shuffle import numpy as np import random from modAL.models import ActiveLearner, Committee from sklearn.ensemble import RandomForestClassifier from modAL.uncertainty import uncertainty_sampling import os from PIL import Image from sklearn.model_selection import train_test_split import matplotlib.pyplot as plt from sklearn.datasets import load_iris from modAL.disagreement import vote_entropy_sampling