If you are using scikit-learn, you can use wandb to track single experiments or metrics over cross validation or parameter searches.

import wandb
from sklearn.svm import SVC
from sklearn import datasets
from sklearn.model_selection import train_test_split
# Initialize wandb
# set and save hyperparameters
wandb.config.gamma = 0.1
wandb.config.C = 1.0
wandb.config.test_size = 0.3
wandb.config.seed = 0
# import iris dataset
iris = datasets.load_iris()
X_train, X_test, y_train, y_test = train_test_split(,, test_size=wandb.config.test_size,
# fit model
svm = SVC(kernel='rbf', random_state=wandb.config.seed, gamma=wandb.config.gamma, \
C=wandb.config.C), y_train)
# Save metrics
wandb.log({"Train Accuracy": svm.score(X_train, y_train),
"Test Accuracy": svm.score(X_test, y_test)})