Skip to content

Commit

Permalink
Merge pull request #61 from SURGroup/bugfix/DimensionReduction
Browse files Browse the repository at this point in the history
Updated skl_str when using a scikit-learn object
  • Loading branch information
mds2120 authored Dec 17, 2020
2 parents bfd4505 + 0f62884 commit dd9f908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UQpy/DimensionReduction.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def __init__(self, distance_method=None, kernel_method=None, interp_object=None,
raise TypeError('UQpy: A callable kernel object must be provided.')

# Interpolation.
skl_str = "<class 'sklearn.gaussian_process.gpr.GaussianProcessRegressor'>"
skl_str = "<class 'sklearn.gaussian_process._gpr.GaussianProcessRegressor'>"
self.skl = str(type(interp_object))==skl_str
if interp_object is not None:
if callable(interp_object) or isinstance(interp_object, Kriging) or self.skl:
Expand Down

0 comments on commit dd9f908

Please sign in to comment.