Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ec0f553

Browse files
authored
Development version to upgrade underlying libraries and python version (#400)
* Upgrading libraries to avoid failures in Apple M1 machines * Fixing local predictions input data preprocessing for missings * Updating sensenet version * Development version upgrading underlying libraries
1 parent a03e0e6 commit ec0f553

File tree

9 files changed

+17
-10
lines changed

9 files changed

+17
-10
lines changed

.github/workflows/tests_01.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python: [3.10]
15+
python: [3.11]
1616
env:
1717
BIGML_USERNAME: ${{ secrets.BIGML_USERNAME }}
1818
BIGML_API_KEY: ${{ secrets.BIGML_API_KEY }}

.github/workflows/tests_05.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python: [3.10]
15+
python: [3.11]
1616
env:
1717
BIGML_USERNAME: ${{ secrets.BIGML_USERNAME }}
1818
BIGML_API_KEY: ${{ secrets.BIGML_API_KEY }}

.github/workflows/tests_22.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python: [3.10]
15+
python: [3.11]
1616
env:
1717
BIGML_USERNAME: ${{ secrets.BIGML_USERNAME }}
1818
BIGML_API_KEY: ${{ secrets.BIGML_API_KEY }}

.github/workflows/tests_23.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python: [3.10]
15+
python: [3.11]
1616
env:
1717
BIGML_USERNAME: ${{ secrets.BIGML_USERNAME }}
1818
BIGML_API_KEY: ${{ secrets.BIGML_API_KEY }}

.github/workflows/tests_36.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python: [3.10]
15+
python: [3.11]
1616
env:
1717
BIGML_USERNAME: ${{ secrets.BIGML_USERNAME }}
1818
BIGML_API_KEY: ${{ secrets.BIGML_API_KEY }}

HISTORY.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
History
44
-------
55

6+
9.8.0.dev (2024-02-19)
7+
----------------------
8+
9+
- Upgrading libraries to avoid failures in Apple M1 machines.
10+
- Fixing local predictions input data preprocessing for missings.
11+
612
9.7.1 (2023-12-08)
713
------------------
814

bigml/modelfields.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ def normalize(self, value):
290290
"""
291291
if isinstance(value, str) and not isinstance(value, str):
292292
value = str(value, "utf-8")
293-
return None if value in self.missing_tokens else value
293+
return None if hasattr(self, "missing_tokens") and \
294+
value in self.missing_tokens else value
294295

295296
def fill_numeric_defaults(self, input_data):
296297
"""Fills the value set as default for numeric missing fields if user

bigml/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '9.7.1'
1+
__version__ = '9.8.0.dev'

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
version = re.search("__version__ = '([^']+)'",
3030
open(version_py_path).read()).group(1)
3131

32-
TOPIC_MODELING_DEPENDENCIES = ["cython", "pystemmer==2.0.1"]
33-
IMAGES_DEPENDENCIES = ["bigml-sensenet==0.7.0"]
32+
TOPIC_MODELING_DEPENDENCIES = ["cython", "pystemmer==2.2.0.1"]
33+
IMAGES_DEPENDENCIES = ["bigml-sensenet==0.7.2"]
3434

3535
# Concatenate files into the long description
3636
file_contents = []
@@ -51,7 +51,7 @@
5151
license="http://www.apache.org/licenses/LICENSE-2.0",
5252
setup_requires = ['pytest'],
5353
install_requires = ["unidecode", "bigml-chronos>=0.4.3", "requests",
54-
"requests-toolbelt", "msgpack", "numpy>=1.22,<1.24", "scipy",
54+
"requests-toolbelt", "msgpack", "numpy>=1.22", "scipy",
5555
"javascript"],
5656
extras_require={"images": IMAGES_DEPENDENCIES,
5757
"topics": TOPIC_MODELING_DEPENDENCIES,

0 commit comments

Comments
 (0)