mirror of
https://github.com/Doctorado-ML/Stree_datasets.git
synced 2025-08-16 07:56:07 +00:00
Add normalization/no normalization results
This commit is contained in:
@@ -260,10 +260,8 @@ for number, dataset in enumerate(dt):
|
||||
X, y = dt.load(dataset[0]) # type: ignore
|
||||
line["samp"], line["var"] = X.shape
|
||||
line["cls"] = len(np.unique(y))
|
||||
record = dbh.find_best(dataset[0], models, experiment, time_info)
|
||||
max_accuracy = (
|
||||
0.0 if record is None else record[9] if time_info else record[5]
|
||||
)
|
||||
record = dbh.find_best(dataset[0], models, experiment)
|
||||
max_accuracy = 0.0 if record is None else record[5]
|
||||
line["nodes"] = 0.0
|
||||
line["leaves"] = 0.0
|
||||
line["depth"] = 0.0
|
||||
@@ -282,11 +280,9 @@ for number, dataset in enumerate(dt):
|
||||
acc_std = record[10] if time_info else record[11]
|
||||
find_one = True
|
||||
item = f"{accuracy:{lengths[column + 7]-6}.4f}±{acc_std:.3f}"
|
||||
# item = f"{accuracy:.4f}±{acc_std:.3f}"
|
||||
line_tex[model] = item
|
||||
if round(accuracy, 4) == round(max_accuracy, 4):
|
||||
if round(record[5], 4) == round(max_accuracy, 4):
|
||||
line_tex[model] = "\\textbf{" + item + "}"
|
||||
if accuracy == max_accuracy:
|
||||
line[model] = (
|
||||
TextColor.GREEN + TextColor.BOLD + item + TextColor.ENDC
|
||||
)
|
||||
|
Reference in New Issue
Block a user