This is a simple web application that predicts house prices based on the number of rooms using linear regression and gradient descent in JavaScript.
- Predicts house prices based on the number of rooms.
- Input validation: Ensures the number of rooms matches the number of prices.
- Data sanitization: Ignores non-numeric values and extra spaces.
- Normalization and scaling for reliable gradient descent.
- User-friendly interface with instructions.
- Open
index.htmlin a browser. - Enter the number of rooms for existing houses (space-separated).
- Enter the corresponding house prices (space-separated).
- Enter the number of rooms for the new house to predict its price.
- Click Predict to see the estimated house price.
- Rooms:
1 2 3 4 - Prices:
2000000 2500000 3000000 3600000 - New House Rooms:
5 - Output:
Estimated house price: ₹ 4000000
- HTML, CSS, JavaScript
- Linear Regression (Gradient Descent)
- Thrishala2006