Skip to content

Commit

Permalink
Fixed import error
Browse files Browse the repository at this point in the history
  • Loading branch information
nityansuman committed Mar 25, 2024
1 parent e69072e commit 4912aee
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 102 deletions.
5 changes: 5 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
History
---

# 0.3.2 (2024-03-25)

- Major import bug fix
- Cleanup

# 0.3.1 (2024-03-03)

- Minor cleanups
Expand Down
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ include HISTORY.md
include LICENSE
include README.md
include requirements.txt
include requirements_dev.txt

recursive-include tests *
recursive-exclude * __pycache__
Expand Down
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ To use Lazy Predict in a project:
## Classification

```
# Old Way
from lazypredict.Supervised import LazyClassifier
# New Way
from lazypredict import LazyClassifier
from sklearn.datasets import load_breast_cancer
Expand Down Expand Up @@ -81,9 +78,6 @@ To use Lazy Predict in a project:
## Regression

```
# Original Way
from lazypredict.Supervised import LazyRegressor
# Alternate Way
from lazypredict import LazyRegressor
from sklearn import datasets
Expand Down
2 changes: 1 addition & 1 deletion lazypredict/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from Supervised import LazyClassifier, LazyRegressor
from .supervised import LazyClassifier, LazyRegressor

__all__ = [
LazyClassifier,
Expand Down
17 changes: 0 additions & 17 deletions lazypredict/cli.py

This file was deleted.

6 changes: 0 additions & 6 deletions lazypredict/Supervised.py → lazypredict/supervised.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@


# Helper function


def get_card_split(df, cols, n=11):
"""
Splits categorical columns into 2 lists based on cardinality (i.e # of unique values)
Expand Down Expand Up @@ -680,7 +678,3 @@ def provide_models(self, X_train, X_test, y_train, y_test):
self.fit(X_train, X_test, y_train, y_test)

return self.models


Regression = LazyRegressor
Classification = LazyClassifier
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.3.1
current_version = 0.3.2
commit = True
tag = True

Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
],
description="[Updated] Lazy Predict help build a lot of basic models without much code and helps understand which models works better without any parameter tuning",
long_description_content_type="text/markdown",
entry_points={"console_scripts": ["lazypredict=lazypredict.cli:main",],},
install_requires=requirements,
license="MIT license",
long_description=readme + "\n\n" + history,
Expand All @@ -51,6 +50,6 @@
setup_requires=setup_requirements,
test_suite="tests",
url="https://github.com/nityansuman/lazypredict-nightly",
version="0.3.1",
version="0.3.2",
zip_safe=False
)
3 changes: 0 additions & 3 deletions tests/__init__.py

This file was deleted.

Empty file added tests/placeholder
Empty file.
37 changes: 0 additions & 37 deletions tests/test_lazypredict.py

This file was deleted.

28 changes: 0 additions & 28 deletions tox.ini

This file was deleted.

0 comments on commit 4912aee

Please sign in to comment.