Skip to content

Commit d46a7e7

Browse files
committed
Correction
1 parent 9f12bf1 commit d46a7e7

File tree

1 file changed

+2
-2
lines changed
  • pyTsetlinMachineParallel

1 file changed

+2
-2
lines changed

pyTsetlinMachineParallel/tm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def __getstate__(self):
127127

128128
def __setstate__(self, state):
129129
self.__dict__.update(state)
130-
self.mc_ctm = _lib.CreateMultiClassTsetlinMachine(self.number_of_classes, self.number_of_clauses, self.number_of_features, self.number_of_patches, self.number_of_ta_chunks, self.number_of_state_bits, self.T, self.s, self.s_range, self.boost_true_positive_feedback, self.weighted_clauses, self.clause_drop_p, self.literal_drop_p)
130+
self.mc_ctm = _lib.CreateMultiClassTsetlinMachine(self.number_of_classes, self.number_of_clauses, self.number_of_features, self.number_of_patches, self.number_of_ta_chunks, self.number_of_state_bits, self.T, self.s, self.s_range, self.boost_true_positive_feedback, self.weighted_clauses)
131131
self.set_state(state['mc_ctm_state'])
132132

133133
def __del__(self):
@@ -260,7 +260,7 @@ def __getstate__(self):
260260

261261
def __setstate__(self, state):
262262
self.__dict__.update(state)
263-
self.mc_tm = _lib.CreateMultiClassTsetlinMachine(self.number_of_classes, self.number_of_clauses, self.number_of_features, 1, self.number_of_ta_chunks, self.number_of_state_bits, self.T, self.s, self.s_range, self.boost_true_positive_feedback, self.weighted_clauses, self.clause_drop_p, self.literal_drop_p)
263+
self.mc_tm = _lib.CreateMultiClassTsetlinMachine(self.number_of_classes, self.number_of_clauses, self.number_of_features, 1, self.number_of_ta_chunks, self.number_of_state_bits, self.T, self.s, self.s_range, self.boost_true_positive_feedback, self.weighted_clauses)
264264
self.set_state(state['mc_tm_state'])
265265

266266
def __del__(self):

0 commit comments

Comments
 (0)