Skip to content

Commit f3580a8

Browse files
authored
Merge pull request #1 from JiantingFeng/main
test: set random seed and add default C
2 parents 69b1a6d + 9398cf4 commit f3580a8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/_test_fairsvm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
from rehline import ReHLine
44
from rehline import make_fair_classification
55

6+
np.random.seed(1024)
67
# simulate classification dataset
78
X, y, X_sen = make_fair_classification()
89
n, d = X.shape
10+
C = 0.5
911

1012
## solution provided by ReHLine
1113
# build-in hinge loss for svm

0 commit comments

Comments
 (0)