Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Commit

Permalink
documentation, license, biblio, blog
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpython committed May 19, 2015
1 parent 360441f commit 5a8b5df
Show file tree
Hide file tree
Showing 10 changed files with 69 additions and 72 deletions.
37 changes: 16 additions & 21 deletions LICENSE.txt
@@ -1,24 +1,19 @@
Copyright (c) 2014, Xavier Dupré
All rights reserved.
Copyright (c) 2014-2015, Xavier Dupré

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the distribution.
Neither the names of its contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
7 changes: 7 additions & 0 deletions README.rst
Expand Up @@ -15,6 +15,13 @@ README / Changes
:alt: PYPI Package
:target: https://pypi.python.org/pypi/ensae_teaching_cs

.. image:: http://img.shields.io/github/issues/sdpython/ensae_teaching_cs.png
:alt: GitHub Issues
:target: https://github.com/sdpython/ensae_teaching_cs/issues

.. image:: https://img.shields.io/badge/license-MIT-blue.svg
:alt: MIT License
:target: http://opensource.org/licenses/MIT

This page gives access to the content of practical sessions I give at the
`ENSAE <http://www.ensae.fr/>`_. They are based on Python. The project
Expand Down
12 changes: 12 additions & 0 deletions _doc/sphinxdoc/source/blog/2015/2015-05-19.rst
@@ -0,0 +1,12 @@

.. _l-blog-velib:

.. blogpost::
:title: Prédire l'occupation des vélib
:keywords: velib, prédiction, article
:date: 2015-05-18
:categories: article, velib, machine learning

C'est un article sur une façon d'exploiter les données d'un service de vélos dans une grande ville :
`Predicting Occupancy Trends in Barcelona's Bicycle Service Stations Using Open Data <http://arxiv.org/abs/1505.03662>`_.
Modèle ARIMA et Random Forest.
5 changes: 4 additions & 1 deletion _doc/sphinxdoc/source/coding_party_1.rst
@@ -1,4 +1,4 @@



.. issue.
Expand Down Expand Up @@ -147,5 +147,8 @@ vous pouvez reproduire la solution de l'appariement dans ce notebook :
`Déterminer la vitesse moyenne des vélib <http://www.xavierdupre.fr/app/ensae_teaching_cs/helpsphinx/notebooks/expose_velib.html>`_.


Suite possible
--------------

Voir :ref:`l-blog-velib`.

13 changes: 7 additions & 6 deletions _doc/sphinxdoc/source/getting_started.rst
@@ -1,4 +1,4 @@




Getting started
Expand Down Expand Up @@ -36,22 +36,23 @@ les modules les plus usités. Deux options possibles :
Il suffit d'écrire sur la ligne de commande ``conda update --all``
pour mettre à jour tous les modules.

* `WinPython <https://winpython.github.io/>`_ (Windows). Sous Windows, elle a l'avantage d'inclure
`R <http://www.r-project.org/>`_ ou `Julia <http://julialang.org/>`_. On passe alors
* `WinPython <https://winpython.github.io/>`_ (Windows). Sous Windows, elle inclut
parfois `R <http://www.r-project.org/>`_ ou `Julia <http://julialang.org/>`_ (ces version ne sont
pas aussi à jour que la version principale). On passe alors
facilement de python à R ou Julia depuis le même notebooks. Pour suivre ces cours il faut ajouter :

* `bokeh <http://bokeh.pydata.org/en/latest/>`_ (`Windows <http://www.lfd.uci.edu/~gohlke/pythonlibs/#bokeh>`_)
* `bokeh <http://bokeh.pydata.org/en/latest/>`_
* `dbfread <http://dbfread.readthedocs.org/en/latest/>`_
* `folium <https://github.com/python-visualization/folium>`_
* `goslate <http://pythonhosted.org/goslate/>`_
* `graphviz <https://github.com/xflr6/graphviz>`_
* `pywin32 <https://pypi.python.org/pypi/pywin32>`_ (`Windows <http://www.lfd.uci.edu/~gohlke/pythonlibs/#pywin32>`_)
* `virtualenv <https://virtualenv.pypa.io/en/latest/>`_

Uniquement disponible sous Windows, cette installation a l'avantage de ne pas
nécessiter les droits administrateur pour être installée. Elle
ne modifie pas les registres et on peut la recopier telle quelle sur une clé USB
pour la recopier sur un autre ordinateur.
pour la recopier sur un autre ordinateur. On peut également préparer sa propre version
`How To Make WinPython <https://github.com/winpython/winpython/wiki/How-To-Make-WinPython>`_.

