Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
84 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
==================== | ||
Galleries d'exemples | ||
==================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
.. _l-gallery-examples: | ||
|
||
Exemples longs | ||
-------------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
Corrélations | ||
============ | ||
Dessine les corrélations pour un jeu de données. | ||
""" | ||
|
||
############### | ||
# A remplacer. | ||
|
||
import os | ||
import sys | ||
this = os.path.abspath(os.path.dirname(__file__)) | ||
if "papierstat" in this: | ||
this = this.split("papierstat")[0].rstrip("\\/") | ||
for module in ["papierstat"]: | ||
try: | ||
exec("import %s" % module) | ||
except ImportError: | ||
p = os.path.join(this, module, "src") | ||
sys.path.append(p) | ||
exec("import %s" % module) | ||
|
||
|
||
######################### | ||
# Récupération des données | ||
|
||
from papierstat.datasets import load_wines_dataset | ||
df = load_wines_dataset() | ||
print(df.head(n=2).T) | ||
|
||
#################### | ||
# Les corrélations avec :epkg:`seaborn`. | ||
|
||
from seaborn import clustermap | ||
|
||
clustermap(df.corr(), center=0, cmap="vlag", | ||
linewidths=.75, figsize=(13, 13)) | ||
|
||
import matplotlib.pyplot as plt | ||
plt.show() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
Bibliographie | ||
============= | ||
|
||
*Anti-sèches* | ||
|
||
* `Anti-sèches de machine learning <http://www.xavierdupre.fr/app/ensae_teaching_cs/helpsphinx3/ii_antiseches.html>`_ | ||
|
||
*Blog* | ||
|
||
* `Freakeconometrics <http://freakonometrics.hypotheses.org/>`_ | ||
|
||
*Livres* | ||
|
||
* `The Elements of Statistical Learning <https://web.stanford.edu/~hastie/ElemStatLearn/>`_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters