Skip to content

Commit

Permalink
fix index group
Browse files Browse the repository at this point in the history
  • Loading branch information
Badr-MOUFAD committed Mar 30, 2024
1 parent 629cee7 commit 028ec44
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions celer/group_fast.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,11 @@ cpdef floating dnorm_grp(

else: # scaling only with features in C
for g_idx in range(ws_size):
if weights[g_idx] == INFINITY:
g = C[g_idx]

if weights[g] == INFINITY:
continue

g = C[g_idx]
tmp = 0
for k in range(grp_ptr[g], grp_ptr[g + 1]):
j = grp_indices[k]
Expand Down

0 comments on commit 028ec44

Please sign in to comment.