I’m working on a project where I set Grasshopper as an OpenAI Gym Environment to train a system to learn how to place modules in a 3D Grid in a way that maximizes a series of goals. For this I use many simple GHPython components where I update a 3d shaped array of Integers according to the action taken by an action inside of an anemone loop.
The thing is that, as iterations grow, my definition seems to become slower. And i’m not even dealing with geometry inside of the loop, the only thing that is done is to get the array at the last iteration, get the action taken by the agent, update the array accordingly, and count the number of occurences for specific values in the array. So complexity of the data shouldn’t be growing.
I’m also using the sc.sticky to store the stats of the previous iterations (To avoid wires, mainly). Is that problematic in any way?
Thanks! If I haven’t been clear, im happy to provide additional info.