I am working on a project where I am using chaos theory to check if chaos is there in non-linear time series and use it for a neural network model. We need two parameters for finding chaos (using Lyapunov's exponent): l (lag), and m (embedding dimension). I am getting lag value using gretl. However, I am unable to find the method to find the embedding dimension in R/Python. Also, I can't find the method of finding Lyapunov's exponent in R/Python. I don't know Matlab. Can I get some help here? Thank you.