You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failures should be filtered otherwise the call fails. The same idea can be followed as done in fit_generative_model:
# check single or multiple objectives
hp_cols = [k for k in df.columns if "p:" == k[:2]]
if "objective" in df.columns:
# filter failures
if pd.api.types.is_string_dtype(df.objective):
df = df[~df.objective.str.startswith("F")]
df.objective = df.objective.astype(float)
q_val = np.quantile(df.objective.values, q)
req_df = df.loc[df["objective"] > q_val]
else:
# filter failures
objcol = list(df.filter(regex=r"^objective_\d+$").columns)
for col in objcol:
if pd.api.types.is_string_dtype(df[col]):
df = df[~df[col].str.startswith("F")]
df[col] = df[col].astype(float)
The text was updated successfully, but these errors were encountered:
Describe the bug
Failures should be filtered otherwise the call fails. The same idea can be followed as done in
fit_generative_model
:The text was updated successfully, but these errors were encountered: