0457beb9a9ab772fa3d2a4b74ca6abf98205ff4b,loudml/loudml/fingerprints.py,FingerprintsModel,predict,#FingerprintsModel#Any#Any#Any#,282

Before Change


        // Prepare dataset
        nb_keys = self.max_keys
        dimens = 4 * self.nb_features
        dataset = np.zeros((nb_keys, dimens), dtype=float)

        // 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(

After Change



        // Fill dataset
        features_dicts=[]
        for agg_num, agg in enumerate(self.aggs):
            data = datasource.get_quadrant_data(self, agg, from_ts, to_ts)
            features = dict()
            for key, val in data:
                features[key] = self.format_quadrants(val, agg)
            features_dicts.append(features)

        keys, dataset = self._make_dataset(features_dicts)

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

Frequency: 4

Non-data size: 7

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: predict


Project Name: datascienceinc/Skater
Commit Name: 058c79c9653af78184deb94aa3853f8a37eec32a
Time: 2017-03-02
Author: aikramer2@gmail.com
File Name: pyinterpret/core/global_interpretation/partial_dependence.py
Class Name: PartialDependence
Method Name: partial_dependence


Project Name: idaholab/raven
Commit Name: 078b2512f26bfb20aa3ecbb6a065008bf7d45753
Time: 2020-06-30
Author: mohammad.abdo@inl.gov
File Name: framework/Optimizers/GeneticAlgorithm.py
Class Name: GeneticAlgorithm
Method Name: _useRealization


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