Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
olegranmo committed Aug 6, 2024
1 parent 5445d5d commit 474f1ca
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion tmu/lib/src/ClauseBank.c
Original file line number Diff line number Diff line change
Expand Up @@ -851,10 +851,23 @@ void cb_type_iii_feedback(
&ta_state[clause_pos_ta + ta_pos],
literal_active[k] & (~ind_state[clause_pos_ind + ind_pos + number_of_state_bits_ind - 1]),
number_of_state_bits_ta
);
);
}
}
}

void cb_identify_temporal_truth_value_transitions(
int number_of_clauses,
int number_of_patches,
unsigned int *clause_value_in_patch,
unsigned int *clause_true_consecutive_before,
unsigned int *clause_false_consecutive_before
)
{
for (int patch = 0; patch < number_of_patches; ++patch) {
for (int j = 0; j < number_of_clauses; ++j) {

}
}
}

Expand Down Expand Up @@ -997,6 +1010,16 @@ void cb_calculate_spatio_temporal_features(
// }
}

if (round > 0) {
cb_identify_temporal_truth_value_transitions(
number_of_clauses,
number_of_patches,
clause_value_in_patch,
clause_true_consecutive_before,
clause_false_consecutive_before
);
}

if (round < number_of_rounds-1) {
for (int j = 0; j < number_of_clauses; j++) {
unsigned int clause_pos = j*number_of_ta_chunks*number_of_state_bits; // Calculates the position of the Tsetlin automata states of the current clause
Expand Down

0 comments on commit 474f1ca

Please sign in to comment.