Skip to main content

Energetic

Automated building energy efficiency descriptor generation, model training, and deployment — similar to Mordred for chemical descriptors and Jaqpotpy for model deployment, but purpose-built for building energy analysis.

Features

  • 200+ automated descriptors from building geometry, context, envelope, and time-series data
  • Minimal input required — pass a GeoJSON, Shapefile, CityJSON, or DataFrame with WKT geometries
  • ML model training with XGBoost, RandomForest, LightGBM, and Neural Networks
  • Hyperparameter optimization via Optuna
  • Model packaging and upload to custom deployment platforms
  • Open dataset integration (ASHRAE, Building Data Genome, NYC LL84, OSM)
  • Meteorological data enrichment for expanded feature sets

Installation

pip install -e .

# With ML extras (XGBoost, LightGBM, Optuna)
pip install -e ".[ml]"

# Full installation

Quick Start

Generate Descriptors

from energetic import EnergyFeaturizer

featurizer = EnergyFeaturizer(descriptors="all", cache=True, n_jobs=-1)
features = featurizer.fit_transform("buildings.geojson")

print(f"Generated {len(featurizer.get_feature_names())} descriptors")
featurizer.to_csv("features.csv")

Train a Model

from energetic import EnergyFeaturizer, EnergyModelTrainer
import pandas as pd

featurizer = EnergyFeaturizer()
features = featurizer.fit_transform("buildings.geojson")

X = features.drop("building_id", axis=1)
y = pd.read_csv("eui_targets.csv")["eui"]

trainer = EnergyModelTrainer(task="regression", model="xgboost")
metrics = trainer.train(X, y, optimization_trials=50)
trainer.save("model.joblib")

Upload to Platform

from energetic import ModelUploader

uploader = ModelUploader(
    endpoint_url="https://your-platform.example.com",
    api_key="your-api-key",
)
model_id = uploader.upload(trainer, featurizer, metadata, "office_eui_v1")

CLI

# Generate descriptors
energetic featurize buildings.geojson -o features.csv

# Train model
energetic train features.csv targets.csv -o model.joblib -m xgboost

# Show descriptor info
energetic info --descriptors

# End-to-end pipeline
energetic pipeline buildings.geojson targets.csv -o output/

Descriptor Categories

Category Count Examples
Morphological 60+ Area, Zernike moments, Hu moments, fractal dimension
Contextual 40+ Sky view factor, neighbor density, solar potential
Envelope 50+ Wall-to-floor ratio, WWR, thermal mass, roof type
Temporal 50+ PRISM parameters, load factor, seasonality, ramp rates

Input Formats

  • GeoJSON — .geojson, .json
  • Shapefile — .shp
  • CityJSON — .city.json
  • CSV/DataFrame — WKT geometry column
  • Python dicts — list of building dictionaries

Open Datasets

from energetic.datasets import OpenDatasetLoader

loader = OpenDatasetLoader()

# NYC LL84 — live Socrata API (no auth required)
nyc = loader.load("nyc_building_energy", max_records=1000, property_type="Office")

# ASHRAE / BDG2 — Kaggle API (requires ~/.kaggle/kaggle.json)
ashrae = loader.load("ashrae_great_energy_predictor")
bdgp = loader.load("building_data_genome", components=["metadata", "electricity"])

# OSM footprints — Overpass API or OSMnx
osm = loader.load("openstreetmap_buildings", latitude=40.75, longitude=-73.98, radius_m=300)

# Run standardized benchmarks
result = loader.run_benchmark("nyc_site_eui", model="random_forest")
print(result["test_metrics"])

License

MIT

Metadata

Release files for energetic 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for energetic 0.0.1
File Size Uploaded Provenance
energetic-0.0.1.tar.gz 130.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for energetic 0.0.1
File Interpreter ABI Platform
energetic-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 293.3 kB

Release files / energetic-0.0.1.tar.gz

Download URL energetic-0.0.1.tar.gz
Size 130.6 kB
Tags Source
SHA-256 checksum
How to use checksums
614b19055ade4ea4c444c8432e764736bb3573c0df3e96714e879f77956f7463
BLAKE2b-256 checksum
How to use checksums
061d5ea6b51501bbb0a50f0013805e0d1250eabd87fa08be16b0174ba38a6781
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.0

Release files / energetic-0.0.1-py3-none-any.whl

Download URL energetic-0.0.1-py3-none-any.whl
Size 162.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5b3e338c2e1b46943add2e56f1d07d374c3536afce274927a981a7164ad1b8f2
BLAKE2b-256 checksum
How to use checksums
f1e9c19d21b4f733e054b253a3e07d4be78cfb589e429c2beadca82a2de3112e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.0

Security for energetic 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page