Skip to content

v1.1.0

Choose a tag to compare

@bwhewe-13 bwhewe-13 released this 04 Oct 06:22
· 63 commits to master since this release

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 ignores seed=0
  • find_optimal_epochs() no longer crashes when max_training_epochs <= 200
  • predict() 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. Pass overwrite=True to 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.