f41d084cb14a17bc71e5f71c0b9469fc35fc6de1,deepchem/splits/splitters.py,Splitter,k_fold_split,#Splitter#Any#Any#Any#,56

Before Change



      train_dataset = DiskDataset.merge(filter(lambda x: x is not None, [train_ds_base, cv_dataset]))
      train_datasets.append(train_dataset)
      train_ds_base = DiskDataset.merge(filter(lambda x: x is not None, [train_ds_base, cv_dataset]))
      cv_datasets.append(cv_dataset)
    return list(zip(train_datasets, cv_datasets))

  def train_valid_test_split(self,

After Change


      // Note starts as 1/k since fold starts at 0. Ends at 1 since fold goes up
      // to k-1.
      frac_fold = 1. / (k - fold)
      train_dir, cv_dir = directories[2 * fold], directories[2 * fold + 1]
      fold_inds, rem_inds, _ = self.split(
          rem_dataset,
          frac_train=frac_fold,
          frac_valid=1 - frac_fold,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: deepchem/deepchem
Commit Name: f41d084cb14a17bc71e5f71c0b9469fc35fc6de1
Time: 2017-07-24
Author: Karl
File Name: deepchem/splits/splitters.py
Class Name: Splitter
Method Name: k_fold_split


Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: 0f3c2a95cb96026b88711277ec9a701dedb9adb2
Time: 2018-10-26
Author: jcastaldo08@gmail.com
File Name: category_encoders/hashing.py
Class Name: HashingEncoder
Method Name: hashing_trick


Project Name: azavea/raster-vision
Commit Name: 3676970a96bd66646b4cf40991e319e34154bc97
Time: 2019-05-29
Author: lewfish@gmail.com
File Name: rastervision/evaluation/semantic_segmentation_evaluation.py
Class Name: SemanticSegmentationEvaluation
Method Name: compute