proxyml 0.4.0__tar.gz → 0.4.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {proxyml-0.4.0 → proxyml-0.4.1}/PKG-INFO +2 -2
- {proxyml-0.4.0 → proxyml-0.4.1}/pyproject.toml +2 -2
- {proxyml-0.4.0 → proxyml-0.4.1}/src/proxyml/local/challenger.py +4 -0
- {proxyml-0.4.0 → proxyml-0.4.1}/src/proxyml.egg-info/PKG-INFO +2 -2
- {proxyml-0.4.0 → proxyml-0.4.1}/src/proxyml.egg-info/requires.txt +1 -1
- {proxyml-0.4.0 → proxyml-0.4.1}/tests/test_local_challenger.py +16 -0
- {proxyml-0.4.0 → proxyml-0.4.1}/LICENSE +0 -0
- {proxyml-0.4.0 → proxyml-0.4.1}/README.md +0 -0
- {proxyml-0.4.0 → proxyml-0.4.1}/setup.cfg +0 -0
- {proxyml-0.4.0 → proxyml-0.4.1}/src/proxyml/__init__.py +0 -0
- {proxyml-0.4.0 → proxyml-0.4.1}/src/proxyml/client.py +0 -0
- {proxyml-0.4.0 → proxyml-0.4.1}/src/proxyml/local/__init__.py +0 -0
- {proxyml-0.4.0 → proxyml-0.4.1}/src/proxyml/schema_builder.py +0 -0
- {proxyml-0.4.0 → proxyml-0.4.1}/src/proxyml.egg-info/SOURCES.txt +0 -0
- {proxyml-0.4.0 → proxyml-0.4.1}/src/proxyml.egg-info/dependency_links.txt +0 -0
- {proxyml-0.4.0 → proxyml-0.4.1}/src/proxyml.egg-info/top_level.txt +0 -0
- {proxyml-0.4.0 → proxyml-0.4.1}/tests/test_client.py +0 -0
- {proxyml-0.4.0 → proxyml-0.4.1}/tests/test_dependency_boundaries.py +0 -0
- {proxyml-0.4.0 → proxyml-0.4.1}/tests/test_schema_builder.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: proxyml
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.1
|
|
4
4
|
Summary: Python SDK for calling the ProxyML API
|
|
5
5
|
Author-email: ProxyML <contact@proxyml.ai>
|
|
6
6
|
License: Apache License
|
|
@@ -211,7 +211,7 @@ Requires-Dist: pandas>=1.5
|
|
|
211
211
|
Requires-Dist: orjson>=3.9
|
|
212
212
|
Requires-Dist: proxyml-core>=0.1
|
|
213
213
|
Provides-Extra: local
|
|
214
|
-
Requires-Dist: proxyml-core[modeling]>=0.2; extra == "local"
|
|
214
|
+
Requires-Dist: proxyml-core[modeling]>=0.2.1; extra == "local"
|
|
215
215
|
Provides-Extra: dev
|
|
216
216
|
Requires-Dist: build; extra == "dev"
|
|
217
217
|
Requires-Dist: twine; extra == "dev"
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "proxyml"
|
|
7
|
-
version = "0.4.
|
|
7
|
+
version = "0.4.1"
|
|
8
8
|
description = "Python SDK for calling the ProxyML API"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = {file = "LICENSE"}
|
|
@@ -35,7 +35,7 @@ dependencies = [
|
|
|
35
35
|
|
|
36
36
|
[project.optional-dependencies]
|
|
37
37
|
local = [
|
|
38
|
-
"proxyml-core[modeling]>=0.2",
|
|
38
|
+
"proxyml-core[modeling]>=0.2.1",
|
|
39
39
|
]
|
|
40
40
|
dev = [
|
|
41
41
|
"build",
|
|
@@ -60,6 +60,8 @@ def _simple_classifier() -> BaseEstimator:
|
|
|
60
60
|
max_iter=500,
|
|
61
61
|
cv=5,
|
|
62
62
|
n_jobs=-1,
|
|
63
|
+
scoring="accuracy",
|
|
64
|
+
use_legacy_attributes=False,
|
|
63
65
|
)
|
|
64
66
|
|
|
65
67
|
|
|
@@ -76,6 +78,8 @@ def _flexible_classifier() -> BaseEstimator:
|
|
|
76
78
|
max_iter=1000,
|
|
77
79
|
cv=5,
|
|
78
80
|
n_jobs=-1,
|
|
81
|
+
scoring="accuracy",
|
|
82
|
+
use_legacy_attributes=False,
|
|
79
83
|
)
|
|
80
84
|
|
|
81
85
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: proxyml
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.1
|
|
4
4
|
Summary: Python SDK for calling the ProxyML API
|
|
5
5
|
Author-email: ProxyML <contact@proxyml.ai>
|
|
6
6
|
License: Apache License
|
|
@@ -211,7 +211,7 @@ Requires-Dist: pandas>=1.5
|
|
|
211
211
|
Requires-Dist: orjson>=3.9
|
|
212
212
|
Requires-Dist: proxyml-core>=0.1
|
|
213
213
|
Provides-Extra: local
|
|
214
|
-
Requires-Dist: proxyml-core[modeling]>=0.2; extra == "local"
|
|
214
|
+
Requires-Dist: proxyml-core[modeling]>=0.2.1; extra == "local"
|
|
215
215
|
Provides-Extra: dev
|
|
216
216
|
Requires-Dist: build; extra == "dev"
|
|
217
217
|
Requires-Dist: twine; extra == "dev"
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import warnings
|
|
2
|
+
|
|
1
3
|
import numpy as np
|
|
2
4
|
import pandas as pd
|
|
3
5
|
import pytest
|
|
@@ -63,6 +65,20 @@ def test_train_challenger_classification():
|
|
|
63
65
|
assert result.export.classes is not None
|
|
64
66
|
|
|
65
67
|
|
|
68
|
+
def test_train_challenger_classification_rungs_fit_without_sklearn_deprecation_warnings():
|
|
69
|
+
# scoring="accuracy" and use_legacy_attributes=False on the SIMPLE/FLEXIBLE
|
|
70
|
+
# classifiers pin today's sklearn defaults explicitly, matching what
|
|
71
|
+
# get_default_classifier() (the MODERATE rung) already does.
|
|
72
|
+
schema = _schema()
|
|
73
|
+
df = _df(seed=12, n=200)
|
|
74
|
+
target = np.where(df["age"] > 50, "senior", "junior")
|
|
75
|
+
|
|
76
|
+
with warnings.catch_warnings():
|
|
77
|
+
warnings.simplefilter("error", FutureWarning)
|
|
78
|
+
train_challenger(df, target, schema, complexity=Complexity.SIMPLE, task="classification")
|
|
79
|
+
train_challenger(df, target, schema, complexity=Complexity.FLEXIBLE, task="classification")
|
|
80
|
+
|
|
81
|
+
|
|
66
82
|
def test_train_challenger_simple_rung_is_more_regularized_than_flexible():
|
|
67
83
|
schema = _schema()
|
|
68
84
|
df = _df(seed=3)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|