Skip to content

Commit

Permalink
Changed svar not to contain coefficients
Browse files Browse the repository at this point in the history
Tereso del Rio committed Sep 16, 2023
1 parent 20ae5ac commit 94398cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion replicating_Dorians_features.py
Original file line number Diff line number Diff line change
@@ -115,7 +115,7 @@ def compute_features_for_var(original_polynomials, var,
variable=var,
operations=operations)
sdegrees = \
[[sum(monomial) for monomial in poly if monomial[var] != 0] + [0]
[[sum(monomial[:-1]) for monomial in poly if monomial[var] != 0] + [0]
for poly in original_polynomials]
svar_features, svar_features_names = \
create_features(sdegrees,

0 comments on commit 94398cc

Please sign in to comment.