Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

738 text lime in dashboard returns an error #799

Merged
merged 16 commits into from
Jun 18, 2024
Merged
2 changes: 1 addition & 1 deletion dianna/dashboard/_shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def _get_params(method: str):

elif method == 'LIME':
return {
'rand_state': st.number_input('Random state', value=2),
'random_state': st.number_input('Random state', value=2),
}

else:
Expand Down
2 changes: 2 additions & 0 deletions dianna/methods/lime_timeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def __init__(
verbose=False,
preprocess_function=None,
feature_selection='auto',
random_state = None
):
"""Initializes Lime explainer for timeseries.

Expand All @@ -32,6 +33,7 @@ def __init__(
feature_selection (str): Feature selection method to be used by explainer.
preprocess_function (callable, optional): Function to preprocess the time series data before passing it
to the explainer. Defaults to None.
random_state (int or np.RandomState, optional): seed or random state. Unused variable for current ts method
"""

def kernel(d):
Expand Down
Loading