pip install loso
python
from loso.classifiers import SVM
model = SVM()
model.fit(X_train, y_train)
y_pred = model.predict(X_test)
python
from loso.evaluation import cross_validation
model = SVM()
cv_results = cross_validation(model, X, y, cv=5)
print("Accuracy: {:.2f}%".format(cv_results["accuracy"]))
print("F1-score: {:.2f}".format(cv_results["f1_score"]))