Skip to content

Commit 4e02759

Browse files
committed
correct error in tests
1 parent 99b2aad commit 4e02759

File tree

5 files changed

+3
-8
lines changed

5 files changed

+3
-8
lines changed

rehline/_path_sol.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,6 @@ def plqERM_Ridge_path_sol(
7676
return_time : bool, default=True
7777
If True, return timing information for each value of `C`.
7878
79-
plot_path : bool, default=False
80-
If True, generate a plot of the coefficient paths as a function of `C`.
81-
8279
Returns
8380
-------
8481
Cs : ndarray of shape (n_Cs,)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from pybind11.setup_helpers import Pybind11Extension, build_ext
77
from setuptools import setup
88

9-
__version__ = "0.1.0"
9+
__version__ = "0.1.1"
1010

1111
# The main interface is through Pybind11Extension.
1212
# * You can add cxx_std=11/14/17, and then build_ext can be removed.

tests/_test_fairsvm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
# specific the param of FairSVM
2222
X_sen = X[:,sen_idx]
23-
A = np.repeat([X_sen @ X], repeats=[2], axis=0) / n
23+
A = np.repeat([X_sen.flatten() @ X], repeats=[2], axis=0) / n
2424
A[1] = -A[1]
2525
# suppose the fair tolerance is 0.01
2626
b = np.array([.01, .01])

tests/_test_path_sol.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
# warm_start=False,
2525
# constraint=[],
2626
# return_time=True,
27-
# plot_path=True
2827
# )
2928

3029
# calculate with warm_start=True
@@ -38,7 +37,6 @@
3837
warm_start=True,
3938
constraint=[],
4039
return_time=True,
41-
plot_path=True
4240
)
4341

4442

tests/_test_svr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Test SVR on simulated dataset
22
import numpy as np
33

4-
from rehline import ReHLine
4+
from rehline import ReHLine, plqERM_Ridge
55

66
np.random.seed(1024)
77
# simulate regression dataset

0 commit comments

Comments
 (0)