Open sgbaird opened 2 years ago
Seems to be an issue with repeat chemical formulas in the DataFrame
Workaround is to use a for loop for the other properties of interest, renaming the column of interest each time.
For example:
from CBFV.composition import generate_features
ys = []
for name in ["property1", "property2", "property3"]:
X, y, formulae, skipped = generate_features(df.rename(columns={name: "target"}))
ys.append(y)