Skip to content

NaieraA/Unity-MLAgent-Project

Repository files navigation

Unity ML-Agents Project

A reinforcement learning experiment built using Unity ML-Agents where an AI agent learns behavior through reward-based training inside a custom Unity environment.


Features

  • Reinforcement learning environment
  • AI agent training using rewards
  • Custom Unity scene setup
  • ML-Agents integration
  • Agent movement and decision making

Technologies Used

  • Unity Engine
  • C#
  • Unity ML-Agents
  • Python

Screenshots

Environment

Environment

Agent

Agent

Training

Training

Reward

Reward

Penalty

Training

Agent inspector behavior

Training


How It Works

The AI agent receives rewards and penalties based on its actions. Over multiple training iterations, the agent gradually improves its behavior to achieve better results.


What I Learned

  • Reinforcement learning basics
  • Unity ML-Agents workflow
  • Agent behavior design
  • Reward shaping
  • AI simulation environments

Future Improvements

  • More advanced environments
  • Multiple AI agents
  • Better reward balancing
  • Improved training performance

Training Notes

The ML-Agents environment was successfully trained using reinforcement learning.

However, due to a compatibility issue between PyTorch, ML-Agents version, and pip dependencies at the time, the final ONNX export file was not generated correctly.

Despite this, the training process itself ran successfully, and the agent learned and improved behavior during training episodes.

Author

Computer Science Student — Unity & AI Portfolio Project

About

Unity ML-Agents reinforcement learning project where an AI agent learns behavior through reward-based training.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages