/ Модель

Характеристики

Лицензия
MIT
Библиотека
pytorch
Опубликована
14 ноя 2026

day4-group3-mumbai-rent-mlp

Регрессия по таблицам3 профессии
76скачиваний за 30 дней0лайковвеса обновлены17 ноя 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

MLP оценивает месячную заявленную арендную плату жилья в Мумбаи по характеристикам объекта.

Модель Mumbai rental MLP разработана Ахмедом Белахсеном, Нандини Ратход, Санджаной Киран и Акшанкхой Думал для курса AI Methods I в IAAC. Это многослойный перцептрон, обученный с нуля на 18 846 объявлениях об аренде жилья в Мумбаи. По восьми характеристикам объекта он оценивает месячную заявленную арендную плату в индийских рупиях. Архитектура включает слои 23 → 64 → 32 → 1 с активацией ReLU; модель содержит 3 649 обучаемых параметров и использует предварительную обработку табличных признаков.

Модель подходит для предварительного сравнения бюджетных сценариев при исследовании рынка жилья. На исторической тестовой выборке MAE составила около 38 008 INR в месяц, а R² — около 0,622; результат почти совпадает с результатом Random Forest, и преимущество MLP не подтверждено. Модель распространяется по лицензии MIT.

Обучение проводилось на исторических объявлениях из Мумбаи, а даты сбора данных неизвестны. Заявленные цены могут отличаться от фактических сделок, дубликаты объявлений способны искажать оценку, а редкие или необычные объекты могут получать неточные прогнозы. Модель не проверена для других городов, текущих оценок аренды, решений о допуске к жилью, кредитовании или отдельных людях.

Сценарии применения

  • предварительная оценка месячной аренды квартиры в Мумбаи
  • сравнение бюджетов для сценариев аренды жилья
  • анализ факторов, связанных с заявленной арендной платой
  • сопоставление нейросетевого прогноза с базовой моделью Random Forest

Ограничения

Обучена на исторических объявлениях об аренде в Мумбаи, которые могут содержать дубликаты и не отражать фактические сделки или текущие цены. Не проверена для других городов и не предназначена для решений о жилье, кредитовании или отдельных людях; редкие и необычные объекты могут оцениваться неточно.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Mumbai rental MLP

This model estimates monthly advertised Mumbai rent from eight property features. It was trained from scratch for AI Methods I, Day 4, Track A1 at IAAC. The aim is to compare a neural network with the group's Day 2 Random Forest on the same problem.

Authors: Ahmed Belahcen, Nandini Rathod, Sanjana Kiran and Akanksha Dhumal. Source: https://github.com/iaac-maai/group-3-day4-assignment Published model: https://huggingface.co/iaac-maai/day4-group3-mumbai-rent-mlp Pinned revision: 1b628c61c956fdd97543c1f21e258d023a041109.

Model at a glance

ModelMAE (INR/month)RMSE (INR/month)R²
Median baseline67,123.75140,522.95-0.0955
Day 2 Random Forest38,044.9382,899.450.6187
Day 4 MLP38,008.4582,594.830.6215

03 test comparison

Both learned models improve on the median baseline. The MLP and Random Forest are almost tied, so the small difference is not enough to claim a meaningful advantage.

01 training curves

Most of the improvement happens in the first few epochs. Validation MAE selects epoch 28 without dropout; continuing training does not give a steady improvement.

04 predictions and residuals

The plot includes the full test range. Several expensive advertisements are underestimated, while some unusually large properties are overestimated.

05 failure cases

These are the eight largest errors. Their rent and area combinations deserve source checking, but they remain in the evaluation rather than being removed to improve the score.

06 housing scenarios

The examples show how estimates change between four handmade property descriptions. They have no observed rent, so this is an application example rather than another accuracy test.

Intended use

A housing researcher can compare preliminary property-budget scenarios. Both overestimates and underestimates can mislead planning, so MAE and RMSE are reported together. The small difference from the forest is not enough to establish a practical improvement. The model is not validated for current rental valuations, other cities, housing eligibility, lending or decisions about individuals.

Model details

ItemValue
TaskRegression; monthly advertised rent in INR
Architecture23 → 64 → 32 → 1; ReLU; dropout 0
Parameters3,649, all trainable
Pretrained modelNone
Output conversionMultiply by 100,000 and clip at zero
Required filesmodel.pt, scaler.joblib, config.json
Python3.12.14
PyTorch2.14.1+cpu
scikit-learn1.9.1
NumPy / pandas / joblib2.5.4 / 3.1.0 / 1.6.0

Inputs

ColumnMeaning and unitPreparation
Area_numReported area in ft²; unit consistency unverifiedMedian imputation, standardization
BHK_numBedroom countMedian imputation, standardization
Bathrooms_numBathroom countMedian imputation, standardization
Balconies_numBalcony countMedian imputation, standardization
Furnished_cleanFurnishing categoryMode imputation, one-hot encoding
FacingOrientationMode imputation, one-hot encoding
LocationCity; constant MumbaiMode imputation, one-hot encoding
Property TypeProperty categoryMode imputation, one-hot encoding

All preparation is fitted on training rows. config.json gives the exact column order. scaler.joblib contains the full preprocessing pipeline, not just a numeric scaler. This is regression, so the output is not a class probability.

Data and training

Source: Harshal Honde's Property Rental Listings Dataset, declared CC BY 4.0 in the group's earlier documentation. Group 3 cleaned the Mumbai subset into 18,846 rows. The unchanged Day 2 snapshot is identified by SHA-256 354d28e07432137cdc97a2197a556269137e74135af01186420e2e2917a19ee9.

