Add subparser to be_report & tests

This commit is contained in:
2022-11-20 18:23:26 +01:00
parent 146304f4b5
commit 1b8a424ad3
7 changed files with 109 additions and 76 deletions

View File

@@ -251,7 +251,7 @@ class ReportBest(BaseReport):
"Hyperparameters",
]
def __init__(self, score, model, best, grid):
def __init__(self, score, model, best):
name = (
Files.best_results(score, model)
if best
@@ -259,7 +259,6 @@ class ReportBest(BaseReport):
)
file_name = os.path.join(Folders.results, name)
self.best = best
self.grid = grid
self.score_name = score
self.model = model
super().__init__(file_name, best_file=True)