seppedelanghe / e-builder Goto Github PK
View Code? Open in Web Editor NEWPython based physics environment builder. Mainly build to create custom environments to train reinforcement learning models.
License: GNU Affero General Public License v3.0
Python based physics environment builder. Mainly build to create custom environments to train reinforcement learning models.
License: GNU Affero General Public License v3.0
Add the code from examples edge.py
and bounce.py
into the Env
class.
Make it easy to creata a closed off environment (no exceeding of borders), instead of having to write custom code in the update
callback.
When the FPS param in Env
is set to -1, the env should try and run at a 'as high as possible' FPS instead of a fixed FPS.
This is probable possible by just dropping the pygame.time.Clock()
.
PyGame (and this project) does not use the GPU for graphics rendering, this makes it not possible to have thousands of objects on the screen at a time.
A version that uses OpenGL (in the distant future) would be great for more graphical demanding use cases.
However, this should be a new repo based on this one.
Because for training AI models, the GPU is used and we don't want to take away any (or too much) of it's available resources to rendering the result.
Add an option to Env
to disable rendering in the environment.
The environment should still execute all actions, except graphical drawing.
This would be useful for faster processing of the physics and in the getting the results and training the AI model.
Replace the current math
actions like pow
, sqrt
, sin
, etc. with it's NumPy equivalents.
This also means replacing all the python float
and int
variables with the correct numpy data types.
These changed need to be made without breaking the pygame drawing ofcourse.
PyGame could have support for using numpy data types directly since it uses them for pygame.surfarray
.
Tests will be logged bellow to find the best approach for this conversion.
Change to be NumPy version:
int
, float
)sqrt
, sin
, etc.)NOT to be changed:
This should improve the compatibility with AI frameworks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.