/ Модель

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

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

day4-team6-energy-use-mlp

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

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

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

Небольшая MLP на PyTorch для предварительной оценки годового энергопотребления крупных зданий в Сиэтле по табличным характеристикам.

Это небольшая нейронная сеть MLP, разработанная командой IAAC MaAI как учебная работа по курсу AI Methods I. Она оценивает годовое энергопотребление на единицу площади (site EUI) крупного здания в Сиэтле на этапе предварительного проектирования, используя характеристики здания и его местоположение. Модель обучена с нуля на 2 054 зданиях из отчёта Seattle Building Energy Benchmarking за 2016 год. Архитектура состоит из полносвязных слоёв 50→64→64→1 с ReLU; всего 7 489 обучаемых параметров. Для работы требуется таблица pandas с 11 признаками, включая назначение, тип, площадь, этажность, год и район здания; категории кодируются методом one-hot. Модель реализована на PyTorch и распространяется по лицензии MIT.

На тестовой выборке из 643 зданий модель показала MAE 69 кВт·ч/м² в год и типичную ошибку около 46%; результат сопоставим с использованным в сравнении случайным лесом. Она пригодна для грубой предварительной оценки, но не для проектных решений, энергетической сертификации или оценки отдельных существующих зданий. Обучение охватывало только крупные здания, отчитывающиеся объекты Сиэтла за 2016 год; модель тяготеет к средним значениям и заметно недооценивает наиболее энергозатратные здания.

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

  • Предварительная оценка годового энергопотребления крупного здания в Сиэтле
  • Оценка энергоёмкости на квадратный метр на этапе технико-экономического обоснования
  • Учебное сравнение нейронной сети со случайным лесом для регрессии энергопотребления

Ограничения

Модель обучена на данных крупных зданий Сиэтла за 2016 год и не предназначена для других городов, малых зданий или иных периодов без переобучения. Типичная ошибка составляет около 46%, а самые энергозатратные здания модель существенно недооценивает; её не следует использовать для проектных решений или сертификации.

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

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

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

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

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

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

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

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

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

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

Открыть на Hugging Face

Seattle buildings: energy use per m2 with a small neural network

This model gives a first estimate of the yearly energy use per m2 (site EUI) of a large building in Seattle, from what an architect knows in a feasibility study: the use, the size, the number of floors, the year and the location. It is a small MLP (50 → 64 → 64 → 1 with ReLU, 7,489 parameters) trained from scratch with PyTorch on 2,054 buildings of Seattle's 2016 energy report. It was built as a course assignment for AI Methods I (IAAC MaAI 2026/27), to compare a neural network with our Day 2 random forest on the same test buildings.

Model at a glance

Network vs Day 2 model vs baseline

On the same 643 test buildings the network ties with our Day 2 random forest and both are far better than the mean. The network is not better: on a table of 2,000 rows a neural network doesn't beat the trees.

Predicted vs actual

Both models pull their predictions towards the middle: buildings that use very little are overestimated, and the few above 1,000 kWh/m2 are strongly underestimated by both.

ModelR2 on log10 (test)MAE (kWh/m2 per year)Typical error
Baseline: always the mean0.008966%
Day 2 random forest0.3876845%
This model0.3826946%

Intended use

  • Intended users and use: an architect or engineer who wants an order of magnitude of the energy use per m2 of a new large building in Seattle during a feasibility study, before any energy simulation. A teaching model.
  • Out-of-scope uses:
    • a number for design decisions or energy certificates: the typical error is around 45%;
    • judging or ranking a specific existing building or its owner;
    • data centers, labs or very mixed buildings;
    • other cities, small buildings (the data only has buildings over 20,000 sqft, about 1,860 m2) or other years, without retraining.

Model details

Tasktabular regression
ArchitectureMLP: Linear 50 → 64, ReLU, Linear 64 → 64, ReLU, Linear 64 → 1 (with Dropout(0.0) layers, kept so the layer numbers match the weights)
Parameters7,489, all trainable
Base modelnone, trained from scratch
Input11 columns, turned into 50 inputs by the preprocessing (8 scaled numbers, 42 one-hot columns)
Outputlog10 of the site EUI; 10 ** output gives kWh/m2 per year
Filesmodel.pt (weights, state_dict) and scaler.joblib (the fitted scikit-learn ColumnTransformer: imputers, scaler and one-hot encoder)
Library versionsPython 3.12, torch 2.14.1, scikit-learn 1.9.1, pandas 3.0.6, numpy 2.5.3, joblib 1.6.0

Input features

The model expects a pandas.DataFrame with exactly these 11 columns. Missing values (NaN) are filled like in training, and unknown categories are ignored.

ColumnTypeUnitDescriptionPreprocessing
primary_property_typecategory-main use, e.g. "Low-Rise Multifamily", "Small- and Mid-Sized Office", "Hotel", "Warehouse"one-hot
building_typecategory-city category: "Nonresidential", "Multifamily LR (1-4)", "Multifamily MR (5-9)", "Multifamily HR (10+)", "Campus", "SPS-District K-12"one-hot
neighborhoodcategory-Seattle neighborhood in capitals, e.g. "DOWNTOWN", "EAST", "BALLARD"one-hot
year_builtintegeryearyear of constructionmedian imputation, scaling
number_of_floorsintegerfloorsnumber of floorsmedian imputation, scaling
number_of_buildingsintegercountbuildings on the property (usually 1)median imputation, scaling
gfa_m2floatm2gross floor area of the buildings, without parkingmedian imputation, scaling
gfa_per_floor_m2floatm2gfa_m2 / number_of_floors, roughly the footprintmedian imputation, scaling
parking_sharefloat0-1part of the total area that is parkingmedian imputation, scaling
latitudefloatdegreeslocationmedian imputation, scaling
longitudefloatdegreeslocationmedian imputation, scaling

