Skip to content

Commit 8e35f5b

Browse files
Merge pull request #20 from dimitrismistriotis/package_update_to_1_2_1
Scikit Learn update to 1.2.1
2 parents 5152f9e + 4f8f453 commit 8e35f5b

File tree

9 files changed

+15
-15
lines changed

9 files changed

+15
-15
lines changed

.github/workflows/checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
matrix:
1111
# For quotes on 3.10: https://github.com/actions/setup-python/issues/160
12-
python_version: [3.8, 3.9, '3.10']
12+
python_version: [3.8, 3.9, '3.10', 3.11]
1313
steps:
1414
- uses: actions/checkout@v2
1515
- uses: actions/setup-python@v1
@@ -24,7 +24,7 @@ jobs:
2424
strategy:
2525
matrix:
2626
# For quotes on 3.10: https://github.com/actions/setup-python/issues/160
27-
python_version: [3.8, 3.9, '3.10']
27+
python_version: [3.8, 3.9, '3.10', 3.11]
2828
steps:
2929
- uses: actions/checkout@v2
3030
- uses: actions/setup-python@v1

.github/workflows/package_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: actions/checkout@v2
2020
- uses: actions/setup-python@v1
2121
with:
22-
python-version: "3.10" # Latest no need to change as one copy will be delivered
22+
python-version: "3.11" # Latest no need to change as one copy will be delivered
2323
#
2424
# Get tag:
2525
#

development_requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
#
44
-r requirements.txt
55

6-
pytest==7.1.2
7-
pylint==2.14.5
8-
black==22.6.0
6+
pytest==7.2.1
7+
pylint==2.16.0
8+
black==23.1.0

profanity_check/data/model.joblib

16 Bytes
Binary file not shown.

profanity_check/data/train_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
vectorizer = TfidfVectorizer(stop_words="english", min_df=0.0001)
1313
X = vectorizer.fit_transform(texts)
1414

15-
model = LinearSVC(class_weight="balanced", dual=False, tol=1e-2, max_iter=1e5)
16-
calibrated_classifier_cv = CalibratedClassifierCV(base_estimator=model)
15+
model = LinearSVC(class_weight="balanced", dual=False, tol=1e-2, max_iter=int(1e5))
16+
calibrated_classifier_cv = CalibratedClassifierCV(estimator=model)
1717
calibrated_classifier_cv.fit(X, y)
1818

1919
dump(vectorizer, "vectorizer.joblib")
0 Bytes
Binary file not shown.

requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
joblib==1.2.0
2-
numpy==1.23.4
2+
numpy==1.24.1
33
# Used for the training script:
4-
pandas==1.5.1
5-
scikit-learn==1.1.3
6-
scipy==1.9.3; python_version >= '3.10'
4+
pandas==1.5.3
5+
scikit-learn==1.2.1
6+
scipy==1.10.0; python_version >= '3.10'

requirements_for_uploading.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
twine==4.0.1
1+
twine==4.0.2

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setuptools.setup(
88
name="alt-profanity-check",
9-
version="1.1.3",
9+
version="1.2.1",
1010
author="Victor Zhou (original author), Menelaos Kotoglou, Dimitrios Mistriotis",
1111
author_email="[email protected]",
1212
description=(
@@ -17,7 +17,7 @@
1717
long_description_content_type="text/markdown",
1818
url="https://github.com/dimitrismistriotis/alt-profanity-check",
1919
packages=setuptools.find_packages(),
20-
install_requires=["scikit-learn==1.1.3", "joblib>=1.2.0"],
20+
install_requires=["scikit-learn==1.2.1", "joblib>=1.2.0"],
2121
python_requires=">=3.8",
2222
package_data={"profanity_check": ["data/model.joblib", "data/vectorizer.joblib"]},
2323
classifiers=[

0 commit comments

Comments
 (0)