Notebook Gallery

Links to the best IPython and Jupyter Notebooks.

Plotting Words per Line over Narrative Space in Virgil's Aeneid

The result is a pretty jagged lineplot since the counts are more or less arbitrarily determined, so I also show here how to smooth this plot by getting the running average over certain number of line, i.e. a window. I'm ...

Back-propagation - Math Simplified

Forward propagation is nothing but applying a series of functions on an input vector $X$ with resulting output of each is also a vector. For a neural network generating a logical output between 0 and 1 with 1 hidden layer ...

Mapping Geographic Subjects using the HathiTrust Extracted Features Dataset

As with the previous notebook, I use the American School of Classical Studies at Athens's 1947 "Ancient Corinth: A guide to the excavations" . (This is the fourth edition, revised by O. Broneer.) Encouragingly, the top three "locations" returned with ...

Jupyter Notebook execution examples

Examples of how to remotely execute Jupyter Notebooks from other contexts. For this demonstration the notebook being run is at src/run_me.ipynb .

Juliaで学ぶタイトバインディング模型とトポロジカル物質

これまで作ってきたタイトバインディング模型は一次元の系である。そして、隣のサイトとのホッピングのみを考えた模型であった。この模型において、あるサイト$i$におけるシュレーディンガー方程式は $$-t c_{i+1} -μ c_i - t c_{i-1} = E c_i$$ と書くことができる。この模型を解析的に解くためには、フーリエ変換： $$c_i = \sum_k e^{i k x_i} c_k$$ を用いると、  \sum_k \left( -t e^{i k x_{i+1}}c_k -μ e^{i k x_i}c_k - t e^{i k x_{i-1}}c_k ...

Text Scraping

The aim of the scrape in these cases might be as simple as pulling the table from the page and representing it as a dataframe, or trying to reverse engineer the HTML template that converts data to HTML into something ...

Data

Keras implementation of https://junyanz.github.io/CycleGAN/

Delivered by Fastly , Rendered by Rackspace

Transfering a model from PyTorch to Caffe2 and Mobile using ONNX

For this tutorial, you will need to install onnx , and Caffe2 . You can get binary builds of onnx with conda install -c conda-forge onnx .

Timeseries Classification: KNN & DTW

When it comes to building a classification algorithm, analysts have a broad range of open source options to choose from. However, for time series classification, there are less out-of-the box solutions. Many of the typical classification algorithms (Logistic Regression, Random ...

This website does not host notebooks, it only renders notebooks available on other websites.

Delivered by Fastly , Rendered by Rackspace

This website does not host notebooks, it only renders notebooks available on other websites.

Delivered by Fastly , Rendered by Rackspace

Cosa e'mandinga

Estábamos con @federicobayle debatiendo acerca de métodos de imputación y nos dimos cuenta que no hay un criterio unificado acerca del valor a utilizar al imputar en testing/dev.

This website does not host notebooks, it only renders notebooks available on other websites.

Delivered by Fastly , Rendered by Rackspace

Using NER to Map MARC Geographic Subject Headings

One of my main research projects at the ISAW Library has been geolocating subject headings of books in our collection. That is, not determining "What a book is about?" but "Where is it about?" The notebook below goes through an ...

2017-10-04

The Coin-Flip Bracket

You can view my complete bracket here: http://games.espn.com/tournament-challenge-bracket/2018/en/entry?entryID=17959239&sp=true

Backporting "yield from" to Python 2.7

a.k.a. "AST Manipulation for Fun and Profit"

Dynet tutorial: Approximating $\sqrt{2}$ with gradient descent

This can be reframed as an optimization problem where we are looking for

2018-01-31

2017-09-28

Piano Spectrum Survey

This made the harmonic series sound compressed, with the first apparent overtone sounding only a fifth above the dominant frequency instead of an octave. It made the tone of the piano sound a little growly. It was such a departure ...

A Whirlwind Tour of Python

These are the Jupyter Notebooks behind my O'Reilly report, A Whirlwind Tour of Python . The full notebook listing is available on Github .

A $\Pi$-Day Notebook for NLP

Classical NLP relies heavily on generative models of the form $p(x \mid y)$, where $y$ is a label, and $x$ is a word or vector of word counts:

Topic modelling with Spacy, Gensim and Textacy

This notebook consists of following sections:

Sequence-based POS classification using the works of Aristotle

Here we add a history parameter to the classifier, so that we can make use of previous assigned tags in making decisions. Using consecutive classification, the first word of a sentence is tagged and then the second word is tagged ...

Scraping Low Hanging Fruit on the UK Register of Members' Financial Interests

The register entries for each member contains semi-structured text data , which is to say that there are some recognisable patterns in the text that makes up the register entries.

4 rows × 117659 columns

This website does not host notebooks, it only renders notebooks available on other websites.