There is a logistic linear discriminant model trained using the following formula: from sklearn.model_selection import train_test_split X_train, X_test, y_train, y_test = train_test_split(data, data_class, random_state=42) from sklearn.discriminant_analysis import LinearDiscriminantAnalysis lda.fit(X_train, y_train) Write code to evaluate its quality with F1 measure
from sklearn.metrics import f1_score y_pred = lda.predict(X_test) f1_score(y_test, y_pred)