Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.2b0

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.2b0
File Size Uploaded Provenance
energetic-0.0.2b0.tar.gz 130.7 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 293.4 kB

Release files / energetic-0.0.2b0.tar.gz

Download URL energetic-0.0.2b0.tar.gz
Size 130.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b2d6122ab85108fa64424df86a65cb57bb76b93e2359fec7e134f121fd3fc3c7
BLAKE2b-256 checksum
How to use checksums
dccd419205e019dab711a765b1afcf1ee9931937716db634c6e0671aa0a21e6e
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.2b0-py3-none-any.whl

Download URL energetic-0.0.2b0-py3-none-any.whl
Size 162.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6b2bff5cb5cf63215f7fc9a96071078621d1a5fc0831d91b2703d6f6d31235a2
BLAKE2b-256 checksum
How to use checksums
e0b237944923139a85f81889c4a78a615d4248558a25b8f6954133a9dd7d0b49
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.2b0

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