Skip to content

Commit f48cb7c

Browse files
committed
Deprecation warning when predict uses predict_storage fallback
1 parent 8609be4 commit f48cb7c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Orange/base.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,9 @@ def predict(self, X):
229229
if type(self).predict_storage is Model.predict_storage:
230230
raise TypeError("Descendants of Model must overload method predict")
231231
else:
232+
warnings.warn("Automatic fallback to predict_storage is deprecated. "
233+
"Models will need to implement predict.",
234+
OrangeDeprecationWarning)
232235
Y = np.zeros((len(X), len(self.domain.class_vars)))
233236
Y[:] = np.nan
234237
table = Table(self.domain, X, Y)

0 commit comments

Comments
 (0)