Can't create Partial Dependence Plot

1 view (last 30 days)
James McBrearty
James McBrearty on 13 May 2022
Hi,
I am currently working in have 2022a, and I have an App that creates Regression/Classification Models. I am trying to show how the target depends on some generated features, so I want to plot some Partial Dependence graphs, however, I am unable to do this. The Model I have is a RegressionLinear model and looks like this:
If I try and use the command line to run a Partial Dependence Plot, it doesn't obtain any features:
If I try and call this the way that the documentation describes (plotPartialDependence(Mdl,1)), I get this:
Is there anything that I'm doing wrong, it does say that RegressionLinear is allowed for PartialDependence plots, so I'm confused.
Thanks,
James

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by