CoolFace
Apppublic

bnspopi/openenv-scaler

sourceHugging Facemitupdated 6mo agoView on Hugging Face
0likes
App README

Openenv Scaler

Smart Grid Navigation Reinforcement Learning (RL) Environment built using FastAPI. This project simulates an agent navigating a grid with rewards and goals.


๐Ÿš€ Features

  • โ€”Custom RL environment
  • โ€”Grid-based navigation
  • โ€”Reward system
  • โ€”API endpoints for interaction
  • โ€”Docker-based deployment
  • โ€”Live testing via Swagger UI

๐Ÿง  How It Works

  • โ€”Agent starts at position [0, 0]
  • โ€”Goal is at [4, 4]
  • โ€”Each step gives reward -1
  • โ€”Reaching goal gives reward +100
  • โ€”Environment resets after completion

๐Ÿ“ก API Endpoints

  • โ€”/reset โ†’ Reset environment
  • โ€”/step โ†’ Take action
  • โ€”/state โ†’ Get current state
  • โ€”/health โ†’ Check API status

Direction Mapping

  • โ€”0 = UP
  • โ€”1 = DOWN
  • โ€”2 = LEFT
  • โ€”3 = RIGHT

๐Ÿงช Usage

Open Swagger UI at: /docs

Then:

  1. 1.Call /reset
  2. 2.Use /step with:
json
{
  "direction": 1
}