There are use cases where we would like to inspect a model but we have no observed data at hand. For example if the model itself is a ensemble of models, the observed values are not easily available and we would still like to see the total effect of one feature in the form of the partial dependence plot as well as the average prediction per feature.
Proposition
Allow y_obs to be None. In that case only plot average of predicted as well as the histogram of the feature.
There are use cases where we would like to inspect a model but we have no observed data at hand. For example if the model itself is a ensemble of models, the observed values are not easily available and we would still like to see the total effect of one feature in the form of the partial dependence plot as well as the average prediction per feature.
Proposition
Allow y_obs to be None. In that case only plot average of predicted as well as the histogram of the feature.