RoyalHaskoningDHV / sam

Python package for time series analysis and machine learning
MIT License
26 stars 6 forks source link

Fix docstring examples #64

Closed sbuergers closed 2 years ago

sbuergers commented 2 years ago

closes #21

With Ruben's help I went through all broken docstring examples using pytest --doctest-modules sam. In some cases I omitted examples from doctest, because they depend on logging into a specific API or connecting to a database.

NOTE: At some point I came across a dependency issue with shap, which forced me to use an older version of scikit-learn than 1.1.2. With that older version one of the doctests fails (for incident_precision_recall_curve), simply because the scikit-learn defaults have changed. However, I am not sure anymore how I got across this error, and all tests and doctests are passing now.