Instructions to use Tahani1/Houses-Prices-Prediction with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use Tahani1/Houses-Prices-Prediction with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("Tahani1/Houses-Prices-Prediction", "sklearn_model.joblib") ) # only load pickle files from sources you trust # read more about it here https://skops.readthedocs.io/en/stable/persistence.html - Notebooks
- Google Colab
- Kaggle
House Price Prediction Model
This is a K-Nearest Neighbors (KNN) Regressor model trained to predict house prices based on features such as the number of rooms, distance to the city center, country, and build quality.
House Price Prediction Model
Prediction Results
The model provides an estimated house price based on the inputs, as shown in the image.
Model Details
- Model Type: K-Nearest Neighbors Regressor (KNN)
- Training Algorithm: Scikit-learn's
KNeighborsRegressor - Number of Neighbors: 5
- Input Features:
- Number of Rooms
- Distance to Center (in km)
- Country (Categorical)
- Build Quality (1 to 10)
- Target Variable: House Price
Training Data
The model was trained on a dataset containing house prices along with the following features:
- Number of Rooms: The number of rooms in the house.
- Distance to Center: The distance from the house to the city center in kilometers.
- Country: The country where the house is located.
- Build Quality: A subjective measure of the build quality of the house, ranging from 1 to 10.
The dataset used for training is Prices house.csv.
Using Gradio Interface
You can interact with the model using the Gradio interface hosted on Hugging Face Spaces:
Using Python Code
To use the model in Python, follow these steps:
- Install the required libraries:
pip install scikit-learn pandas numpy joblib
- Downloads last month
- -
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐ Ask for provider support
