Snippets
Du code concis, avec une explication claire.
xgboost: regressor avec DMatrix et features nommées
Entraîner un modèle via xgboost.train avec DMatrix et noms de colonnes.
#xgboost#regression#dmatrix
xgboost: sauvegarder/charger un modèle
Persister un Booster (native) et un modèle scikit-learn.
#xgboost#persistence#model-io
ADF: test de stationnarité
Tester la stationnarité via Augmented Dickey-Fuller.
#timeseries#adf#stationarity
altair: bar, line et dual axis
Créer des graphiques déclaratifs avec Altair.
#altair#vega#chart
scipy: intervalle de confiance proportion
IC de Clopper-Pearson pour une proportion binaire.
#scipy#binom#ci
dask: read_parquet et agrégation
Charger un dossier Parquet et calculer paresseusement.
#dask#parquet#aggregate
duckdb: requête sur Parquet et pandas
Interroger des fichiers Parquet et DataFrames en SQL.
#duckdb#sql#parquet
holoviews+datashader: gros scatter
Visualiser des millions de points grâce à datashader.
#holoviews#datashader#bigdata
matplotlib: 3D scatter et surface
Créer un scatter 3D et une surface wireframe.
#matplotlib#3d#surface
matplotlib: annotate (flèches)
Ajouter des annotations avec flèches et lignes de repère.
#matplotlib#annotate#arrow
matplotlib: hist2d et hexbin
Densités 2D par histogramme carte/hexbin.
#matplotlib#hist2d#hexbin
matplotlib: animation FuncAnimation
Animer une ligne simple avec FuncAnimation.
#matplotlib#animation#funcanimation