<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def split_classes(X, y):
 """split samples in X by classes in y """

    lstsclass = np.unique(y)
    return [X[y == i, :].astype(np.float32) for i in lstsclass]