bgreenwell / pdp

A general framework for constructing partial dependence (i.e., marginal effect) plots from various types machine learning models in R.
http://bgreenwell.github.io/pdp
91 stars 12 forks source link

Throw warning when plotting "partial" object with a "yhat.id" column and > 1 features #112

Open bgreenwell opened 3 years ago

bgreenwell commented 3 years ago

The following should throw a warning for users to plot the results manually

pd <- partial(rfo, pred.var = c("age", "pclass", "sex"), pred.fun = pfun, train = t3, progress = "text")
plotPartial(pd)  # useless plot