---
title: "Discussion on \"Building an RL Traffic Agent for Indian Roads, Part 5: The Math, the Bugs, and Everything That Broke\" | Hashnode"
description: "Discussion on \"Building an RL Traffic Agent for Indian Roads, Part 5: The Math, the Bugs, and Everything That Broke\". Turning theory into code — LIDAR-to-grid math, tanh squashing, the change-of-variables trap, and bugs that looked broken but weren't."
url: "https://hashnode.com/posts/building-an-rl-traffic-agent-for-indian-roads-part-5-the-math-the-bugs-and-everything-that-broke/6a76b2af07648629d2d7f44e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Building an RL Traffic Agent for Indian Roads, Part 5: The Math, the Bugs, and Everything That Broke](https://local-minima.hashnode.dev/building-an-rl-traffic-agent-for-indian-roads-part-5-the-math-the-bugs-and-everything-that-broke?utm_source=hashnode&utm_medium=feed)

Turning theory into code — LIDAR-to-grid math, tanh squashing, the change-of-variables trap, and bugs that looked broken but weren't.

Aug 8 · 18 min read · local-minima.hashnode.dev  
Read the article

-   [#reinforcement-learning](https://hashnode.com/tag/reinforcement-learning)
-   [#pytorch](https://hashnode.com/tag/pytorch)
-   [#machine-learning](https://hashnode.com/tag/machine-learning)
-   [#python](https://hashnode.com/tag/python)

## Written by

[Jeevika S](https://hashnode.com/@jeevikasrinath)

@jeevikasrinath · Bangalore, India

  
[View profile](https://hashnode.com/@jeevikasrinath)

3rd-year AIML undergrad | writing technical deep-dives on ML & RL research

Documenting research and projects across deep learning and reinforcement learning

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
