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.
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 than1.1.2
. With that older version one of the doctests fails (forincident_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.