Kaaiian / CBFV

Tool to quickly create a composition-based feature vector
25 stars 6 forks source link

`len(formulae)` and `X.shape[0]` don't match when certain formulas are skipped #12

Closed sgbaird closed 2 years ago

sgbaird commented 2 years ago
df.iloc[1]["formula"] = "Og" # make sure at least one gets skipped
X, y, formulae, skipped = generate_features(df)
assert X.shape[0] == len(formulae)
sgbaird commented 2 years ago

Nvm, it was something else I was doing... (note, this would be less likely to happen based on fixing the extend_features flag #10)