From 27ff0ccbf8c1eb1d0bed0f4508ac3b93f2d155ec Mon Sep 17 00:00:00 2001 From: Ole-Christoffer Granmo Date: Thu, 9 May 2024 12:27:53 +0200 Subject: [PATCH] Update --- tmu/lib/src/Tools.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tmu/lib/src/Tools.c b/tmu/lib/src/Tools.c index 4dc5901e..debd9791 100644 --- a/tmu/lib/src/Tools.c +++ b/tmu/lib/src/Tools.c @@ -166,14 +166,6 @@ void tmu_encode( Xi = &X[input_pos]; encoded_Xi = &encoded_X[encoded_pos]; - // Encode class into feature vector (all false) - for (int clause_feature = 0; clause_feature < clause_features; ++clause_feature) { - - int chunk_nr = (clause_feature + number_of_features) / 32; - int chunk_pos = (clause_feature + number_of_features) % 32; - encoded_Xi[chunk_nr] |= (1U << chunk_pos); - } - // Encode y coordinate of patch into feature vector for (int y_threshold = 0; y_threshold < dim_y - patch_dim_y; ++y_threshold) { int patch_pos = clause_features + y_threshold;