Get started
Choose your platform and compute device to get the install command for mojolearn 0.8.66, the current release. In identical mode, mojolearn returns the same bits on Apple, NVIDIA and AMD GPUs.
Verify the results
python -m mojolearn verify --quickRuns representative inference and classical training checks against recorded reference bits. The install command above includes NumPy for verification. Read the report for failures and coverage gaps.
python -m mojolearn verify --neural-training --allRuns the separate neural training, backward and optimizer scope on all fixtures. These checks are excluded from quick and routine verification; available coverage depends on the installed device bindings.
Your first model
import numpy as np
import mojolearn
rng = np.random.default_rng(0)
X = rng.random((100_000, 20), dtype=np.float32)
y = (X[:, 0] + X[:, 1] > 1.0).astype(np.float32)
model = mojolearn.GradientBoosting(loss="Logloss", n_estimators=200, max_depth=6)
model.fit(X, y)
print(model.predict_proba(X[:5]))
print(model.numeric_mode_used(), mojolearn.vendor())In identical mode, mojolearn returns the same bits on Apple, NVIDIA and AMD GPUs. Run the same script with the same release, inputs and settings on any of them and the model and prediction bits are the same.
Troubleshooting
If installation or loading fails, run the optional diagnostics command. It reports the installed version, selected backend and import status; it does not run numerical verification.
mojolearn doctorNext
The documentation covers numeric modes, verification, saving and loading models, cross-vendor training and the full API. The support matrix lists every platform, device and estimator. Building from source for another GPU architecture is described in the install guide.