Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions _doc/notebooks/timeseries/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Timeseries
==========

Ou séries temporelles.

.. contents::
:local:
1,514 changes: 1,514 additions & 0 deletions _doc/notebooks/timeseries/ts_covid.ipynb

Large diffs are not rendered by default.

1,130 changes: 1,130 additions & 0 deletions _doc/notebooks/timeseries/ts_pred.ipynb

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion _doc/sphinxdoc/source/blog/2021/2021-01-28_plan.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
en annulant les coefficients : :ref:`Lasso <2020-02-07sklapirst>`.

**Un peu plus de détails sur la séance 2**

* `Valeurs manquantes (cheatsheet)
<https://www.math.univ-toulouse.fr/~besse/Wikistat/pdf/st-m-app-idm.pdf>`_,
`Valeurs manquantes (notebooks)
Expand Down Expand Up @@ -152,3 +152,13 @@
* Mise en production... `docker <https://www.docker.com/>`_,
`ONNX <https://onnx.ai/>`_ ?
* attention, transformers

**Un peu plus de détails sur la séance 3**

* :ref:`tscovidrst`
* :ref:`tspredrst`
* `Single Spectrum Analysis (SSA)
<http://www.xavierdupre.fr/app/ensae_teaching_cs/helpsphinx3/notebooks/timeseries_ssa.html>`_
* `aftercovid <http://www.xavierdupre.fr/app/aftercovid/helpsphinx/index.html>`_
* `Algo - simulation COVID
<http://www.xavierdupre.fr/app/ensae_teaching_cs/helpsphinx/notebooks/2020_covid.html>`_
3 changes: 3 additions & 0 deletions _doc/sphinxdoc/source/lectures/seriestemp.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ Séries temporelles

.. contents::
:local:

../notebooks/ts_covid
../notebooks/ts_pred
44 changes: 44 additions & 0 deletions _unittests/ut_documentation/test_nb_ts_covid.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# -*- coding: utf-8 -*-
"""
@brief test log(time=14s)
"""
import os
import unittest
from pyquickhelper.loghelper import fLOG
from pyquickhelper.pycode import add_missing_development_version
from pyquickhelper.ipythonhelper import test_notebook_execution_coverage
import papierstat


class TestNotebookTsCovid(unittest.TestCase):

def setUp(self):
add_missing_development_version(["jyquickhelper"], __file__, hide=True)

def test_notebook_ts_covid(self):
fLOG(
__file__,
self._testMethodName,
OutputPrint=__name__ == "__main__")

self.assertTrue(papierstat is not None)
folder = os.path.join(os.path.dirname(__file__),
"..", "..", "_doc", "notebooks", "timeseries")
test_notebook_execution_coverage(
__file__, "ts_covid", folder, 'papierstat', copy_files=[], fLOG=fLOG)

def test_notebook_ts_pred(self):
fLOG(
__file__,
self._testMethodName,
OutputPrint=__name__ == "__main__")

self.assertTrue(papierstat is not None)
folder = os.path.join(os.path.dirname(__file__),
"..", "..", "_doc", "notebooks", "timeseries")
test_notebook_execution_coverage(
__file__, "ts_pred", folder, 'papierstat', copy_files=[], fLOG=fLOG)


if __name__ == "__main__":
unittest.main()
2 changes: 1 addition & 1 deletion _unittests/ut_mltricks/test_sklearn_category.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def test_wines(self):
acc2 = accuracy_score(y_test, clr.predict(X_test))
self.assertGreater(acc1, 0.45)
self.assertGreater(acc2, 0.45)
self.assertGreater(acc1, acc2 * 0.99)
self.assertGreater(acc1, acc2 * 0.999)


if __name__ == "__main__":
Expand Down
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ statsmodels
toolz

# other
aftercovid
branca
dbfread
cairocffi
Expand All @@ -34,6 +35,7 @@ coverage
dtreeviz
folium
google_compute_engine
hmmlearn
jyquickhelper>=0.3
lightgbm
mlinsights>=0.2
Expand All @@ -45,6 +47,7 @@ pyensae
pylint
pyquickhelper>=1.10
pyyaml
ruptures
spacy
shapely
sphinx-bootstrap-theme
Expand Down