Newer
Older
# Exercise 4.2.5
# requires data from exercise 4.2.1
from ex4_2_1 import *
from matplotlib.pyplot import (
figure,
legend,
plot,
show,
subplot,
xlabel,
xticks,
ylabel,
yticks,
)
class_mask = y == c
plot(np.array(X[class_mask, m2]), np.array(X[class_mask, m1]), ".")
if m1 == M - 1: