Use the templates repository for boilerplate code.
X
, and column names x
and y
, will fit a polynomial of a given degree to X[x]
, X[y]
.X
and a traget vector y, returns a list of booleans indicating which columns of X
should receive a relevant regression coefficient.curve_predict(f, X_train, y_train, X_test)
, which given training data X_train, y_train
and a function f
performs a least-squares fit using scipy
and predicts the values for X_test
.