There is a logistic linear discriminant model trained using the following formula: 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_model.predict(X_val) f1_score(y_val, y_pred)