Repository: Ars-Linguistica/mlconjug3 (language: python)

Issue:
Version 3.10.4
Updated dependencies and documentation.


Discussion / hints:

Fix patch:
diff --git a/.bumpversion.cfg b/.bumpversion.cfg
index 633636a2..18bcd920 100644
--- a/.bumpversion.cfg
+++ b/.bumpversion.cfg
@@ -1,5 +1,5 @@
 [bumpversion]
-current_version = 3.10.3
+current_version = 3.10.4
 commit = True
 tag = True
 
diff --git a/mlconjug3/__init__.py b/mlconjug3/__init__.py
index 53157a10..c627c0b3 100644
--- a/mlconjug3/__init__.py
+++ b/mlconjug3/__init__.py
@@ -26,7 +26,7 @@
 
 __author__ = "Sekou Diao, Ars Linguistica" ""
 __email__ = "diao.sekou.nlp@gmail.com"
-__version__ = "3.10.3"
+__version__ = '3.10.4'
 __copyright__ = "Copyright (c) 2023, Ars Linguistica"
 __credits__ = (
     "Sekou Diao",
diff --git a/mlconjug3/data/models/trained_model-en-final.zip b/mlconjug3/data/models/trained_model-en-final.zip
index 47e0946d..338b3cd5 100644
Binary files a/mlconjug3/data/models/trained_model-en-final.zip and b/mlconjug3/data/models/trained_model-en-final.zip differ
diff --git a/mlconjug3/data/models/trained_model-es-final.zip b/mlconjug3/data/models/trained_model-es-final.zip
index 98384bce..5f7fdbda 100644
Binary files a/mlconjug3/data/models/trained_model-es-final.zip and b/mlconjug3/data/models/trained_model-es-final.zip differ
diff --git a/mlconjug3/data/models/trained_model-fr-final.zip b/mlconjug3/data/models/trained_model-fr-final.zip
index aa34b409..c5baa78f 100644
Binary files a/mlconjug3/data/models/trained_model-fr-final.zip and b/mlconjug3/data/models/trained_model-fr-final.zip differ
diff --git a/mlconjug3/data/models/trained_model-it-final.zip b/mlconjug3/data/models/trained_model-it-final.zip
index 93db2bbb..87831563 100644
Binary files a/mlconjug3/data/models/trained_model-it-final.zip and b/mlconjug3/data/models/trained_model-it-final.zip differ
diff --git a/mlconjug3/data/models/trained_model-pt-final.zip b/mlconjug3/data/models/trained_model-pt-final.zip
index fdab17f9..1a446ffc 100644
Binary files a/mlconjug3/data/models/trained_model-pt-final.zip and b/mlconjug3/data/models/trained_model-pt-final.zip differ
diff --git a/mlconjug3/data/models/trained_model-ro-final.zip b/mlconjug3/data/models/trained_model-ro-final.zip
index a0c1dc44..0f853447 100644
Binary files a/mlconjug3/data/models/trained_model-ro-final.zip and b/mlconjug3/data/models/trained_model-ro-final.zip differ
diff --git a/pyproject.toml b/pyproject.toml
index c7f683d4..e38738af 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
 
 [tool.poetry]
 name = "mlconjug3"
-version = "3.10.3"
+version = "3.10.4"
 description = "A Command Line application and Python library to conjugate French, English, Spanish, Italian, Portuguese and Romanian verbs using Machine Learning techniques."
 license = "MIT license"
 keywords = ["mlconjug3", "conjugate", "conjugator", "conjugation", "conjugaison", "conjugación", "coniugazione", "conjugação", "conjugare", "verbs", "verbes", "verbos", "ML", "machine-learning", "NLP", "linguistics", "linguistique", "linguistica", "conjug_manager", "sklearn", "scikit-learn"]
@@ -35,7 +35,7 @@ python = ">=3.8.0,<3.12"
 click = "~8.1.3"
 defusedxml = "~0.7.1"
 joblib = ">=1.2,<1.4"
-scikit-learn = "==1.2.1"
+scikit-learn = "==1.3.0"
 rich = ">=13.2,<13.6"
 pyyaml = "~6.0"
 tomlkit = ">=0.11.6,<0.13.0"
diff --git a/setup.py b/setup.py
index 7f586eda..370d365d 100644
--- a/setup.py
+++ b/setup.py
@@ -57,7 +57,7 @@
 
 setup(
     name='mlconjug3',
-    version='3.10.3',
+    version='3.10.4',
     description="A Python library to conjugate French, English, Spanish, Italian, Portuguese and Romanian verbs using Machine Learning techniques.",
     long_description=readme + '\n\n' + installation + '\n\n' + usage + '\n\n' + history,
     long_description_content_type="text/x-rst",


Test patch:
diff --git a/tests/test_mlconjug.py b/tests/test_mlconjug.py
index 17b15f95..b08602ac 100644
--- a/tests/test_mlconjug.py
+++ b/tests/test_mlconjug.py
@@ -344,7 +344,7 @@ def trainer(self):
                       vectorizer=mlconjug3.CountVectorizer(analyzer=partial(extract_verb_features, lang=lang, ngram_range=(2, 7)),
                                              binary=True, lowercase=False),
                       feature_selector=mlconjug3.SelectFromModel(mlconjug3.LinearSVC(penalty = "l1", max_iter = 12000, dual = False, verbose = 0)),
-                      classifier=mlconjug3.SGDClassifier(loss = "log", penalty = "elasticnet", l1_ratio = 0.15, max_iter = 40000, alpha = 1e-5, verbose = 0)
+                      classifier=mlconjug3.SGDClassifier(loss = "log_loss", penalty = "elasticnet", l1_ratio = 0.15, max_iter = 40000, alpha = 1e-5, verbose = 0)
                   )
                  }
         return ConjugatorTrainer(**params)