FBruzzesi / timebasedcv

Time based splits for cross validation
https://fbruzzesi.github.io/timebasedcv/
MIT License
30 stars 1 forks source link

Make scikit-learn optional #45

Closed FBruzzesi closed 4 months ago

FBruzzesi commented 4 months ago

Description

I can see cases in which having scikit-learn as a dependency is not necessary to use the other classes provided here.

Solution

Move TimeBasedCVSplitter to timebasedcv/sklearn.py module and accessible from there after checking scikit-learn dependency is available.