Newer
Older
# Exercise 2.3.5
# (requires data from exercise 2.3.1)
from ex2_3_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:
print("Ran Exercise 2.3.5")