No description or website provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


The project should work with python 2 and 3.


This project provides the python code that supports this blog post (if you are a beginner, you should read it).

The goal is to make a neural network from scratch using numpy, then the same one using TensorFlow.

As a toy example, we try to predict the price of car using online data. downloads data from, which is a website of classified ads. The data retrieved are about BMW Serie 1 (only one model of car).

For each BMW Serie 1 we save an input with the number of km, fuel, age and the price. The data are saved into car_features.csv.

These data are then normalized by to produce normalized_car_features.csv.

normalized_car_features.csv is used as input by which is the neural network using numpy and which is the neural network using TensorFlow. is used to transform the data back and forth from the normalized to the human readeable version. For instance to predict a price, the user will input the raw car attributes. will convert the raw data to the normalized version and return them. The neural network output is also given to so that the user obtains a readable price and not a normalized one.

Overall results are pretty good knowing that the price is impacted by more than three attributes.

Network architecture

The architecture is pretty simple and well described in the blog post. Here is an illustration: Network architecture


A requirements.txt file exists at the root of the repository. Run pip install -r requirements.txt .


If you see a bad implementation or you come across a bug, open an issue. I'll help you.