Skip to content

0.4.1

Latest
Compare
Choose a tag to compare
@nikhilkhatri nikhilkhatri released this 11 Apr 10:29

Added:

  • Support for Python 3.12.
  • A new Sim4Ansatz based on the paper by Sim et al. (arXiv:1905.10876).
  • A new argument in Trainer.fit for specifying an early_stopping_criterion other than validation loss.
  • A new argument collapse_noun_phrases in methods of CCGParser and CCGTree classes (for example, see CCGParser.sentence2diagram) that allows the user to maintain noun phrases in the derivation or collapse them into nouns as desired.
  • Raised meaningful exception when users try to convert to/from DisCoPy 1.1.0.

Changed:

  • An internal refactoring of module backend.drawing in view of planned new features.
  • Updated random number generation in TketModel by using the recommended numpy.random.default_rnd method.

Fixed:

  • Handling of possible empty Bra s and Ket s during conversion from DisCoPy.
  • Fixed a bug in JIT compilation of mixed circuit evaluations.