Skip to content

Commit

Permalink
Correct target score (#170)
Browse files Browse the repository at this point in the history
* I supplemented the documentation with a paragraph about the work of the framework with the optimal selection of two real and one discrete parameters. Corrected the problem code for finding real and discrete parameters.

* correct target score
  • Loading branch information
Audice authored Nov 20, 2023
1 parent 17d4e58 commit ee99000
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 ee99000

Please sign in to comment.