Skip to content

Created this webapp using streamlit and trained a model using sklearn and xgboost to create a stacking regressor. The model was trained on sklearn's preloaded california housing dataset.

Notifications You must be signed in to change notification settings

noah-andersen/ca-housing-ml-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

California Housing Model

Webapp Link

https://nandersenhousingml.streamlit.app/

Alt text

Overview

This machine learning model webapp was created from the preloaded sklearn california housing dataset to test out webapps using streamlit. In these files we train and fine tune the model and preform data preprocessing to create a stacking regressor out of mulitple regresison models such as xgboost, random forest, support vector machine, and normal gradient boosted regressors.

These are then written out to create a webapp hosted and created by streamlit where users can provide inputs to see what the predicted home price would be.

Contents

Directory Structure

The project is organized as follows:

  • docs - This folder contains readme images and other images that can be found on the webapp.

  • models - Folder containing the models used during inference when users provide feature inputs.

  • text - Text files that are used in creating summaries and other information in the webapp.

  • utils - Uitlity functions to process and scale the data before inference.

  • app.py - Main python file that runs to create the webapp and load the model.

  • requirements.txt - Requirements file for repodiciblity with the used libaries such as sklearn, xgboost, streamlit, etc

  • train.ipynb - Jupyter notebook where the model is trained.

Installation

To install the needed libraries run the line below:

pip install -r requirements.txt

Usage

To run this webapp locally do the following command when in the project directory:

streamlit run app.py

About

Created this webapp using streamlit and trained a model using sklearn and xgboost to create a stacking regressor. The model was trained on sklearn's preloaded california housing dataset.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published