UBISS2024exam
from sklearn.model_selection import train_test_split
X = df[["X", "Y", "Z"]].diff().iloc[1:].values
y = df.Label.iloc[1:].values
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.3)
from sklearn.model_selection import train_test_split
X = df[["X", "Y", "Z"]].diff().iloc[1:].values
y = df.Label.iloc[1:].values
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.3)