db3d4586a34f3734edf92454b9c16e1511369ddf,skmultiflow/classification/trees/arf_hoeffding_tree.py,RandomLearningNode,learn_from_instance,#RandomLearningNode#Any#Any#Any#Any#,75
Before Change
self._observed_class_distribution[y] += weight
if not self.list_attributes:
self.list_attributes = [None] * self.subspace_size
for j in range(self.subspace_size):
is_unique = False
while not is_unique:
self.list_attributes[j] = randint(0, self.subspace_size - 1)
is_unique = True
for i in range(j):
if self.list_attributes[j] == self.list_attributes[i]:
is_unique = False
break
for j in range(self.subspace_size):
i = self.list_attributes[j]
obs = self._attribute_observers[i]
if obs is None:
if i in ht.nominal_attributes:
obs = NominalAttributeClassObserver()
else:
obs = GaussianNumericAttributeClassObserver()
self._attribute_observers[i] = obs
obs.observe_attribute_class(X[i], int(y), weight)
class LearningNodeNB(RandomLearningNode):
Naive Bayes learning node class.
After Change
Hoeffding Tree to update.
try:
self._observed_class_distribution[y] += weight
except KeyError:
self._observed_class_distribution[y] = weight
if not self.list_attributes:
population = range(get_dimensions(X)[1])
self.list_attributes = sample(population, self.subspace_size)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: scikit-multiflow/scikit-multiflow
Commit Name: db3d4586a34f3734edf92454b9c16e1511369ddf
Time: 2018-03-16
Author: jacob.montiel@gmail.com
File Name: skmultiflow/classification/trees/arf_hoeffding_tree.py
Class Name: RandomLearningNode
Method Name: learn_from_instance
Project Name: analysiscenter/batchflow
Commit Name: c472f856ac60d0fff63b90642d912d7e0db1c7dd
Time: 2017-11-16
Author: rhudor@gmail.com
File Name: dataset/models/base.py
Class Name: BaseModel
Method Name: get_from_config
Project Name: elfi-dev/elfi
Commit Name: b19e3080dba989e2e7e08c74877f8396790f83d2
Time: 2016-12-05
Author: jarno.lintusaari@aalto.fi
File Name: elfi/graph.py
Class Name: Node
Method Name: remove_parent