This is a simple task of finding a piecewise linear function that best fits a set of observations. In other words, given a set of points, write a simple python function that will estimate the nodes. Points and nodes are shown in gray and red in the attached image ([login to view URL]).
The chosen algorithm should have acceptable accuracy where all the nodes fall within the bounds of the points; and take no more than 80ms to execute. You are free to use any speed optimizations such as numpy vectorization, numba, etc.
Sample data and starter code is provided. [login to view URL] contains points and nodes_X contains nodes.
12 freelancers estão ofertando em média $23 nesse trabalho
Hello? How are you? Thanks for posting this job. I am a Senior Python developer with 7+ years. I have been doing this kind of python projects many times. Please let me know. Best Regards
I would deliver to you this work within your deadline if assigned. I am well acquainted with numba and numpy. I will also extract for you all the statistical data like R-squared, among others if need be.