Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/sdpython/teachpyx into reg
Browse files Browse the repository at this point in the history
  • Loading branch information
xadupre committed Jan 20, 2024
2 parents 1ea1a89 + 93ecbaf commit 1475b97
Show file tree
Hide file tree
Showing 20 changed files with 3,880 additions and 9 deletions.
15 changes: 15 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Code of Conduct

We are a community based on openness, as well as friendly and didactic discussions.

We aspire to treat everybody equally, and value their contributions.

Decisions are made based on technical merit and consensus.

Code is not the only way to help the project. Reviewing pull requests,
answering questions to help others on mailing lists or issues, organizing and
teaching tutorials, working on the website, improving the documentation, are
all priceless contributions.

We abide by the principles of openness, respect, and consideration of others of
the Python Software Foundation: https://www.python.org/psf/codeofconduct/
2 changes: 1 addition & 1 deletion _doc/algorithm_culture.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Catalogue d'algorithmes
* `Python implementation of Kullback-Leibler divergences and kl-UCB indexes <https://github.com/Naereen/Kullback-Leibler-divergences-and-kl-UCB-indexes>`_ **algo**
* Calcul matriciel
* `Winograd Minimum Filtering <https://arxiv.org/abs/2111.00977>`_ **algo** convolution rapide
* `im2col <http://www.xavierdupre.fr/app/onnxcustom/helpsphinx/notebooks/convolutation_matmul.html>`_ **algo**
* `im2col <https://sdpython.github.io/doc/experimental-experiment/dev/auto_examples/plot_convolutation_matmul.html>`_ **algo**
ou comment réarranger une matrice pour transformer une convolution entre un produit matriciel
* Diviser pour reigner
* `dichotomie <http://fr.wikipedia.org/wiki/Dichotomie>`_ **algo**
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
17 changes: 17 additions & 0 deletions _doc/articles/2024/2024-01-18-wsl.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
2024-01-18 : WSL - nettoyage
============================

L'image liée au `WSL <https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux>`_
grossit et supprimer des fichiers ne la réduit pas, tout du moins, pas dans l'immédiat.
Il fait epxliciter lancer une commande pour *optimiser* l'image depuis une command
Powershell.

::

Optimize-VHD -Path C:\Users\<user>\AppData\Local\Packages\<image>\LocalState\ext4.vhdx -Mode Full

``<user>`` est le nom d'utilisateur, ``<image>`` ressemble à quelque chose comme
``CanonicalGroupLimited.Ubuntu22.04LTS_79rhkp1fndgsc``.

Cette astuce vient de l'article :
`Daniel Nashed's Blog <https://blog.nashcom.de/nashcomblog.nsf/dx/cleaning-up-your-disks-wsl-and-docker.htm>`_.
20 changes: 13 additions & 7 deletions _doc/articles/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,25 @@ Collections d'articles périssables

Ou *blog*.

.. toctree::
:caption: 2024
:maxdepth: 1

2024/2024-01-18-wsl

.. toctree::
:caption: 2023
:maxdepth: 1

2023-11-31-route2023
2023-09-06-ensae
2023-08-09-hermionne
2023-08-03-code-jam
2023/2023-11-31-route2023
2023/2023-09-06-ensae
2023/2023-08-09-hermionne
2023/2023-08-03-code-jam

.. toctree::
:caption: 2022
:maxdepth: 1

2022-11-31-route2022
2022-12-07-cartopy
2022-01-01-assurance
2022/2022-11-31-route2022
2022/2022-12-07-cartopy
2022/2022-01-01-assurance
2 changes: 2 additions & 0 deletions _doc/c_data/dataframes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ Dataframes

nb_dataframe
nb_pandas
nb_dataframe_matrix_speed

2 changes: 1 addition & 1 deletion _doc/c_data/enedis_cartes.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"source": [
"Il y a principalement trois façons de tracer une carte. La première est statique avec des modules comme [basemap](https://matplotlib.org/basemap/) ou [cartopy](http://scitools.org.uk/cartopy/) qui sont des surcouches de [matplotlib](https://matplotlib.org/). Le second moyen est une carte animée ou non dans un notebook avec des modules comme [pygal](http://www.pygal.org/en/stable/documentation/types/maps/pygal_maps_world.html), [plotly](https://plot.ly/python/choropleth-maps/). La dernière consiste à insérer des éléments sur une carte en ligne telle que [OpenStreetMap](https://www.openstreetmap.org/) et le module [folium](https://github.com/python-visualization/folium) ou [ipyleaflet](https://github.com/ellisonbg/ipyleaflet).\n",
"\n",
"Il y a souvent trois problèmes avec les cartes. Le premier sont avec les coordonnées. Les plus utilisées sont les coordonnées [longitude / latitude](https://fr.wikipedia.org/wiki/Coordonn%C3%A9es_g%C3%A9ographiques). Le problème est que chaque pays a son propre système adapté à sa position géographique. Il faut souvent convertir (voir [lambert93_to_WGPS](https://sdpython.github.io/doc/teachpyx/dev/i_faq.html#geo), [pyproj](https://pyproj4.github.io/pyproj/stable/)). Le second problème est l'ajout de repères géographiques (frontières, fleuves, ...). Certains modules contiennent certaines informations, souvent pour les Etats-Unis. Mais souvent, il faut récupérer ces informations sur les sites open data de chaque pays : [départements français](http://www.xavierdupre.fr/app/ensae_teaching_cs/helpsphinx/notebooks/td1a_cenonce_session_12.html?highlight=basemap#cartes-avec-les-departements). La troisième difficulté est qu'on veut tracer des cartes très chargées et cela prend un temps fou pour construire une carte lisible."
"Il y a souvent trois problèmes avec les cartes. Le premier sont avec les coordonnées. Les plus utilisées sont les coordonnées [longitude / latitude](https://fr.wikipedia.org/wiki/Coordonn%C3%A9es_g%C3%A9ographiques). Le problème est que chaque pays a son propre système adapté à sa position géographique. Il faut souvent convertir (voir [lambert93_to_WGPS](https://sdpython.github.io/doc/teachpyx/dev/i_faq.html#geo), [pyproj](https://pyproj4.github.io/pyproj/stable/)). Le second problème est l'ajout de repères géographiques (frontières, fleuves, ...). Certains modules contiennent certaines informations, souvent pour les Etats-Unis. Mais souvent, il faut récupérer ces informations sur les sites open data de chaque pays. La troisième difficulté est qu'on veut tracer des cartes très chargées et cela prend un temps fou pour construire une carte lisible."
]
},
{
Expand Down
Loading

0 comments on commit 1475b97

Please sign in to comment.