The Tao of Python

The Tao of Python

While we introduce many different objects, we only use two kinds of relationships:

Crime Data Validation Practices

Crime Data Validation Practices

It's imperative that we check the data for errors, outliers, and consistent distributions so that we know what they are at the outset and take steps to address them before we run our models. The process below is a snapshot ...

Investigate Titanic Dataset

Investigate Titanic Dataset

In this project, we will investigate a subset of the RMS Titanic passenger list to determine which features(age, gender, socio-economic status, etc.) help to predict whether someone survived or died.

Generating continuous random variables

Generating continuous random variables

First of all, consider the following theoretical result.

California electricity capacity analysis

California electricity capacity analysis

This data analysis provided information for the February 5, 2017, Los Angeles Times story "Californians are paying billions for power they don't need" by documenting California's glut of power and the increasing cost to consumers. It also underpins a complementary ...

Abstract

Abstract

In this network, both the "president being in town" and a "car accident on the highway" exert influence over whether a traffic jam occurs. With this relationship in mind, we will try to answer two simple questions:

Calculating Lyapunov Exponents with ForwardDiff.jl and DifferentialEquations.jl

Calculating Lyapunov Exponents with ForwardDiff.jl and DifferentialEquations.jl

lyapunov_exponents(phase_dynamics, u0, t_chunk, num_tran, num_attr; ...)

California "Conservation-Consumption Score" analysis

California "Conservation-Consumption Score" analysis

A Los Angeles Times analysis published on Oct. 31, 2016 , found that the overwhelming majority of California water districts increased their usage after the state eased its drought restrictions. Some of the most extreme increases were found in inland ...

Distributions

Distributions

Delivered by Fastly , Rendered by Rackspace

Image Exploration on AWS

Image Exploration on AWS

The following notebook is a brief exploration of satellite images for the DSTL Satellite Image Feature Detection on Kaggle.

Jupyter Notebook Viewer - Linkis.com

Jupyter Notebook Viewer - Linkis.com

@Sochyvee

Implementing a Neural Network

Implementing a Neural Network

We will use the class TwoLayerNet in the file cs231n/classifiers/neural_net.py to represent instances of our network. The network parameters are stored in the instance variable self.params where keys are string parameter names and values are numpy arrays. Below, we initialize ...

Córdoba Python Meetup

Córdoba Python Meetup

¿ Dado un usuario, cuanto puedo saber de sus preferencias sabiendo las de su entorno ?

参考文献

参考文献

10.3: OpenCL

First, make the validation set with different drivers

First, make the validation set with different drivers

The following is mashed together from fast.ai

最短経路と最長経路を求めよう

最短経路と最長経路を求めよう

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

California crop production wages analysis

California crop production wages analysis

The Los Angeles Times conducted an analysis of the Quarterly Census of Employment and Wages from the U.S. Bureau of Labor Statistics to evaluate pay for crop workers in California.

実践コンピュータビジョン

実践コンピュータビジョン

dataフォルダに保存したJPEG形式の画像データを読み込む。

Written Questions - Flow From Party to Answering Body

Written Questions - Flow From Party to Answering Body

Documenting the generation of a Sankey diagram using Python to chart the number of responses from Answering Bodies to questions tabled by members of the House of Commons of a particular party for the 2015/16 Parliamentary session.

contextily

contextily

Let us first load up from PySAL the polygons of the 48 contiguous states using geopandas , and pick out Texas, for instance:

Before We Begin

Before We Begin

To get those:

Migrant Flows - Sankey Diagram Demo

Migrant Flows - Sankey Diagram Demo

This notebook also demonstrates how widget libraries can also be thought of as code generators capable of generating reusable code that can be used directly elsewhere, or can be treated as an automatically generated "first draft" of the code for ...

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

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

Delivered by Fastly , Rendered by Rackspace

Handwritten Digit Recognition

Handwritten Digit Recognition

We first fetch the MNIST dataset, which is a commonly used dataset for handwritten digit recognition. Each image in this dataset has been resized into 28x28 with grayscale value between 0 and 254. The following codes download and load the ...

Tournament simulation using PyStan

Tournament simulation using PyStan

Main idea: assign score $\alpha_i$ to each team, predict $\sqrt{\Delta}$ where $\Delta$ is the difference in scores using $\sqrt{\Delta} \approx \alpha_i - \alpha_j + h$ where $h$ is the home-field advantage.

Breast Cancer prediction

Breast Cancer prediction

5 rows × 33 columns

OpenML in Python

OpenML in Python

There are two ways to authenticate:

Changes in API: Variational Inference: Bayesian Neural Networks

Changes in API: Variational Inference: Bayesian Neural Networks

See original blog post for old interface and more explanations of bayesian approach in Deep Learning:

Updating priors

Updating priors

Our initial beliefs about the parameters are quite informative (sd=1) and a bit off the true values.

Generating discrete random variables

Generating discrete random variables

Note that the generic if statement relies on the implicit assumption that $\sum_{j=1}^0 p_j = 0$. If we denoste by $X_G$ the random variable whose specifications are the values returned by this algorithm, it is easy to see that $X_G ...