Skip to content

Commit

Permalink
Fix plots
Browse files Browse the repository at this point in the history
Signed-off-by: Antoni Baum <antoni.baum@protonmail.com>
  • Loading branch information
Yard1 committed Mar 18, 2023
1 parent 8e8e7ce commit cfc1ef3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions pycaret/internal/pycaret_experiment/supervised_experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -4286,7 +4286,11 @@ def pdp(show: bool = True):

try:
# interpret>=0.3.1
pdp = PartialDependence(model=model, data=test_X)
pdp = PartialDependence(
model=model,
data=test_X.to_numpy(),
feature_names=list(test_X.columns),
)
except TypeError:
try:
pdp = PartialDependence(
Expand Down Expand Up @@ -4314,7 +4318,11 @@ def msa(show: bool = True):

try:
# interpret>=0.3.1
msa = MorrisSensitivity(model=model, data=test_X)
msa = MorrisSensitivity(
model=model,
data=test_X.to_numpy(),
feature_names=list(test_X.columns),
)
except TypeError:
try:
msa = MorrisSensitivity(
Expand Down

0 comments on commit cfc1ef3

Please sign in to comment.