The split is 15,076 outer-training and 3,770 test rows, seed 42. Model selection uses 12,060 fitting and 3,016 validation rows. The tuning encoder has 22 inputs; refitting on all training rows introduces one extra category and produces the final 23-input model.

Training uses Adam, learning rate 0.001, batches of 256 and MSE on rent/100,000. Dropout 0 and 0.2 are compared with the same other settings. The run stops after 25 epochs without a better validation MAE, with a maximum of 250 epochs. Validation selected no dropout and epoch 28. A fresh network is then trained on all outer-training rows for exactly 28 epochs. The test scores do not select the weights.

Hardware: CPU, two PyTorch threads. Measured timings are recorded in ../reports/evaluation.json. The curves above show the selection runs.

Evaluation and errors

The MLP has MAE about 38,008 INR/month and R² about 0.622. It beats the median baseline, but its MAE is only about 36 INR/month lower than the forest's. This is a similar result, not convincing evidence that the neural network is better.

The largest miss is a one-bedroom listing with reported area 655 ft² and rent INR 2,500,000/month. The model estimates about INR 21,867. Another listing reports 10,000 ft² and rent INR 200,000; the estimate is about INR 1,081,762. These combinations need source checking. Neither error is a reason to remove a test row after seeing the result.

Limitations and biases

This model was trained on historical Mumbai rental property advertisements and has several important limitations.

Dataset limitations

  • Historical data: The collection dates of the rental advertisements are unknown. The model may not reflect current rental prices.
  • Advertised prices: The dataset contains advertised rents rather than verified rental transactions.
  • Geographical limitations: The model is trained on Mumbai listings and has not been validated for other cities.
  • Duplicate listings: Multiple advertisements may represent the same property, potentially introducing bias into model evaluation.
  • Missing information: Important factors such as exact neighborhood, building condition, amenities, and accessibility may not be adequately represented.

Model limitations

  • The model may produce inaccurate predictions for unusually large, expensive, or uncommon properties.
  • Predictions are based on statistical relationships in the training data and should not be interpreted as causal relationships.
  • Performance on historical test data does not guarantee accuracy on new or current listings.
  • Similar or duplicate listings across training and test sets may make evaluation results appear more favorable than performance on genuinely unseen properties.

Known failure cases

The model produces large prediction errors for some unusual combinations of property size and advertised rent. For example, extremely expensive small properties and unusually large properties may be poorly estimated.

Where the model must not be used

This model is intended for educational and experimental purposes only. It should not be used for:

  • Official property valuations.
  • Financial commitments or investment decisions.
  • Tenant selection or housing-access decisions.
  • Legal or regulatory assessments.
  • Automated decisions that materially affect individuals.

Predictions should be interpreted as experimental estimates of historical advertised rents, not reliable current market valuations.

How to use

The code below downloads the three files from a fixed published revision, then reconstructs the exact network and preprocessing. Install the project requirements first.

from pathlib import Path
import json, joblib, numpy as np, pandas as pd, torch
from torch import nn
from urllib.request import urlretrieve

folder = Path("models")
folder.mkdir(exist_ok=True)
repo = "iaac-maai/day4-group3-mumbai-rent-mlp"
revision = "1b628c61c956fdd97543c1f21e258d023a041109"
for name in ("model.pt", "scaler.joblib", "config.json"):
    if not (folder / name).exists():
        urlretrieve(f"https://huggingface.co/{repo}/resolve/{revision}/{name}", folder / name)
config = json.loads((folder / "config.json").read_text())
model = nn.Sequential(
    nn.Linear(config["input_dim"], 64), nn.ReLU(), nn.Dropout(config["dropout"]),
    nn.Linear(64, 32), nn.ReLU(), nn.Dropout(config["dropout"]), nn.Linear(32, 1))
model.load_state_dict(torch.load(folder / "model.pt", map_location="cpu", weights_only=True))
model.eval()
preprocessor = joblib.load(folder / "scaler.joblib")
example = pd.DataFrame([[1000, 2, 2, 1, "Semi-Furnished", "East", "Mumbai", "Apartment"]],
                       columns=config["features"])
x = torch.tensor(preprocessor.transform(example), dtype=torch.float32)
with torch.no_grad():
    rent = np.maximum(model(x).numpy().ravel() * config["target_scale"], 0)
print(rent)  # INR per month

The project includes a separate-process reload check using four saved scenarios and an empty-directory download check: python verify_project.py --remote.

Reproducibility, license and security

The GitHub project contains notebook/neural_network.ipynb, requirements.txt, the training histories and the pinned dataset source. Keep the PNG files beside this card so its figures render. The existing Hugging Face publication reports Python 3.12.10, PyTorch 2.15.0+cpu and pandas 3.0.6; the training environment uses Python 3.12.14, PyTorch 2.14.1+cpu and pandas 3.1.0. The published weights reproduce the recorded metrics in the training environment. Retraining may vary across versions; the two runs must not be presented as the same execution.

The code and model use MIT. The data keeps its separately declared CC BY 4.0 attribution. Joblib files can execute code when loaded: use trusted model files only. The example loads PyTorch weights with weights_only=True.

AI assistance

ChatGPT/Codex assisted with code, figures and documentation. Verification included the dataset checksum, the Day 2 split and Random Forest settings, full notebook execution and saved-model predictions.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · pytorch

Нельзя запустить

Табличные модели пока не поддерживаются рантаймом.

Ревизия весов
843cf98

0 моделей