Repository navigation
v1.1.0
First release of DJINN on PyPI.
This fork replaces the original TensorFlow implementation from LLNL/djinn with PyTorch. The public API
(DJINN_Regressor, DJINN_Classifier, train, predict, bma_predict, save, load) matches the
original, so most existing code should work without changes.
Install
pip install djinnml
The import name is still djinn:
from djinn import djinn
Changes from the original DJINN
- Rewritten in PyTorch, no TensorFlow dependency
- Supports Python 3.10 to 3.14
- Test suite, including statistical comparisons against the original TensorFlow version
Fixes
- Trees in the random forest are now actually different from each other
tree_to_nn_weights()no longer ignoresseed=0find_optimal_epochs()no longer crashes whenmax_training_epochs <= 200predict()is deterministic when dropout is enabled- Clear error for trees too shallow to build a hidden layer
Breaking changes
save()no longer deletes an existing directory by default. Passoverwrite=Trueto replace it.- Models saved with the TensorFlow version can't be loaded by this version.
- The scikit-learn version used to load a model should match the one used to save it.
Credits
DJINN was originally developed by Kelli Humbird at Lawrence Livermore National Laboratory
(https://github.com/LLNL/djinn). See LICENSE and NOTICE.