File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 22import scipy .sparse as sp
33
44import Orange .data
5+ from Orange .data .table import DomainTransformationError
56from Orange .statistics import distribution , basic_stats
67from Orange .util import Reprable
78from .transformation import Transformation , Lookup
@@ -202,8 +203,12 @@ def __call__(self, data):
202203 data = data .transform (
203204 Orange .data .Domain (domain .attributes , None , domain .metas )
204205 )
205- predicted = self .model (data [mask ])
206- column [mask ] = predicted
206+ try :
207+ column [mask ] = self .model (data [mask ])
208+ except DomainTransformationError :
209+ # owpredictions showed error when imputing target using a Model
210+ # based imputer (owpredictions removes the target before predicing)
211+ pass
207212 return column
208213
209214 def transform (self , c ):
You can’t perform that action at this time.
0 commit comments