Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion openstef/model_selection/model_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def split_data_train_validation_test(
data_.index.unique().sort_values()[1] - data_.index.unique().sort_values()[0]
) # Delta t, assumed to be constant throughout DataFrame
delta = timedelta(
seconds=delta.seconds
seconds=delta.total_seconds()
) # Convert from pandas timedelta to original python timedelta

# Determine which dates are in testset
Expand Down