SauceCat / PDPbox

python partial dependence plot toolbox
http://pdpbox.readthedocs.io/en/latest/
MIT License
840 stars 129 forks source link

Error: 'PDPIsolate' object has no attribute 'pdp_isolate' #61

Closed Sanchita-P closed 3 years ago

Sanchita-P commented 4 years ago

Hi,

I am unable to successfully plot the pdp. Find below the code being used -

feat_name = 'avg_albumin'

x_test_pdp = x_test[x_test[feat_name].notnull()] #Did this to remove nulls since pdp cant take null values

pdp_data = pdp.pdp_isolate(model=best_gbm, dataset=x_test_pdp, model_features=cols_best_rfe, feature=feat_name)

# plot it
pdp.pdp_plot(pdp_data, feat_name)
plt.show()

The error statement is- 'PDPIsolate' object has no attribute 'pdp_isolate'.

It would be great if you could help me out with this. Thanks! @doctorperceptron @SauceCat