Skip to content

Commit 9f033ab

Browse files
committed
mac
1 parent 2ac7f0d commit 9f033ab

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

_unittests/ut_mlmodel/test_piecewise_decision_tree_experiment_fast.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,15 @@ def test_criterions(self):
102102
assert_criterion_equal(c1, c2)
103103
left1, right1 = _test_criterion_node_impurity_children(c1)
104104
left2, right2 = _test_criterion_node_impurity_children(c2)
105-
self.assertAlmostEqual(left1, left2)
106-
self.assertAlmostEqual(right1, right2)
105+
self.assertAlmostEqual(left1, left2, atol=1e-8)
106+
self.assertAlmostEqual(right1, right2, atol=1e-8)
107107
v1 = _test_criterion_node_value(c1)
108108
v2 = _test_criterion_node_value(c2)
109109
self.assertEqual(v1, v2)
110110
assert_criterion_equal(c1, c2)
111111
p1 = _test_criterion_impurity_improvement(c1, 0.0, left1, right1)
112112
p2 = _test_criterion_impurity_improvement(c2, 0.0, left2, right2)
113-
self.assertAlmostEqual(p1, p2)
113+
self.assertAlmostEqual(p1, p2, atol=1e-8)
114114

115115
X = numpy.array([[1.0, 2.0, 10.0, 11.0]]).T
116116
y = numpy.array([0.9, 1.1, 1.9, 2.1])
@@ -123,7 +123,7 @@ def test_criterions(self):
123123
_test_criterion_init(c2, ys, w, 1.0, ind, 1, y.shape[0])
124124
i1 = _test_criterion_node_impurity(c1)
125125
i2 = _test_criterion_node_impurity(c2)
126-
self.assertAlmostEqual(i1, i2)
126+
self.assertAlmostEqual(i1, i2, atol=1e-8)
127127
v1 = _test_criterion_node_value(c1)
128128
v2 = _test_criterion_node_value(c2)
129129
self.assertEqual(v1, v2)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ repair-wheel-command = "auditwheel-symbols --manylinux 2_28 {wheel} ; abi3audit
118118
[tool.cibuildwheel.macos]
119119
archs = "arm64" # or "universal2" for a single universal wheel
120120
environment = """
121-
MACOSX_DEPLOYMENT_TARGET=14.0
121+
MACOSX_DEPLOYMENT_TARGET=15.0
122122
LDFLAGS='-L$(brew --prefix libomp)/lib'
123123
CPPFLAGS='-I$(brew --prefix libomp)/include'
124124
CFLAGS='-I$(brew --prefix libomp)/include -arch x86_64 -arch arm64'

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ sphinx-issues; sys_platform == 'linux'
3030
sphinx-runpython
3131
toml; python_version < '3.11'
3232
tomli
33-
torch
33+
torch==2.9.1+cpu
3434
torchvision
3535
torchaudio
3636
tqdm

0 commit comments

Comments
 (0)