training_ml_control.plots#

Module Contents#

Functions#

plot_cart_results

As its name suggests, this function plots the results of a run of the cart environment.

plot_inverted_pendulum_results

As its name suggests, this function plots the results of a run of the inverted pendulum environment.

animate_cart_simulation

Animated plots of cart simulation.

animate_inverted_pendulum_simulation

Animated plots of inverted pendulum simulation.

animate_full_inverted_pendulum_simulation

Animated plots of full inverted pendulum simulation with angle and position.

animate_pendulum_simulation

Animated plots of pendulum simulation.

Data#

__all__

API#

training_ml_control.plots.__all__#

[‘plot_cart_results’, ‘plot_inverted_pendulum_results’, ‘animate_cart_simulation’, ‘animate_inverted…

training_ml_control.plots.plot_cart_results(T: numpy.typing.NDArray, reference: float, observations: numpy.typing.NDArray, actions: numpy.typing.NDArray) None[source]#

As its name suggests, this function plots the results of a run of the cart environment.

training_ml_control.plots.plot_inverted_pendulum_results(T: numpy.typing.NDArray, reference: float, observations: numpy.typing.NDArray, actions: numpy.typing.NDArray) None[source]#

As its name suggests, this function plots the results of a run of the inverted pendulum environment.

training_ml_control.plots.animate_cart_simulation(data: do_mpc.data.Data | do_mpc.data.MPCData, *, reference: float | None = None) IPython.display.HTML[source]#

Animated plots of cart simulation.

training_ml_control.plots.animate_inverted_pendulum_simulation(data: do_mpc.data.Data | do_mpc.data.MPCData) IPython.display.HTML[source]#

Animated plots of inverted pendulum simulation.

training_ml_control.plots.animate_full_inverted_pendulum_simulation(data: do_mpc.data.Data | do_mpc.data.MPCData) IPython.display.HTML[source]#

Animated plots of full inverted pendulum simulation with angle and position.

training_ml_control.plots.animate_pendulum_simulation(data: do_mpc.data.Data | do_mpc.data.MPCData) IPython.display.HTML[source]#

Animated plots of pendulum simulation.