Skip to content

Commit

Permalink
GH-474: remove regression-soecific trainer
Browse files Browse the repository at this point in the history
  • Loading branch information
aakbik authored and stefan-it committed Apr 26, 2019
1 parent 5e77d62 commit 9cdb539
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 176 deletions.
3 changes: 1 addition & 2 deletions flair/hyperparameter/param_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,7 @@ def _objective(self, params: dict):
curr_scores = list(
map(lambda s: 1 - s, result["dev_score_history"][-3:])
)
print(result)
print(curr_scores)

score = sum(curr_scores) / float(len(curr_scores))
var = np.var(curr_scores)
scores.append(score)
Expand Down
174 changes: 0 additions & 174 deletions flair/trainers/trainer_regression.py

This file was deleted.

0 comments on commit 9cdb539

Please sign in to comment.