We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4abbbe7 commit ebc34eaCopy full SHA for ebc34ea
src/trustyai/utils/tyrus.py
@@ -129,9 +129,11 @@ def __init__(
129
remain there after execution is finished.
130
"""
131
self.model = model
132
- self.inputs = one_input_convert(inputs)
133
- self.outputs = one_output_convert(outputs)
134
- self.background = many_inputs_convert(background)
+ self.inputs = one_input_convert(inputs, feature_names=model.feature_names)
+ self.outputs = one_output_convert(outputs, names=model.output_names)
+ self.background = many_inputs_convert(
135
+ background, feature_names=model.feature_names
136
+ )
137
self.fraction_counterfactuals_to_display = max(
138
0, min(1, kwargs.get("fraction_counterfactuals_to_display", 0.1))
139
)
0 commit comments