mirror of
https://github.com/Doctorado-ML/benchmark.git
synced 2025-08-17 16:35:54 +00:00
Add a space to #Samples in dataset report
This commit is contained in:
@@ -535,8 +535,8 @@ class ReportDatasets:
|
|||||||
data_sets = Datasets()
|
data_sets = Datasets()
|
||||||
color_line = TextColor.LINE1
|
color_line = TextColor.LINE1
|
||||||
print(color_line, end="")
|
print(color_line, end="")
|
||||||
print(f"{'Dataset':30s} Samp. Feat. Cls Balance")
|
print(f"{'Dataset':30s} Sampl. Feat. Cls Balance")
|
||||||
print("=" * 30 + " ===== ===== === " + "=" * 40)
|
print("=" * 30 + " ===== ====== === " + "=" * 40)
|
||||||
for dataset in data_sets:
|
for dataset in data_sets:
|
||||||
X, y = data_sets.load(dataset)
|
X, y = data_sets.load(dataset)
|
||||||
color_line = (
|
color_line = (
|
||||||
@@ -552,7 +552,7 @@ class ReportDatasets:
|
|||||||
sep = "/ "
|
sep = "/ "
|
||||||
print(color_line, end="")
|
print(color_line, end="")
|
||||||
print(
|
print(
|
||||||
f"{dataset:30s} {X.shape[0]:5,d} {X.shape[1]:5,d} "
|
f"{dataset:30s} {X.shape[0]:6,d} {X.shape[1]:5,d} "
|
||||||
f"{len(np.unique(y)):3d} {comp:40s}"
|
f"{len(np.unique(y)):3d} {comp:40s}"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
[94mDataset Samp. Feat. Cls Balance
|
[94mDataset Sampl. Feat. Cls Balance
|
||||||
============================== ===== ===== === ========================================
|
============================== ===== ====== === ========================================
|
||||||
[96mbalance-scale 625 4 3 7.84%/ 46.08%/ 46.08%
|
[96mbalance-scale 625 4 3 7.84%/ 46.08%/ 46.08%
|
||||||
[94mballoons 16 4 2 56.25%/ 43.75%
|
[94mballoons 16 4 2 56.25%/ 43.75%
|
||||||
|
Reference in New Issue
Block a user