9db50ab9ed6bf6b4e462c84e2c38fedd36e7467a,niftynet/io/image_sets_partitioner.py,ImageSetsPartitioner,randomly_split_dataset,#ImageSetsPartitioner#Any#,163

Before Change


            return
        tf.logging.fatal("Unable to load partition file from %s",
                         self.dataset_split_file)
        raise ValueError

    def __str__(self):
        return self.to_string()

After Change


        if overwrite:
            try:
                valid_fraction, infer_fraction = self.ratios
                valid_fraction = max(min(1.0, float(valid_fraction)), 0.0)
                infer_fraction = max(min(1.0, float(infer_fraction)), 0.0)
            except (TypeError, ValueError):
                tf.logging.fatal(
                    "Unknown format of faction values %s", self.ratios)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: NifTK/NiftyNet
Commit Name: 9db50ab9ed6bf6b4e462c84e2c38fedd36e7467a
Time: 2017-11-08
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/io/image_sets_partitioner.py
Class Name: ImageSetsPartitioner
Method Name: randomly_split_dataset


Project Name: AlexEMG/DeepLabCut
Commit Name: 880cc7263c4f45724a2c3e18b4e7ac416f1b3c35
Time: 2020-05-31
Author: 30733203+jeylau@users.noreply.github.com
File Name: deeplabcut/utils/skeleton.py
Class Name: SkeletonBuilder
Method Name: pick_labeled_frame


Project Name: ray-project/ray
Commit Name: be8e63d4774207a94fa7d26f9f9e1f7f55f9e664
Time: 2020-08-10
Author: rliaw@berkeley.edu
File Name: python/ray/tune/suggest/suggestion.py
Class Name: Searcher
Method Name: restore_from_dir