Downloads · 30 days
0
Abhisingh-18/Price-Predictor
Price-Predictor is a machine learning model from Abhisingh-18. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
from sklearn.linearmodel import LinearRegression import numpy as np
Downloads · 30 days
0
Access
Public
Updated Jul 13, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 78%
From the Hugging Face model README
from sklearn.linear_model import LinearRegression import numpy as np
x = np.array([[1500,3,2],[2000,4,3],[1200,2,3],[1800,3,2],[2500,4,3]]) y = np.array([250000,350000,200000,400000])
model = LinearRegression() model.fit(x,y)
x_new = np.array([[1600,3,2],[2200,4,2]]) predictions = model.predict(x_new)
for i, pred in enumerate(predictions): print(f"predicted price for house {i+1}: ${pred:.2f}")