pwlf (conda): A library for fitting continuous piecewise linear functions to data. Just specify the number of line segments you desire and provide the data.
Keywords: numpy|piecewise-linear|piecewise-regression|python|scipy|segment|segmented|tensorflow