baecce5a6fbe4576ca8348a93dc56f07e7ba84f6,niftynet/contrib/csv_reader/csv_reader.py,CSVReader,_parse_csv,#CSVReader#Any#Any#,72

Before Change


            )
        df.index = df["subject_id"]
        assert set(df.index) == set(self.subject_ids)
        df = df.loc[self.subject_ids]
        if to_ohe and len(df.columns[1:])==1:
            _dims = len(list(df[df.columns[1]].unique()))
            _indexable_output = self.to_ohe(df["label"].values, _dims)
            return df, _indexable_output, _dims

After Change


        tf.logging.warning("This method will read your entire csv into memory")
        df = pd.read_csv(path_to_csv, index_col=0, header=None)
        if set(df.index) != set(self.subject_ids):
            print(set(self.subject_ids) - set(df.index))
            tf.logging.fatal("csv file provided at: {} does not have all the subject_ids".format(path_to_csv))
            raise Exception
        if to_ohe and len(df.columns)==1:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: NifTK/NiftyNet
Commit Name: baecce5a6fbe4576ca8348a93dc56f07e7ba84f6
Time: 2019-06-05
Author: ucabtmv@ucl.ac.uk
File Name: niftynet/contrib/csv_reader/csv_reader.py
Class Name: CSVReader
Method Name: _parse_csv


Project Name: uber/ludwig
Commit Name: 18a12b023f394b102ac6cafa1b935055c6f8d849
Time: 2020-05-07
Author: jimthompson5802@gmail.com
File Name: ludwig/models/modules/sequence_decoders.py
Class Name: SequenceGeneratorDecoder
Method Name: call


Project Name: dmlc/gluon-nlp
Commit Name: 03b0e7061cf477fbeccb9c128ee76603df582d86
Time: 2018-09-04
Author: leonard@lausen.nl
File Name: scripts/word_embeddings/evaluate_pretrained.py
Class Name:
Method Name:


Project Name: keras-team/keras
Commit Name: 6b106ab4ec9a1c0eb3e24ae590ce63f84022ad40
Time: 2017-10-16
Author: francois.chollet@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: conv2d