0457beb9a9ab772fa3d2a4b74ca6abf98205ff4b,loudml/loudml/fingerprints.py,FingerprintsModel,train,#FingerprintsModel#Any#Any#Any#Any#Any#,163

Before Change


        // Fill dataset
        data = datasource.get_quadrant_data(self, from_ts, to_ts)

        i = None
        keys = []
        for i, (key, val) in enumerate(data):
            keys.append(key)
            dataset[i] = self.format_quadrants(val)

        if i is None:
            raise errors.NoData("no data found for time range {}-{}".format(
                from_str,
                to_str,
            ))

        logging.info("found %d keys", i + 1)

        mapped = self._train_on_dataset(
            np.resize(dataset, (i + 1, dimens)),
            num_epochs,
            limit,
        )

After Change



        keys, dataset = self._make_dataset(features_dicts)

        if len(keys) == 0:
            raise errors.NoData("no data found for time range {}-{}".format(
                from_str,
                to_str,
            ))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: regel/loudml
Commit Name: 0457beb9a9ab772fa3d2a4b74ca6abf98205ff4b
Time: 2018-04-30
Author: sebastien.regel@gmail.com
File Name: loudml/loudml/fingerprints.py
Class Name: FingerprintsModel
Method Name: train


Project Name: regel/loudml
Commit Name: 0457beb9a9ab772fa3d2a4b74ca6abf98205ff4b
Time: 2018-04-30
Author: sebastien.regel@gmail.com
File Name: loudml/loudml/fingerprints.py
Class Name: FingerprintsModel
Method Name: predict


Project Name: ilastik/ilastik
Commit Name: aeeb48d960a372bffc86555c53f9d610b4325e20
Time: 2019-06-26
Author: tomaz.vieira@embl.de
File Name: ilastik/applets/dataSelection/dataSelectionGui.py
Class Name: DataSelectionGui
Method Name: addStack