Distfit

Latest version: v1.8.0

Safety actively analyzes 629436 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 9

1.4.5

* Some code refactoring and cleaning
* Added test statistic name in the title of the figure

1.4.4

* Changed title text of plot with scientific notation.

1.4.3

* `alpha` parameter added to the `predict` function.
* Output contains `y_bool `which is `y_proba<=alpha`


from distfit import distfit
X = np.random.normal(0, 2, 1000)
y = [-8, -6, 0, 1, 2, 3, 4, 5, 6]

dist = distfit()
dist.fit_transform(X)
results = dist.predict(y, alpha=0.01)
results['y_bool']

1.4.2

* added doi

1.4.1

* Pass fig and ax to give more control to the user's for plotting.

Thank you for the contribution ksachdeva!

1.4.0

* New function "generate" that allows to generate samples after fitting on the data.
* Discrete output parameters aligned with output parameters of parametric models
* New output variable added: "model" which is the fitted model based on loc/scale params. The "distr" remains the unfitted model.
* Code generalized which allows that discrete and parametric runs in more same functions.
* Different scoring statistics is now also possible for discrete fitting.

Page 5 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.