Team Ai
Datasetpublic

codechimanshu/smartgrid-openenv-dataset

Smart Grid Energy Trader — Dataset Complete training and evaluation dataset for the Smart Grid OpenEnv environment. Files File Rows Description states.csv 216 All environment states across all tasks episodes.csv 3,860 Full episode rollouts with agent decisions price_patterns.csv 96 24-hour price curves for 4 market scenarios llm_prompts.jsonl 500 LLM training examples in OpenAI chat format states.csv columns Column Type… See the full description on the dataset page: https://huggingface.co/datasets/codechimanshu/smartgrid-openenv-dataset.

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes4downloads
Dataset Card

Smart Grid Energy Trader — Dataset

Complete training and evaluation dataset for the Smart Grid OpenEnv environment.

Files

FileRowsDescription
states.csv216All environment states across all tasks
episodes.csv3,860Full episode rollouts with agent decisions
price_patterns.csv9624-hour price curves for 4 market scenarios
llm_prompts.jsonl500LLM training examples in OpenAI chat format

states.csv columns

ColumnTypeDescription
task_idint1=easy, 2=medium, 3=hard
dayintDay number (1–7)
hourintHour (0–23)
weatherstrsunny / cloudy / stormy
solar_outputfloatkWh from solar this hour
wind_outputfloatkWh from wind this hour
generationfloatTotal kWh generated
grid_pricefloatRs per kWh
home_demandfloatkWh homes need
price_zonestrpeak / mid / off_peak
isstormdayint1 if stormy (Task 3 Days 4–5)
isspikedayint1 if price spike (Task 3 Day 6)

episodes.csv columns

All state columns above, plus:

ColumnTypeDescription
episode_idintUnique episode identifier
seedintRandom seed used
battery_levelfloatBattery % at this step
rule_actionintRule-based agent decision
ruleactionnamestrSTORE / DISTRIBUTE / SELL
rule_rewardfloatReward from rule-based action
optimal_actionintOptimal agent decision
optimalactionnamestrSTORE / DISTRIBUTE / SELL
optimal_rewardfloatReward from optimal action
reward_gapfloatHow much better optimal was

llm_prompts.jsonl format

json
{
  "messages": [
    {"role": "system",    "content": "You manage a microgrid..."},
    {"role": "user",      "content": "Current state:\n{...}"},
    {"role": "assistant", "content": "{\"action\": 2}"}
  ],
  "optimal_action": 2,
  "optimal_action_name": "SELL",
  "reason": "Grid price is high (11.5 Rs/kWh). Sell to maximize revenue.",
  "task_id": 2
}

Regenerate

bash
python generate_dataset.py