Skip to content

Commit

Permalink
bump v0.15.2
Browse files Browse the repository at this point in the history
  • Loading branch information
thierrymoudiki committed Apr 26, 2024
1 parent a6d3c61 commit 0551fa5
Show file tree
Hide file tree
Showing 19 changed files with 203 additions and 14 deletions.
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# version 0.15.1
# version 0.15.2

- Can use pandas DataFrame in `LSBoostRegressor`, `LSBoostClassifier` and `AdaOpt`

Expand Down
36 changes: 36 additions & 0 deletions mlsauce.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
Metadata-Version: 2.1
Name: mlsauce
Version: 0.15.1
Summary: Miscellaneous Statistical/Machine Learning tools
Maintainer: T. Moudiki
Maintainer-email: thierry.moudiki@gmail.com
License: BSD3 Clause Clear
Platform: linux
Platform: macosx
Platform: windows
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Python: >=3.5
License-File: LICENSE
Requires-Dist: numpy
Requires-Dist: Cython
Requires-Dist: joblib
Requires-Dist: pandas
Requires-Dist: requests
Requires-Dist: scikit-learn
Requires-Dist: scipy
Requires-Dist: tqdm
Requires-Dist: jax
Requires-Dist: jaxlib
Provides-Extra: alldeps
Requires-Dist: numpy>=1.13.0; extra == "alldeps"
Requires-Dist: scipy>=0.19.0; extra == "alldeps"

Miscellaneous Statistical/Machine Learning tools
64 changes: 64 additions & 0 deletions mlsauce.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
LICENSE
README.md
setup.cfg
setup.py
mlsauce/__init__.py
mlsauce/_config.py
mlsauce/setup.py
mlsauce.egg-info/PKG-INFO
mlsauce.egg-info/SOURCES.txt
mlsauce.egg-info/dependency_links.txt
mlsauce.egg-info/not-zip-safe
mlsauce.egg-info/requires.txt
mlsauce.egg-info/top_level.txt
mlsauce/adaopt/__init__.py
mlsauce/adaopt/_adaopt.py
mlsauce/adaopt/_adaoptc.c
mlsauce/adaopt/fallbacksetup.py
mlsauce/adaopt/setup.py
mlsauce/booster/__init__.py
mlsauce/booster/_booster_classifier.py
mlsauce/booster/_booster_regressor.py
mlsauce/booster/_boosterc.c
mlsauce/booster/fallbacksetup.py
mlsauce/booster/setup.py
mlsauce/datasets/__init__.py
mlsauce/datasets/dowload.py
mlsauce/encoders/__init__.py
mlsauce/encoders/target_encoders.py
mlsauce/lasso/__init__.py
mlsauce/lasso/_lasso.py
mlsauce/lasso/_lassoc.c
mlsauce/lasso/fallbacksetup.py
mlsauce/lasso/setup.py
mlsauce/nonconformist/__init__.py
mlsauce/nonconformist/acp.py
mlsauce/nonconformist/base.py
mlsauce/nonconformist/cp.py
mlsauce/nonconformist/evaluation.py
mlsauce/nonconformist/icp.py
mlsauce/nonconformist/nc.py
mlsauce/nonconformist/util.py
mlsauce/predictioninterval/__init__.py
mlsauce/predictioninterval/predictioninterval.py
mlsauce/ridge/__init__.py
mlsauce/ridge/_ridge.py
mlsauce/ridge/_ridgec.c
mlsauce/ridge/fallbacksetup.py
mlsauce/ridge/setup.py
mlsauce/stump/__init__.py
mlsauce/stump/_stump_classifier.py
mlsauce/stump/_stumpc.c
mlsauce/stump/fallbacksetup.py
mlsauce/stump/setup.py
mlsauce/tests/__init__.py
mlsauce/tests/test_adaopt.py
mlsauce/utils/__init__.py
mlsauce/utils/get_beta.py
mlsauce/utils/progress_bar.py
mlsauce/utils/memoryuse/__init__.py
mlsauce/utils/memoryuse/mem_usage.py
mlsauce/utils/misc/__init__.py
mlsauce/utils/misc/misc.py
mlsauce/utils/sampling/__init__.py
mlsauce/utils/sampling/rowsubsampling.py
1 change: 1 addition & 0 deletions mlsauce.egg-info/dependency_links.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions mlsauce.egg-info/not-zip-safe
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

14 changes: 14 additions & 0 deletions mlsauce.egg-info/requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
numpy
Cython
joblib
pandas
requests
scikit-learn
scipy
tqdm
jax
jaxlib

[alldeps]
numpy>=1.13.0
scipy>=0.19.0
1 change: 1 addition & 0 deletions mlsauce.egg-info/top_level.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mlsauce
9 changes: 7 additions & 2 deletions mlsauce/adaopt/_adaopt.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import pickle
import numpy as np
import pandas as pd
import subprocess
from joblib import Parallel, delayed
from joblib import wrap_non_picklable_objects
from sklearn.base import BaseEstimator
Expand All @@ -14,8 +15,12 @@
try:
from . import _adaoptc as adaoptc
except ImportError:
cythonize_file("_adaoptc.pyx")
import _adaoptc
try:
cythonize_file("./_adaoptc.pyx")
import _adaoptc
except ModuleNotFoundError:
subprocess.run(['python3', './fallbacksetup.py', 'build_ext', '--inplace'])
import _adaoptc


class AdaOpt(BaseEstimator, ClassifierMixin):
Expand Down
8 changes: 8 additions & 0 deletions mlsauce/adaopt/fallbacksetup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import os
from distutils.core import setup
from Cython.Build import cythonize

dir_path = os.path.dirname(os.path.realpath(__file__))

setup(ext_modules=cythonize(os.path.join(dir_path, "_adaoptc.pyx"),
compiler_directives={'language_level' : "3"}))
10 changes: 8 additions & 2 deletions mlsauce/booster/_booster_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,19 @@
from sklearn.preprocessing import PolynomialFeatures
from sklearn.base import BaseEstimator
from sklearn.base import ClassifierMixin
import subprocess
from ..utils import cluster
from ..utils import cythonize_file
try:
from . import _boosterc as boosterc
except ModuleNotFoundError:
cythonize_file("_boosterc.pyx")
import _boosterc
try:
cythonize_file("./_boosterc.pyx")
import _boosterc
except ModuleNotFoundError:
subprocess.run(['python3', './fallbacksetup.py', 'build_ext', '--inplace'])
import _boosterc


class LSBoostClassifier(BaseEstimator, ClassifierMixin):
"""LSBoost classifier.
Expand Down
9 changes: 7 additions & 2 deletions mlsauce/booster/_booster_regressor.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,19 @@
from sklearn.base import BaseEstimator
from sklearn.base import RegressorMixin
from sklearn.preprocessing import PolynomialFeatures
import subprocess
from . import _boosterc as boosterc
from ..predictioninterval import PredictionInterval
from ..utils import cluster, cythonize_file
try:
from . import _boosterc as boosterc
except ModuleNotFoundError:
cythonize_file("_boosterc.pyx")
import _boosterc
try:
cythonize_file("./_boosterc.pyx")
import _boosterc
except ModuleNotFoundError:
subprocess.run(['python3', './fallbacksetup.py', 'build_ext', '--inplace'])
import _boosterc

class LSBoostRegressor(BaseEstimator, RegressorMixin):
"""LSBoost regressor.
Expand Down
8 changes: 8 additions & 0 deletions mlsauce/booster/fallbacksetup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from distutils.core import setup
from Cython.Build import cythonize
import os

dir_path = os.path.dirname(os.path.realpath(__file__))

setup(ext_modules=cythonize(os.path.join(dir_path, "_stumpc.pyx"),
compiler_directives={'language_level' : "3"}))
10 changes: 8 additions & 2 deletions mlsauce/lasso/_lasso.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import numpy as np
import pickle
import subprocess
import platform
import warnings
from sklearn.base import BaseEstimator
from sklearn.base import RegressorMixin
import subprocess
from numpy.linalg import inv
from ..utils import get_beta, cythonize_file

Expand All @@ -15,8 +17,12 @@
try:
from . import _lassoc as mo
except ModuleNotFoundError:
cythonize_file("_lassoc.pyx")
import _lassoc
try:
cythonize_file("./_lassoc.pyx")
import _lassoc
except ModuleNotFoundError:
subprocess.run(['python3', './fallbacksetup.py', 'build_ext', '--inplace'])
import _lassoc


class LassoRegressor(BaseEstimator, RegressorMixin):
Expand Down
8 changes: 8 additions & 0 deletions mlsauce/lasso/fallbacksetup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from distutils.core import setup
from Cython.Build import cythonize
import os

dir_path = os.path.dirname(os.path.realpath(__file__))

setup(ext_modules=cythonize(os.path.join(dir_path, "_lassoc.pyx"),
compiler_directives={'language_level' : "3"}))
9 changes: 7 additions & 2 deletions mlsauce/ridge/_ridge.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import numpy as np
import subprocess
import platform
import warnings
from sklearn.base import BaseEstimator
Expand All @@ -15,8 +16,12 @@
try:
from . import _ridgec as mo
except ModuleNotFoundError:
cythonize_file("_ridgec.pyx")
import _ridgec
try:
cythonize_file("./_ridgec.pyx")
import _ridgec
except ModuleNotFoundError:
subprocess.run(['python3', './fallbacksetup.py', 'build_ext', '--inplace'])
import _ridgec


class RidgeRegressor(BaseEstimator, RegressorMixin):
Expand Down
8 changes: 8 additions & 0 deletions mlsauce/ridge/fallbacksetup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from distutils.core import setup
from Cython.Build import cythonize
import os

dir_path = os.path.dirname(os.path.realpath(__file__))

setup(ext_modules=cythonize(os.path.join(dir_path, "_ridgec.pyx"),
compiler_directives={'language_level' : "3"}))
9 changes: 7 additions & 2 deletions mlsauce/stump/_stump_classifier.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
import numpy as np
import subprocess
from sklearn.base import BaseEstimator
from sklearn.base import ClassifierMixin
from ..utils import cythonize_file

try:
from . import _stumpc as stumpc
except ModuleNotFoundError:
cythonize_file("_stumpc.pyx")
import _stumpc
try:
cythonize_file("./_stumpc.pyx")
import _stumpc
except ModuleNotFoundError:
subprocess.run(['python3', './fallbacksetup.py', 'build_ext', '--inplace'])
import _stumpc


class StumpClassifier(BaseEstimator, ClassifierMixin):
Expand Down
8 changes: 8 additions & 0 deletions mlsauce/stump/fallbacksetup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from distutils.core import setup
from Cython.Build import cythonize
import os

dir_path = os.path.dirname(os.path.realpath(__file__))

setup(ext_modules=cythonize(os.path.join(dir_path, "_stumpc.pyx"),
compiler_directives={'language_level' : "3"}))
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
MAINTAINER_EMAIL = 'thierry.moudiki@gmail.com'
LICENSE = 'BSD3 Clause Clear'

__version__ = '0.15.1'
__version__ = '0.15.2'

VERSION = __version__

Expand Down

0 comments on commit 0551fa5

Please sign in to comment.