Skip to content

Commit

Permalink
Merge pull request #31 from Techtonique/v0180
Browse files Browse the repository at this point in the history
V0180
  • Loading branch information
thierrymoudiki authored May 6, 2024
2 parents ef93a00 + 117099a commit 0885d9f
Show file tree
Hide file tree
Showing 19 changed files with 1,739 additions and 1,676 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
- name: Run examples
run: pip install .&&find examples -maxdepth 2 -name "*.py" -exec python3 {} \;

#- name: Publish to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# password: ${{ secrets.PYPI_GLOBAL_MLSAUCE }}
# repository-url: https://upload.pypi.org/legacy/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_GLOBAL_MLSAUCE }}
repository-url: https://upload.pypi.org/legacy/
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# version 0.18.0
# version 0.18.2

- Gaussian weights in `LSBoostRegressor` and `LSBoostClassifier` randomized hidden layer

Expand Down
13 changes: 13 additions & 0 deletions examples/lsboost_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,3 +270,16 @@
print(time()-start)


obj = ms.LSBoostClassifier(solver="lasso",
n_clusters=3, degree=2,
clustering_method="gmm",
weights_distr="gaussian")
print(obj.get_params())
start = time()
obj.fit(X_train, y_train)
print(time()-start)
start = time()
print(obj.score(X_test, y_test))
print(time()-start)


1,682 changes: 853 additions & 829 deletions mlsauce-docs/mlsauce.html

Large diffs are not rendered by default.

1,682 changes: 853 additions & 829 deletions mlsauce-docs/mlsauce/booster.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion mlsauce-docs/search.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion mlsauce.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: mlsauce
Version: 0.18.1
Version: 0.18.2
Summary: Miscellaneous Statistical/Machine Learning tools
Maintainer: T. Moudiki
Maintainer-email: [email protected]
Expand Down
Binary file modified mlsauce/adaopt/_adaoptc.cpython-311-darwin.so
Binary file not shown.
2 changes: 1 addition & 1 deletion mlsauce/adaopt/setup2.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
from distutils.core import setup
from setuptools import setup
from Cython.Build import cythonize

dir_path = os.path.dirname(os.path.realpath(__file__))
Expand Down
5 changes: 3 additions & 2 deletions mlsauce/booster/_booster_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from sklearn.base import BaseEstimator
from sklearn.base import ClassifierMixin
from sklearn.preprocessing import PolynomialFeatures

try:
from . import _boosterc as boosterc
except ImportError:
Expand Down Expand Up @@ -77,7 +78,7 @@ class LSBoostClassifier(BaseEstimator, ClassifierMixin):
degree: int
degree of features interactions to include in the model
weights_distr: str
distribution of weights for constructing the model's hidden layer;
currently 'uniform', 'gaussian'
Expand Down Expand Up @@ -105,7 +106,7 @@ def __init__(
clustering_method="kmeans",
cluster_scaling="standard",
degree=0,
weights_distr="uniform"
weights_distr="uniform",
):
if n_clusters > 0:
assert clustering_method in (
Expand Down
7 changes: 4 additions & 3 deletions mlsauce/booster/_booster_regressor.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from sklearn.base import BaseEstimator
from sklearn.base import RegressorMixin
from sklearn.preprocessing import PolynomialFeatures

try:
from . import _boosterc as boosterc
except ImportError:
Expand Down Expand Up @@ -87,9 +88,9 @@ class LSBoostRegressor(BaseEstimator, RegressorMixin):
degree: int
degree of features interactions to include in the model
weights_distr: str
distribution of weights for constructing the model's hidden layer;
distribution of weights for constructing the model's hidden layer;
either 'uniform' or 'gaussian'
"""
Expand Down Expand Up @@ -118,7 +119,7 @@ def __init__(
clustering_method="kmeans",
cluster_scaling="standard",
degree=0,
weights_distr="uniform"
weights_distr="uniform",
):
if n_clusters > 0:
assert clustering_method in (
Expand Down
Binary file modified mlsauce/booster/_boosterc.cpython-311-darwin.so
Binary file not shown.
Binary file modified mlsauce/lasso/_lassoc.cpython-311-darwin.so
Binary file not shown.
2 changes: 1 addition & 1 deletion mlsauce/lasso/setup2.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
from distutils.core import setup
from setuptools import setup
from Cython.Build import cythonize

dir_path = os.path.dirname(os.path.realpath(__file__))
Expand Down
Binary file modified mlsauce/ridge/_ridgec.cpython-311-darwin.so
Binary file not shown.
2 changes: 1 addition & 1 deletion mlsauce/ridge/setup2.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
from distutils.core import setup
from setuptools import setup
from Cython.Build import cythonize

dir_path = os.path.dirname(os.path.realpath(__file__))
Expand Down
Binary file modified mlsauce/stump/_stumpc.cpython-311-darwin.so
Binary file not shown.
2 changes: 1 addition & 1 deletion mlsauce/stump/setup2.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
from distutils.core import setup
from setuptools import setup
from Cython.Build import cythonize

dir_path = os.path.dirname(os.path.realpath(__file__))
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
MAINTAINER_EMAIL = '[email protected]'
LICENSE = 'BSD3 Clause Clear'

__version__ = '0.18.1'
__version__ = '0.18.2'

VERSION = __version__

Expand Down

0 comments on commit 0885d9f

Please sign in to comment.