-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add py311, remove py37 * Fix minor linting errors on new pylint * Fix types; remove comment * Set seed for deterministic tests * Fix types in test file * Fix unused import; Use specific noqa codes; Fix typo in pre-commit config * Fix type in tests * Fix feature importance base case * xfail test per https://github.com/stanfordmlgroup/ngboost/pull/320\#issuecomment-1885234861 --------- Co-authored-by: Jack McIvor <[email protected]>
- Loading branch information
1 parent
07734dd
commit c482aab
Showing
10 changed files
with
64 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,32 @@ | ||
"""NGBoost distributions""" | ||
from .categorical import Bernoulli, k_categorical # NOQA | ||
from .cauchy import Cauchy # NOQA | ||
from .distn import ClassificationDistn, Distn, RegressionDistn # NOQA | ||
from .exponential import Exponential # NOQA | ||
from .gamma import Gamma # NOQA | ||
from .laplace import Laplace # NOQA | ||
from .lognormal import LogNormal # NOQA | ||
from .multivariate_normal import MultivariateNormal # NOQA | ||
from .normal import Normal, NormalFixedVar # NOQA | ||
from .poisson import Poisson # NOQA | ||
from .t import T, TFixedDf, TFixedDfFixedVar # NOQA | ||
from .categorical import Bernoulli, k_categorical | ||
from .cauchy import Cauchy | ||
from .distn import ClassificationDistn, Distn, RegressionDistn | ||
from .exponential import Exponential | ||
from .gamma import Gamma | ||
from .laplace import Laplace | ||
from .lognormal import LogNormal | ||
from .multivariate_normal import MultivariateNormal | ||
from .normal import Normal, NormalFixedVar | ||
from .poisson import Poisson | ||
from .t import T, TFixedDf, TFixedDfFixedVar | ||
|
||
__all__ = [ | ||
"Bernoulli", | ||
"k_categorical", | ||
"Cauchy", | ||
"ClassificationDistn", | ||
"Distn", | ||
"RegressionDistn", | ||
"Exponential", | ||
"Gamma", | ||
"Laplace", | ||
"LogNormal", | ||
"MultivariateNormal", | ||
"Normal", | ||
"NormalFixedVar", | ||
"Poisson", | ||
"T", | ||
"TFixedDf", | ||
"TFixedDfFixedVar", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# pylint: disable=unnecessary-lambda-assignment | ||
from typing import List, Tuple | ||
|
||
import numpy as np | ||
|