Skip to content
Advertisement

Error while doing SVR for multiple outputs

Trying to do SVR for multiple outputs. Started by hyper-parameter tuning which worked for me. Now I want to create the model using the optimum parameters but I am getting an error. How to fix this?

JavaScript

Output:

JavaScript

Trying to create a model using the output:

JavaScript

Error:

JavaScript

Advertisement

Answer

Please consult the MultiOutputRegressor docs.

The regressor you got back is the model. It is not a method, but it does offer a bunch of fun methods that you can call, such as .fit(), .predict(), and .score().

You are trying to specify kernel and a few other parameters. It appears you wanted to offer those to SVR(), at the top of your code.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement