Skip to content

Releases: Rapfff/jajapy

v0.10.8 : Alergia and Active-BW rework

11 Aug 09:15
Compare
Choose a tag to compare
  • rework for Alergia
  • rework for Active-BW

This update doesn't change anything for the user: the syntax stays the same.

v0.10.7

22 Jun 14:28
Compare
Choose a tag to compare

A new verbose parameter for BW.fit

The verbose parameter of BW.fit can now take four different values:

  • 0: nothing will be printed
  • 1: the warnings only will be printed
  • 2 (default): the warnings and the progress bar will be printed
  • 3: the warnings, the progress bar and the small recap at the end of the learning will be printed

Consequently, the progress_bar parameter added in v0.10.6 has been removed.

A small improvement for BW.fit for GoHMM

As for the other models, if a state s of the current hypothesis does not play a role in the observed dynamics (training set) the update procedure leaves the distributions for s unchanged.

v0.10.6

20 Jun 16:33
Compare
Choose a tag to compare

Two new parameters have been added to BW.fit:

  • progress_bar (bool): display or not the progress bar (default is True).
  • processes (int): only for linux: decide how many processes will be used during the learning process (default is cpu_count()-1).

v0.10.5

17 Jun 09:13
Compare
Choose a tag to compare

New parameter sseed to choose the random seed while generating random model with:

  • MC_random
  • CTMC_random
  • MDP_random
  • HMM_random
  • GoHMM_random

and initialising randomly PCTMC parameters with the method:

  • PCTMC.randomInstantiation

v0.10.4

29 Mar 11:23
Compare
Choose a tag to compare
  • rework for Alergia
  • minor bug fixes

v0.10.2

11 Mar 14:20
Compare
Choose a tag to compare

This update contains some bug fixes.

v0.10.1

28 Feb 13:50
Compare
Choose a tag to compare

Bug fixed in the BW.fit and BW.fit_nonInstantiatedParameters methods.

v0.10: Parametric models and Prism compatibility

26 Feb 10:38
Compare
Choose a tag to compare

After several months of work, we proudly present you this new version of Jajapy.
This update brings two significant new features:

  1. an algorithm for PCTMC parameter estimation, and
  2. compatibility with Prism models.

PCTMCs

Jajapy supports now PCTMCs:

  • PCTMCs can be created, loaded and saved.
  • Jajapy PCTMCs can be translated as Stormpy sparse models.
  • PCTMCs parameters can be estimated,
  • PCTMCs can be learned, and
  • PCTMCs can be synchronously composed, as well as CTMCs.

Prism

  • Jajapy can now load Prism files using the jajapy.loadPrism function.
  • Jajapy model can now be exported into Prism file using the Model.savePrism method.

Miscellaneous

  • There is only one BW class now. Use the BW.fit method to learn any model. The method will recognise which formalism should be used from the initial hypothesis if given, and from the training set otherwise.
  • The BW output model can be saved in a Prism file directly. To do so, set the new output_file_prism parameter of the BW.fit method.
  • GOHMM, being a special case of MGOHMM, has been removed.
  • MGOHMM has been renamed to GoHMM.
  • Saved model before this release may not be compatible with this new version.
  • HMMs and GoHMMs are now created using the two functions createHMM and createGoHMM.
  • The documentation has been remade.

v0.9: state labelled update

24 Nov 13:48
Compare
Choose a tag to compare

This is a major update for MCs, CTMCs and MDPs: these models are now state-labelled instead of transition-labelled.

This implies:

  • New way to create models (the MC_state function has been replaced by createMC, same for MDPs and CTMCs)
  • The embedding from Jajapy to Stormpy (and the other way around) is now straightforward.
  • HMMs cannot be translated to Stormpy dtmc anymore (this will perhaps come back in a future release).
  • The label "init" cannot be used in MCs, MDPs and CTMCs anymore.

This change comes with minor improvement:

  • The more common errors are not handled properly.
  • The documentation has been extended and contains now more examples.
  • New unit tests

v0.8

21 Oct 11:42
Compare
Choose a tag to compare
  • The initial_model parameter of the BW.fit() method can be a stormpy sparse model (sparseDtmc, sparseMdp or sparseCtmc).
  • We now use the beautiful alive-progress to print beautiful progress bars while Baum-Welch is running.
  • Bug fixes.