nslyubaykin / relax Goto Github PK
View Code? Open in Web Editor NEWReLAx - Reinforcement Learning Applications Library
License: MIT License
ReLAx - Reinforcement Learning Applications Library
License: MIT License
Hello Nikita,
first of all I would like to acknowledge that this is probably the cleanest ml code I have srsly ever seen. Thank you for that!
So I am using FRWR and Random Shooting and I have a question about the horizon.
I am running on limited resources in real-time (gtx1060+win+cuda, overall I would say RS is quite fast, CEM slow, FRWR a bit slow) and I see that the length of the horizon scales worse in regards to the overall performance. So I experimented to lower the iterations/s and reduced f.i. ensemble size to 3, candidate_sequences = 300, horizon = 3-5. So I thought, it would be nicer, to spread the sampling into the future by 2^x (so horizon[1,2,4,8,16] ), maybe also weighting the later even higher - and discarding the intermediate steps for calculations of candidates. So I could span a bigger time horizon with the same number of steps. (Maybe this approach is already used in the mpc community, but I am fairly new to it, so I don't know.)
I see you have a very interesting scheduler system, but I am confused how to initialize an exponential scheduler that lags the horizon in its tensor dimensions. I made a drawing for this.
mpc horizon mod
Update: I tried in the data utils get_next_lag_obs
lag_obs_split = np.split(lag_obs,
indices_or_sections=1+nlags**2, # pow or =1+int(nlags**1.25)
axis=concat_axis)
I am also thinking to convert all lists to np.arrays and jax jit-ing the buffers (and trying hugginface accelerate), but not sure
Also a short quesstion, would it be possible to replace RS/CEM by (NN-approximated) MPPI)? Because they say so. (A combination of MPPI/FRWR)
Anyways, thank you for your beautiful and very instructive codebase! (I am wondering at what / what instance taught this way of ('pure pythonic'?) coding?)
Best
Lee
Living Computation Foundation Member
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.