Skip to content

Commit

Permalink
Add types to inputs of add_folds_to_df.
Browse files Browse the repository at this point in the history
  • Loading branch information
aecelaya committed Sep 13, 2024
1 parent 2753293 commit ce58b87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mist/runtime/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def get_files_df(path_to_dataset_json: str, train_or_test: str) -> pd.DataFrame:
return df


def add_folds_to_df(df, n_splits=5):
def add_folds_to_df(df: pd.DataFrame, n_splits: int=5):
"""Add folds to the dataframe for k-fold cross-validation.
Args:
Expand Down

0 comments on commit ce58b87

Please sign in to comment.