Skip to content

Commit

Permalink
fix bug in evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
liyc-ai committed Sep 17, 2022
1 parent bc69062 commit a50d296
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alipy/experiment/al_experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def __al_main_loop(self, round, train_id, test_id, Lcollection, Ucollection,
querfunction = QueryInstanceQUIRE(self._X, self._y, train_id, **self._query_function_kwargs)

# performance calc
perf_result = self._performance_metric(pred, self._y[test_id])
perf_result = self._performance_metric(self._y[test_id], pred)

# stopping-criterion
stopping_criterion = copy.deepcopy(self._stopping_criterion)
Expand Down Expand Up @@ -411,7 +411,7 @@ def __al_main_loop(self, round, train_id, test_id, Lcollection, Ucollection,
pred = self._model.predict(self._X[test_id, :])

# performance calc
perf_result = self._performance_metric(pred, self._y[test_id])
perf_result = self._performance_metric(self._y[test_id], pred)

# save intermediate results
st = State(select_index=select_ind, performance=perf_result)
Expand Down

0 comments on commit a50d296

Please sign in to comment.