Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jlenon7/housing-model

🤖 Model that predicts the worth of a housing according to it geolocation, number of bedrooms, number of bathrooms and more.
https://github.com/jlenon7/housing-model

Last synced: 9 days ago
JSON representation

🤖 Model that predicts the worth of a housing according to it geolocation, number of bedrooms, number of bathrooms and more.

Awesome Lists containing this project

README

        

# Housing Model 🤖

> Model that predicts what will be the price of a housing based on the number of bedrooms, bathrooms, square footage, etc.

## Results

> Verify that train/test data is not over fitting:

> Real prices vs predictions done by the model:

## Train/Test data analytics

> Count how many data we have with determined number of bedrooms

> Price distribution in **King County** city. This plot has been created
> by using the `lat` and `long` fields to create the map of the city.
> Greener values mean higher prices, redder means cheaper.

> Price distribution by the number of bedrooms:

> Price distribution by month:

> Price distribution by year:

> Price distribution by if the house/apartment is waterfront or not:

## Running

To run the model first create a new Python environment and activate it. I'm using [Anaconda](https://www.anaconda.com/) for that. The command bellow will
automatically setup the environment with conda and pipenv:

```shell
make env
```

Now install all the project dependencies:

```shell
make install-all
```

And run the model:

```shell
make model
```

After running you model, it will be saved inside `storage/housing-model.keras`.
To just run your recent created model and predict a random value from our data set,
use the following script:

```shell
make predict
```

Remember that for this to work, you need to run `make model` first to create your model.