In ./n-body-simulation
I do some fun simulations of (potentially pretty large) gravitational systems with classical non-relativistc mechanics. I use TensorFlow to accelerate the simulation.
In ./reinforcment-learning
I am currently working on training a little reinforcement learning agent that can perform some maneuvers flying around in graviational systems. I am using the TensorFlow-Agents library there. Previously I built the "gym"-environment based on my works from ./n-body-simulation
, but then I decided to separate the two things. Building the RL-approach on top of the simulation would yield unnecessairy loads for computing the trajectories, which wouldn't even be realistic. I decided to rely on known data here and focus only on the RL stuff. Learning an agent, that can perform full maneuvers etc. seems to be very costly and time intensive (Sullivan & Bosanac, 2020; Kolosa, 2019). The presented approach therefore primarily presents a working concept for an environment implementation in TF-Agents.
The numpy.bool
dtype is deprecated. Yet standard installations of TensorFlow (v2.10) and tf-Agents (v0.14) for Windows (GPU) using a conda-pip mix (sorry, I know, I should switch) yields to a compatibility issue because there is a leftover np.bool
in the typing submodule of tf-Agents. As far as I have tested it, it is save to simply remove the np.bool
entry or replace it with standard python bool
.