import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LinearRegression
from sklearn.metrics import mean_absolute_error, mean_squared_error
data = {
'Area': [1000, 1500, 2000, 2500, 3000, 3500, 4000],
'Bedrooms': [2, 3, 3, 4, 4, 5, 5],
'Age': [10, 5, 8, 4, 7, 3, 2],
'Price': [50000, 70000, 85000, 110000, 130000, 150000, 175000] # Target variable
}
df = pd.DataFrame(data)
X = df[['Area', 'Bedrooms', 'Age']]
y… See the full description on the dataset page:
https://huggingface.co/datasets/Mounika143/landprice_dataset.