Closed Jalagarto closed 1 year ago
Hi @Jalagarto, I'm not quite sure I understand what you mean by model rules. Could you please help me understand what you'd expect to get?
@Jalagarto are you looking for a local explainer, which explains how each decision on different time steps is made?
Closed due to lack of response.
Hi @Jalagarto, I'm not quite sure I understand what you mean by model rules. Could you please help me understand what you'd expect to get?
Hi. Sorry for the late reply @oguiza. I didn't see the notification. So the same idea of anchors (where it explains what values of what variables had more impact in the prediction), but for a set of points. Similar to forests decision rules or global surrogate models. This way I could recommend which values of the which variables would maximize the chances to get a desired prediction. I.e., windspeed > 6m/s would maximaze the chances of a windturbine's reset to be successful.
This is not a measure for one prediction point, but a more general rule.
I have sorted it out by calculating and analyzing the KDE, MLE, quantiles etc. of success and failure (Boolean values of target variable) subsets of the most important feature for different subsets (test, train, all, valid, or subset of test data points). When doing that I could also play with the time window I want to analyse.
Thanks for the great work. It's really impressive and I am enjoying a lot fine tuning the TS classification model.
@Jalagarto are you looking for a local explainer, which explains how each decision on different time steps is made?
No @zmce2018, I need global explanations, so shapely values won't make it. I think I would need something like a global surrogate, with the advantages of Deep TS Classification (since forests seem to be overall less accurate).
Thx for your answer
Is there any way of achieving "XCMPlus" to show model rules?
Anchors rules, shape values or LIME wouldn't work for me, since they show rules only for one value. Maybe if I could apply it to multiple values at the same time would be great, so I can train one model and get rules for different set of points. Example:
rules = get_rules(Xtrain['new instances'])
and
learn.show_gradcam(xb[0], yb[0])
but I need a set of rules for recommendations of which variables need to be changedsomething similar of what Autogluon
predictor.print_interpretable_rules(model_name='RuleFit')
does but for Time Series Classification and able to be used for multiple instances at the same time (this could be actually be done by averaging results of all instances with this characteristics, so it's not a big deal for me to do it).I would be happy to help developing a solution, since it is in my own benefit.
Thanks a lot for the good work!