Skip to content

Commit

Permalink
Merge pull request #36 from aecelaya/main
Browse files Browse the repository at this point in the history
Add types to inputs of add_folds_to_df.
  • Loading branch information
aecelaya authored Sep 13, 2024
2 parents fd35d89 + ce58b87 commit 8b34d81
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 8b34d81

Please sign in to comment.