Skip to content

Commit

Permalink
correct target score
Browse files Browse the repository at this point in the history
  • Loading branch information
Audice committed Nov 20, 2023
1 parent 31dcaec commit 7076b6b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ def calculate(self, point: Point, function_value: FunctionValue) -> FunctionValu
"""
cs, gammas = point.float_variables[0], point.float_variables[1]
clf = SVC(C=10 ** cs, gamma=10 ** gammas)
function_value.value = -cross_val_score(clf, self.x, self.y, scoring='accuracy').mean()
function_value.value = -cross_val_score(clf, self.x, self.y, scoring='f1_macro').mean()
return function_value

0 comments on commit 7076b6b

Please sign in to comment.