2012-01-25 187 views

回答

1

也許,可以使用Numpy的numpy.piecewise()工具。
更詳細的描述如下所示: How to apply piecewise linear fit in Python?

如果這不是需要什麼,然後你可以或許找到這些問題的一些有用的信息: https://datascience.stackexchange.com/questions/8266/is-there-a-library-that-would-perform-segmented-linear-regression-in-python

這裏:
https://datascience.stackexchange.com/questions/8457/python-library-for-segmented-regression-a-k-a-piecewise-regression