Skip to content

Commit

Permalink
Merge pull request #51 from Ab2nour/feat(models)/add-univariate-param…
Browse files Browse the repository at this point in the history
…etric-gamma

feat(models): add gamma model
  • Loading branch information
Ab2nour authored Nov 14, 2023
2 parents 9d7408b + 6701e2b commit 9b210bc
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/modelisation/univariate/parametric/models.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
from lifelines import ExponentialFitter, LogNormalFitter, WeibullFitter
from lifelines import (
ExponentialFitter,
GeneralizedGammaFitter,
LogNormalFitter,
WeibullFitter,
)

model_type = LogNormalFitter | ExponentialFitter | WeibullFitter
model_type = (
LogNormalFitter | ExponentialFitter | WeibullFitter | GeneralizedGammaFitter
)


def create_models() -> dict[str, model_type]:
models = {
"Weibull": WeibullFitter(),
"Exponentiel": ExponentialFitter(),
"Log-normal": LogNormalFitter(),
"Gamma-généralisée": GeneralizedGammaFitter(),
}

return models

0 comments on commit 9b210bc

Please sign in to comment.