Changed pkgutil.find_loader with importlib.util.find_spec as find_loader is deprecated and will be removed in python 3.14.
Fixed incorrect check of pretrained status in DualPredictor (and MeanVarPredictor). Wrapped models need to have their is_trained status set to True to consider that DualPredictor (or MeanVarPredictor) is pretrained.
pkgutil.find_loader
withimportlib.util.find_spec
asfind_loader
is deprecated and will be removed in python 3.14.is_trained
status set to True to consider that DualPredictor (or MeanVarPredictor) is pretrained.