Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Apply data functions and transformations on python

Discussion in 'ML-Agents' started by TheJarmanitor, Nov 1, 2021.

  1. TheJarmanitor

    TheJarmanitor

    Joined:
    Mar 18, 2018
    Posts:
    20
    This is going to be weird to explain, so sorry in advanced

    I want to apply complex mathematical functions and transformations on the observations i get on unity, so i can use them to make decisions. problem is that C# is not good or convenient for making these functions, so i want to get the observations in python, apply various functions and put the outputs in unity so i can use them again. How would i go on making this?

    I've read about custom sidechannels and that sounds like the way to go, but the example has been hard to understand so i'm a bit lost.

    Any kind of help or comment is greatly appreciated
     
  2. gft-ai

    gft-ai

    Joined:
    Jan 12, 2021
    Posts:
    44
    By the sound of it what you want to use is the low level API to trigger the training from the python side - where you can also implement custom models if you wish. The side channels are also part of that.

    I don’t think there is a way where you can pull the observations to python and then back to unity to trigger the training in the Unity editor though. Maybe some Unity wizard could?

    Hope this helped.

    Good luck!