SeldonIO / alibi-detect

Algorithms for outlier, adversarial and drift detection
https://docs.seldon.io/projects/alibi-detect/en/stable/
Other
2.21k stars 220 forks source link

Example notebooks out of date #323

Open ascillitoe opened 3 years ago

ascillitoe commented 3 years ago

The recent api updates (i.e. separating models, utils.prediction etc into tensorflow and pytorch) mean a number of the example notebooks are now out-of-date. Some examples below:

The above is not exhaustive. A general sweep to check all the examples is needed.

jklaise commented 3 years ago

We'll be looking into notebook testing (maybe a new issue?) as a longer-term initiative. Example of how this is done in Seldon Core:

jklaise commented 3 years ago

Many are fixed in this PR: #333.

The following list are outstanding:

The remaining list may not be exhaustive, we will have a better view once notebook tests are in place.

jklaise commented 3 years ago

To avoid future incompatibilities with older artefacts we could have a CI workflow that after every release trains all detectors with the newest detect version and pushes them to the bucket, then extend fetch_ method to look for an appropriately versioned artefact #336.

jklaise commented 2 years ago

There also seem to be some broken links following the re-organization of the docs, e.g. top of https://docs.seldon.io/projects/alibi-detect/en/latest/examples/cd_mol.html point to the old methods links which are broken.

ascillitoe commented 2 years ago

Good spot, I missed these, and guess they weren't flagged up as sphinx errors as they're absolute url's as opposed to relative links to sphinx source. I'll grep all absolute links and fix.

ascillitoe commented 2 years ago

Adding to the list of remote artefacts that need updating/fixing:

ascillitoe commented 2 years ago

@jklaise I didn't want to cause confusion by editing your comment, but perhaps you can add these to the list of notebooks with errors:

These were uncovered in https://github.com/SeldonIO/alibi-detect/pull/402. We should probably also have a second look at the weekly CI test results.

Also, because the two below are still failing, we probably want to add these to EXCLUDE_NOTEBOOKS until we update remote artefacts.

  • [ ] od_prophet_weather.ipynb - outdated metadata files causing fetch to fail
  • [ ] ad_ae_cifar10.ipynb - cannot deserialized saved detector - needs updating