Training data

Dataset2016 Building Energy Benchmarking (Seattle), cleaned in our Day 1 repository
Sourcekaggle.com/datasets/city-of-seattle/sea-building-energy-benchmarking
LicencePublic Domain (City of Seattle)
One row isone building (or property) in 2016
Size and splits3,211 buildings: train 2,054, validation 514, test 643. The test set is the same as for our Day 2 model (test_size=0.2, random_state=42)
CoverageSeattle, 2016, non-residential and multifamily buildings over 20,000 sqft

Training procedure

  • Settings: MSE loss on log10 of the site EUI, Adam with learning rate 0.001, batches of 32, at most 300 epochs, seed 42.
  • Regularisation: early stopping. Training stops when the validation loss hasn't improved for 30 epochs and goes back to the best weights. We also tried dropout 0.3 with weight decay 0.001 (validation R2 0.387) and a smaller network with 16 neurons per layer (0.385); early stopping alone was best (0.396).
  • Hardware and time: a laptop CPU, a few seconds (the 300-epoch run without regularisation took 8 s).
  • Model selection: the weights of epoch 28, where the validation loss was lowest. The test set was used once, at the end.

Training curves

Training and validation improve together only for the first 28 epochs; after that the training loss keeps falling while the validation loss rises. Without early stopping the network memorises the training buildings: after 300 epochs R2 0.81 on training and 0.11 on validation.

The network before and after training

The first 12 inputs and neurons of each layer, before and after training (here the 300-epoch run). Training only moves the numbers on the lines: a few weights grow large, most stay small. A thick line is not the same as an important input.

Evaluation

On the 643 test buildings:

MetricMean (baseline)Day 2 random forestThis model
R2 on log100.000.3870.382
MAE (kWh/m2 per year)896869
Typical error66%45%46%
Buildings underestimated49%49%46%

The predictions of the network and of the random forest are correlated at 0.90.

Where it fails (median error per use, uses with at least 10 test buildings):

UseTest buildingsThis modelDay 2 random forest
Other5252%52%
Warehouse3752%49%
Mixed Use Property3850%39%
K-12 School1238%29%
High-Rise Multifamily1929%16%
Large Office3726%36%
Hotel2417%26%
Medical Office1314%20%

The network is worse than the random forest on high-rise apartments, mixed use buildings and schools, and better on large offices, hotels and medical offices. Warehouses and the "Other" group stay around 50% for both: the use alone doesn't say what happens inside. With 12 to 52 test buildings per use these medians are rough.

Limitations and biases

  • R2 0.38: it explains less than half of the differences. Energy depends a lot on how the building is used (hours, equipment, people), which isn't in the data.
  • It pulls predictions towards the middle, so it underestimates the buildings that use the most.
  • The network learned on 2,054 buildings and the random forest on 2,568 (it didn't need a validation set), so the comparison slightly favours the random forest.
  • One seed and one validation split: the ranking of the experiments (0.385 to 0.396) is within noise.
  • Only large buildings that report, only Seattle, only 2016, self-reported data. The split is random, so it is tested on existing buildings, not on buildings built later.

How to use

import joblib
import pandas as pd
import torch
from torch import nn
from huggingface_hub import hf_hub_download

REPO = "iaac-maai/day4-team6-energy-use-mlp"

#exactly the trained architecture, including the Dropout(0.0) layers
model = nn.Sequential(
    nn.Linear(50, 64), nn.ReLU(), nn.Dropout(0.0),
    nn.Linear(64, 64), nn.ReLU(), nn.Dropout(0.0),
    nn.Linear(64, 1),
)
model.load_state_dict(torch.load(hf_hub_download(REPO, "model.pt"), map_location="cpu"))
model.eval()
preprocessing = joblib.load(hf_hub_download(REPO, "scaler.joblib"))

#a new 6 floor apartment block in the east of the city
example = pd.DataFrame([{
    "primary_property_type": "Mid-Rise Multifamily",
    "building_type": "Multifamily MR (5-9)",
    "neighborhood": "EAST",
    "year_built": 2016,
    "number_of_floors": 6,
    "number_of_buildings": 1,
    "gfa_m2": 6000,
    "gfa_per_floor_m2": 1000,
    "parking_share": 0.1,
    "latitude": 47.615,
    "longitude": -122.315,
}])
x = torch.tensor(preprocessing.transform(example), dtype=torch.float32)
with torch.no_grad():
    log_eui = model(x).item()
print(f"{10 ** log_eui:.0f} kWh/m2 per year")   # 117 kWh/m2 per year

Security note: .pt and .joblib files are Python pickles and can run code when they are loaded, so only load models from sources you trust. Use the library versions listed above: scaler.joblib may not load with another scikit-learn version.

Reproducibility

The full pipeline (data, splits, baseline, training, experiments, evaluation) is in the GitHub repository: https://github.com/iaac-maai/6-day4-assignment. Run notebook/neural_network.ipynb with the packages in requirements.txt.

Authors and licence

Chloe Hraibeh, Jeff El Khoury, Luca Obejdeanu. Course assignment for AI Methods I: Machine Learning for the Built Environment, IAAC MaAI 2026/27.

Model released under the MIT License. The training data is Public Domain (City of Seattle).

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

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

GPU в ailist

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

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

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

Ревизия весов
e49e33b

0 моделей