fdb79b730cf635480ac1b264392345936b591ad0,src/skmultiflow/trees/hoeffding_tree_regressor.py,HoeffdingTreeRegressor,normalize_sample,#HoeffdingTreeRegressor#Any#,184

Before Change


                          / self.samples_seen) / self.samples_seen
            if self.samples_seen > 1 and sd_squared >= 0:
                mean = self.sum_of_attribute_values[i] / self.samples_seen
                sd = np.sqrt(sd_squared)
                normalized_sample.append((X[i] - mean) / (3 * sd))
            else:
                normalized_sample.append(0.0)
        if self.samples_seen > 1:

After Change


                else:
                    normalized_sample.append(0.0)
            else:
                normalized_sample.append(0.0)
        if self.samples_seen > 1:
            normalized_sample.append(1.0)  // Value to be multiplied with the constant factor
        else:
            normalized_sample.append(0.0)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: scikit-multiflow/scikit-multiflow
Commit Name: fdb79b730cf635480ac1b264392345936b591ad0
Time: 2020-01-10
Author: albandecrevoisier@gmail.com
File Name: src/skmultiflow/trees/hoeffding_tree_regressor.py
Class Name: HoeffdingTreeRegressor
Method Name: normalize_sample


Project Name: soft-matter/trackpy
Commit Name: ad022c169dbbc3b3f3c42cfa743b0d744c13d88d
Time: 2017-12-06
Author: caspervdw@gmail.com
File Name: trackpy/tests/test_feature.py
Class Name: CommonFeatureIdentificationTests
Method Name: test_ep


Project Name: pyannote/pyannote-audio
Commit Name: 16fb800c2d3f6d7198ad237adcab8f60828d0982
Time: 2017-05-15
Author: bredin@limsi.fr
File Name: pyannote/audio/embedding/segmentation.py
Class Name: Segmentation
Method Name: apply


Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: e70bdb2d089ae283781c45b8d97963823a984baa
Time: 2017-12-15
Author: max.lapan@gmail.com
File Name: ch10/00_pong_pg.py
Class Name:
Method Name: