The nimbus-bci classifiers are fully compatible with scikit-learn, allowing seamless integration with pipelines, cross-validation, hyperparameter tuning, and the broader sklearn ecosystem.
from sklearn.model_selection import train_test_split# Split dataX_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2)# Tune on train set onlygrid = GridSearchCV(NimbusLDA(), param_grid, cv=5)grid.fit(X_train, y_train)# Final evaluation on test settest_score = grid.score(X_test, y_test)