fuzzyclust.models.make_switching_lines#
- fuzzyclust.models.make_switching_lines(n_samples=200, slopes=(1.0, -1.0), intercepts=(0.0, 1.0), noise=0.1, x_range=(-2.0, 2.0), random_state=None)[source]#
Switching regression data: samples of several lines over a common input range.
Every sample \((x_k, y_k)\) belongs to one of \(c\) lines \(y = a_i x + b_i\), chosen at random; because the lines share the input interval they cross each other and cannot be separated by clustering the inputs alone. This is the setting of fuzzy c-regression models.
- Parameters:
- Returns:
Examples using fuzzyclust.models.make_switching_lines#
Fuzzy c-regression models: switching regression with crossing lines
Fuzzy c-regression models: switching regression with crossing lines