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 anearly_stopping_criterion
other than validation loss. - A new argument
collapse_noun_phrases
in methods ofCCGParser
andCCGTree
classes (for example, seeCCGParser.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 recommendednumpy.random.default_rnd
method.
Fixed:
- Handling of possible empty
Bra
s andKet
s during conversion from DisCoPy. - Fixed a bug in JIT compilation of mixed circuit evaluations.