scikit-learn-contrib / MAPIE

A scikit-learn-compatible module to estimate prediction intervals and control risks based on conformal predictions.
https://mapie.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
1.2k stars 99 forks source link

Documentation interrupted due to an invalid SSL certificate #378

Closed thibaultcordier closed 1 month ago

thibaultcordier commented 7 months ago

Describe the bug When the documentation was being created the following week, it was interrupted due to an invalid SSL certificate in one example (examples/regression/3-scientific-articles/plot_kim2020_simulations.py).

To Reproduce Steps to reproduce the behavior:

  1. Run the code examples/regression/3-scientific-articles/plot_kim2020_simulations.py from a previous commit (https://github.com/scikit-learn-contrib/MAPIE/commit/614293e1cf8ab4fb857c42a32fd130c536eff8b9).

Expected behavior Resolve the problem linked to the invalid SSL certificate.

Screenshots See the following link: https://readthedocs.org/projects/mapie/builds/22535216/

WARNING: /home/docs/checkouts/readthedocs.org/user_builds/mapie/checkouts/375/examples/regression/3-scientific-articles/plot_kim2020_simulations.py failed to execute correctly: Traceback (most recent call last):
  File "/home/docs/checkouts/readthedocs.org/user_builds/mapie/checkouts/375/examples/regression/3-scientific-articles/plot_kim2020_simulations.py", line 491, in <module>
    results_coverages_widths = comparison_JAB(
  File "/home/docs/checkouts/readthedocs.org/user_builds/mapie/checkouts/375/examples/regression/3-scientific-articles/plot_kim2020_simulations.py", line 312, in comparison_JAB
    (X, y) = get_X_y()
  File "/home/docs/checkouts/readthedocs.org/user_builds/mapie/checkouts/375/examples/regression/3-scientific-articles/plot_kim2020_simulations.py", line 71, in get_X_y
    resp = urlopen(url)
  File "/home/docs/checkouts/readthedocs.org/user_builds/mapie/conda/375/lib/python3.10/urllib/request.py", line 216, in urlopen
    return opener.open(url, data, timeout)
  File "/home/docs/checkouts/readthedocs.org/user_builds/mapie/conda/375/lib/python3.10/urllib/request.py", line 519, in open
    response = self._open(req, data)
  File "/home/docs/checkouts/readthedocs.org/user_builds/mapie/conda/375/lib/python3.10/urllib/request.py", line 536, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "/home/docs/checkouts/readthedocs.org/user_builds/mapie/conda/375/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/home/docs/checkouts/readthedocs.org/user_builds/mapie/conda/375/lib/python3.10/urllib/request.py", line 1391, in https_open
    return self.do_open(http.client.HTTPSConnection, req,
  File "/home/docs/checkouts/readthedocs.org/user_builds/mapie/conda/375/lib/python3.10/urllib/request.py", line 1351, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1007)>