Skip to content

Commit bf1816e

Browse files
Add tests (#37)
* loosening numpy and pandas versions * fixes to build requirements * simplifying setup.py, logic in pyproject.toml * fixing _estimator_type flags * feat: Add scikit-learn estimator type tags Adds the `__sklearn_tags__` method to the `sklearn_sm` and `sklearn_selected` wrappers. This allows scikit-learn to correctly identify the estimator type (regressor or classifier) based on the statsmodels model. This change enables the use of scikit-learn's cross-validation and model selection tools with these wrappers. Tests have been added to verify that OLS and GLM Binomial models are correctly identified. * removing redundant setup.py * unused pkg_resources import * ensure we get a 0-dim answer; use arg params for cross_val_score * adding some new tests * updating version * ISLP_labs at v2.2.1 * update versioneer * using setuptools_scm * update install instructions * adding fit_params as kwargs * removing unneeded fit_params
1 parent 85853d2 commit bf1816e

12 files changed

Lines changed: 176 additions & 711 deletions

File tree

ISLP/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,6 @@ def confusion_table(predicted_labels,
162162
return df
163163

164164

165-
from . import _version
166-
__version__ = _version.get_versions()['version']
165+
from importlib.metadata import version
166+
__version__ = version("ISLP")
167167

0 commit comments

Comments
 (0)