737adbe4855d116648cc47f583e3cc258b35187c,src/skmultiflow/classification/trees/regression_hoeffding_tree.py,RegressionHoeffdingTree,predict,#RegressionHoeffdingTree#Any#,170
Before Change
votes = self.get_votes_for_instance(X[i]).copy()
if votes == {}:
// Tree is empty, all target_values equal, default to zero
predictions.append([0])
else:
number_of_examples_seen = votes[0]
sum_of_values = votes[1]
predictions.append(sum_of_values / number_of_examples_seen)
After Change
normalized_sample = self.normalize_sample(X[i])
normalized_prediction = np.dot(self.get_weights_for_instance(X[i]), normalized_sample)
mean = self.sum_of_values / self.examples_seen
sd = np.sqrt((self.sum_of_squares - self.sum_of_values ** 2
/ self.examples_seen) / self.examples_seen)
if self.examples_seen > 1:
predictions.append(normalized_prediction * sd * 3 + mean)
else:
predictions.append(0)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances Project Name: scikit-multiflow/scikit-multiflow
Commit Name: 737adbe4855d116648cc47f583e3cc258b35187c
Time: 2018-07-02
Author: bader.d24@gmail.com
File Name: src/skmultiflow/classification/trees/regression_hoeffding_tree.py
Class Name: RegressionHoeffdingTree
Method Name: predict
Project Name: cornellius-gp/gpytorch
Commit Name: ad18add8ae7da04213813b5675b903bbf4be1ebd
Time: 2021-02-10
Author: wjm363@nyu.edu
File Name: gpytorch/lazy/kronecker_product_added_diag_lazy_tensor.py
Class Name: KroneckerProductAddedDiagLazyTensor
Method Name: _root_decomposition
Project Name: pyannote/pyannote-audio
Commit Name: 87a1afc00f6700d1fc33f4bb7a803229987c645b
Time: 2017-05-15
Author: bredin@limsi.fr
File Name: pyannote/audio/embedding/segmentation.py
Class Name: Segmentation
Method Name: apply
Project Name: cornellius-gp/gpytorch
Commit Name: ad18add8ae7da04213813b5675b903bbf4be1ebd
Time: 2021-02-10
Author: wjm363@nyu.edu
File Name: gpytorch/lazy/kronecker_product_added_diag_lazy_tensor.py
Class Name: KroneckerProductAddedDiagLazyTensor
Method Name: _root_inv_decomposition