Update plot_util.py

`np.int` has been deprecated, suggest changing to `np.int64`
This commit is contained in:
Demelza Robinson 2023-05-26 09:34:14 +12:00 committed by GitHub
parent 9ec3e50e3b
commit d2bca8e1b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,7 +72,7 @@ def helper_predict_with_model(self, Xgrid, plot_raw, apply_link, percentiles, wh
if 'Y_metadata' not in predict_kw:
predict_kw['Y_metadata'] = {}
if 'output_index' not in predict_kw['Y_metadata']:
predict_kw['Y_metadata']['output_index'] = Xgrid[:,-1:].astype(np.int)
predict_kw['Y_metadata']['output_index'] = Xgrid[:,-1:].astype(np.int64)
mu, _ = self.predict(Xgrid, **predict_kw)