Posts tagged with Sklearn

  • Where are my Magic: the Gathering cards ?

    Thumbnail for Where are my Magic: the Gathering cards ?

    Since a few months I’ve been selling some Magic: the Gathering cards on CardMarket. Last week I realized I could extract the address from buyers from eml files (exported emails) with orders. From those the (approximate*) location using Google’s Geocoding API can be found and plotted using Altair. This gives...

  • Plotting post hoc tests with Python

    Thumbnail for Plotting post hoc tests with Python

    When three or more groups of samples are compared (e.g. Using ANOVA/Tukey HSD or Kruskal-Wallis/Dunn), you’ll often see results shown as a boxplot, with lines highlighting which groups are significantly different. In Python there is no single package to do this quickly, though by combining scikit-posthocs with statannotations similar plots...

  • Fighting Batch Effects with pyComBat

    Thumbnail for Fighting Batch Effects with pyComBat

    Even high-end scientific equipment can have a bad day! Machine performance can be affected by ambient temperature, humidity, … so when samples are measured in different batches, this needs to be corrected for. In this post we’ll have a look at the Python package pyComBat which does this elegantly and...

  • PCA Plots with Loadings in Python

    Thumbnail for PCA Plots with Loadings in Python

    Like the previous Code Nugget, this bit of code will add some often needed features to PCA plots done with Python. Here the loadings and variance explained will be added to the plot, this is something that is included by default in R’s biplot(), but in Python there is more...

  • Machine Learning: the Gathering

    Thumbnail for Machine Learning: the Gathering

    In Magic: the Gathering, a collectible card game, competitive players tend to gravitate towards a few dozen of the best decks made up of a subset of all available cards. For instance in the Legacy format nearly all 18000 cards can be played, yet you’ll only see about 500 show...