Skip to content
Snippets Groups Projects
Commit ddbe0a57 authored by aastorg2's avatar aastorg2
Browse files

adding check for duplicate percieved state

parent c5d384c9
No related branches found
No related tags found
No related merge requests found
......@@ -132,9 +132,15 @@ class DTreeLearner(LearnerBase):
if samp in self.debug_neg_conc:
self.count_neg_dup+=1
print("repeated negative example: "+ str(samp))
#raise ValueError()
raise ValueError()
perc_samp = self._s2f_func(samp)
if perc_samp in self.debug_neg_perc:
print("repeated negative example: "+ str(perc_samp))
raise ValueError()
self.debug_neg_perc.add(perc_samp)
self.debug_neg_conc.add(samp)
print(f"number of negative duplicate {self.count_neg_dup}")
feature_vec_list = [self._s2f_func(sample) for sample in args]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment