Newer
Older
# Exercise 2.3.4
from ex2_3_1 import *
class_mask = y == c # binary mask to extract elements of class c
# or: class_mask = nonzero(y==c)[0].tolist()[0] # indices of class c
range(1, len(attributeNames) + 1), [a[:7] for a in attributeNames], rotation=45
)
y_up = X.max() + (X.max() - X.min()) * 0.1
y_down = X.min() - (X.max() - X.min()) * 0.1
print("Ran Exercise 2.3.4")