I created a program with a friend that should approximate a vector, the input data being some points from that vector. My friend wrote a line of code that i cannot understand, and it is malfunctioning:
model = make_pipeline(PolynomialFeatures(degree), RidgeCV(alphas=ridge_alpha,normalize=True,cv=5))
I tried executing this line of code, but it resulted in an error:
C:UsersUSEROneDriveDesktopprogrammingpythonvector approximation> & "c:/Users/USER/OneDrive/Desktop/programming/python/vector approximation/.venv/Scripts/python.exe" "c:/Users/USER/OneDrive/Desktop/programming/python/vector approximation/file.py"
50
Traceback (most recent call last):
File "c:UsersUSEROneDriveDesktopprogrammingpythonvector approximationfile.py", line 78, in <module>
model = make_pipeline(PolynomialFeatures(degree), RidgeCV(alphas=ridge_alpha,normalize=True,cv=5))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: _BaseRidgeCV.__init__() got an unexpected keyword argument 'normalize'
How to solve this problem?
4