We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
pull_data_for_accuracy
1 parent 3a680aa commit 0e0b817Copy full SHA for 0e0b817
src/mostlyai/qa/sampling.py
@@ -111,9 +111,10 @@ def pull_data_for_accuracy(
111
df = pd.merge(df, df_nxt, on=key, how="left")
112
df = df.drop(columns=[key])
113
114
- # fill count columns
+ # remove records with sequence length equal to 0
115
count_column = f"{TGT_COLUMN_PREFIX}{COUNT_COLUMN}"
116
df[count_column] = df[count_column].fillna(0).astype("Int64")
117
+ df = df.loc[df[count_column] > 0].reset_index(drop=True)
118
119
if setup is None:
120
setup = "1:1" if (df[count_column] == 1).all() else "1:N"
0 commit comments