Here is a tool for nonlinear approximation of the retention rate using a model containing 3 elements: the main trend function, offsets for patches and weekly seasonality. Run the first notebook's block, then run the second block and use the UI to fill in the settings. Finally, run the second block to start the learning process and display the results.
You can find all the details in my article.
Dmitry Baltin, 2023