* Distribution officielle de `python <https://www.python.org/>`_, il faut ensuite
installer de nombreux modules (voir :ref:`l-data2a`) pour obtenir
Expand Down
9 changes: 9 additions & 0 deletions _doc/sphinxdoc/source/glossary.rst
Expand Up @@ -127,6 +127,15 @@ Glossaire
Sa syntaxe est décrite à `Markdown: Syntax <http://daringfireball.net/projects/markdown/syntax>`_.
A l'instar du langage Python, il utilise l'indentation pour marquer la séparation entre les blocs.

Mock
Il est difficile de tester un programme qui lance des requêtes sur un service sans que ce
service soit activé comme par exemple récupérer des données financières sur Internet
sans Internet. Lorsqu'on veut s'assuser qu'une fonction qui communique avec un service fonctionne,
on créé ce qu'on appelle un mock : on créé un faux service qui retourne des réponses assez courtes
afin de tester la partie qu'on a besoin de tester. Ce genre de système permet de tester séparément le service
et la partie qui communique avec ce service. Lire également `Mock Object <http://en.wikipedia.org/wiki/Mock_object>`_,
`Unit test et Mock <http://sametmax.com/un-gros-guide-bien-gras-sur-les-tests-unitaires-en-python-partie-5/>`_.

Mutable
Voir Immutable.

Expand Down
7 changes: 7 additions & 0 deletions _doc/sphinxdoc/source/index.rst
Expand Up @@ -247,3 +247,10 @@ Index
:alt: PYPI Package
:target: https://pypi.python.org/pypi/ensae_teaching_cs

.. image:: http://img.shields.io/github/issues/sdpython/ensae_teaching_cs.png
:alt: GitHub Issues
:target: https://github.com/sdpython/ensae_teaching_cs/issues

.. image:: https://img.shields.io/badge/license-MIT-blue.svg
:alt: MIT License
:target: http://opensource.org/licenses/MIT
3 changes: 2 additions & 1 deletion _doc/sphinxdoc/source/projets/jeux_seul.rst
@@ -1,4 +1,4 @@


.. _l-proj_jeux_seul:

Jeux de réflexion qui se jouent seul
Expand Down Expand Up @@ -43,6 +43,7 @@ Quelques liens :

* `2048 <http://fr.wikipedia.org/wiki/2048_(jeu_vid%C3%A9o)>`_
* `2048 : la solution pour gagner (presque) à tous les coups <http://www.journaldunet.com/ebusiness/internet-mobile/solution-2048.shtml>`_
* `Threes!, Fives, 1024!, and 2048 are Hard <http://arxiv.org/abs/1505.04274>`_


.. _l-jeuvoronoi:
Expand Down
40 changes: 1 addition & 39 deletions setup.py
@@ -1,42 +1,4 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2014 ---------------
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
#
# 3. All advertising materials mentioning features or use of this
# software must display the following acknowledgment:
# "This product includes software developed by
# Xavier Dupré <xavier.dupre AT gmail.com>"
#
# 4. Redistributions of any form whatsoever must retain the following
# acknowledgment:
# "This product includes software developed by
# Xavier Dupré <xavier.dupre AT gmail.com>."
#
# THIS SOFTWARE IS PROVIDED BY Xavier Dupré ``AS IS'' AND ANY
# EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL Roman V. Kiseliov OR
# ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
# OF THE POSSIBILITY OF SUCH DAMAGE.

import sys
import os
from distutils.core import setup
Expand All @@ -59,7 +21,7 @@
'Intended Audience :: Developers',
'Topic :: Scientific/Engineering',
'Topic :: Education',
'License :: OSI Approved :: BSD License',
'License :: OSI Approved :: MIT License',
'Development Status :: 5 - Production/Stable'
]

Expand Down
8 changes: 4 additions & 4 deletions src/ensae_teaching_cs/automation/ftp_publish_helper.py
Expand Up @@ -151,7 +151,7 @@ def publish_documentation(
#"code_beatrix",
"ensae_teaching_cs",
] :
root = os.path.abspath(location % module)
project = dict ( status_file = os.path.join(this, "status_%s.txt" % module),
local = root,
Expand All @@ -160,9 +160,9 @@ def publish_documentation(
.replace("anaconda2_", "") \\
.replace("_27", ""))
projects.append (project)
# doc
# doc
project = dict ( status_file = os.path.join(this, "status_%s.txt" % module),
local = root.replace("\\html","\\html2"),
root_local = root.replace("\\html","\\html2"),
Expand Down

0 comments on commit 5a8b5df

Please sign in to comment.