Skip to content

Commit ce5aac7

Browse files
committed
added comments
1 parent 9f947a9 commit ce5aac7

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

openml/runs/functions.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,14 @@ def _run_task_get_arffcontent(model, task, class_labels):
361361
X, Y = task.get_X_and_y()
362362
arff_datacontent = []
363363
arff_tracecontent = []
364+
# stores fold-based evaluation measures. In case of a sample based task,
365+
# this information is multiple times overwritten, but due to the ordering
366+
# of tne loops, eventually it contains the information based on the full
367+
# dataset size
364368
user_defined_measures_fold = defaultdict(lambda: defaultdict(dict))
369+
# stores sample-based evaluation measures (sublevel of fold-based)
370+
# will also be filled on a non sample-based task, but the information
371+
# is the same as the fold-based measures, and disregarded in that case
365372
user_defined_measures_sample = defaultdict(lambda: defaultdict(lambda: defaultdict(dict)))
366373

367374
# sys.version_info returns a tuple, the following line compares the entry of tuples

0 commit comments

Comments
 (0)