fe65da57a1f4e7a6ec365636a92ccca5cef6e80a,niftynet/io/image_sets_partitioner.py,ImageSetsPartitioner,to_string,#ImageSetsPartitioner#,321
Before Change
"-- {} {}.\n".format(
VALID, self.number_of_subjects(VALID), self.ratios[0],
INFER, self.number_of_subjects(INFER), self.ratios[1],
TRAIN, self.number_of_subjects(TRAIN))
else:
summary_str += "-- using all subjects " \
"(without data partitioning).\n"
After Change
if self._file_list is not None:
summary_str += "input section names: {}\n".format(
list(self._file_list))
if self._partition_ids is not None and n_subjects > 0:
n_valid = self.number_of_subjects(VALID)
n_train = self.number_of_subjects(INFER)
n_infer = self.number_of_subjects(TRAIN)
summary_str += \
"data partitioning -- number of cases:\n" \
"-- {} {} ({:.2f}%),\n" \
"-- {} {} ({:.2f}%),\n" \
"-- {} {}.\n".format(
VALID, n_valid, float(n_valid) / float(n_subjects) * 100.0,
INFER, n_train, float(n_train) / float(n_subjects) * 100.0,
TRAIN, n_infer)
else:
summary_str += "-- using all subjects " \
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: NifTK/NiftyNet
Commit Name: fe65da57a1f4e7a6ec365636a92ccca5cef6e80a
Time: 2017-11-16
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/io/image_sets_partitioner.py
Class Name: ImageSetsPartitioner
Method Name: to_string
Project Name: NifTK/NiftyNet
Commit Name: fe65da57a1f4e7a6ec365636a92ccca5cef6e80a
Time: 2017-11-16
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/io/image_sets_partitioner.py
Class Name: ImageSetsPartitioner
Method Name: to_string