У меня много образцов (y_i, (a_i, b_i, c_i))
, где y
, как предполагается, изменяется в некоторой степени как многочлен от a,b,c
. Например, для заданного набора данных и степени 2 я мог бы создать модель
y = a^2 + 2ab - 3cb + c^2 +.5ac
Это может быть сделано с использованием наименьших квадратов и является небольшим расширением процедуры numpy polyfit. Существует ли стандартная реализация где-то в экосистеме Python?