# Help choosing analytics algorithm

**URL:** <https://forum.knime.com/t/help-choosing-analytics-algorithm/11404>\
**Category:** KNIME Analytics Platform\
**Created:** [June 27, 2018, 3:02pm UTC](https://forum.knime.com/t/help-choosing-analytics-algorithm/11404 "2018-06-27T15:02:52Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [June 28, 2018, 4:15pm UTC](https://forum.knime.com/t/help-choosing-analytics-algorithm/11404/3 "2018-06-28T16:15:11Z")

</div>

I think you could do two things. You could treat your outlier group as label/target (1/0 or TRUE/FALSE) and the rest of the data as explaining variables. You would have to remove the time column since this ‘leaks’ the information you want to find. You could then use an algorithm like **Random Forest Learner** \*1) that also gives you a list of the most important variables, the ones that make the outliers the outlier compared to the regular cases.

You could also just use the time for each transaction and try to directly predict it (but would have to remove the outlier 1/0 marker). Again you could look for the most important variables.

As a preparation you could try to use a correlation matrix to see which variables have a high correlation towards the length of the operation:

> [@How to identify the Top 100 features selected from MLP model](https://forum.knime.com/t/how-to-identify-the-top-100-features-selected-from-mlp-model/11371/2):
>
> I was thinking about feeding the prediction of the model back to a correlation node (linear in this case) and then use the absolute value of the correlation to determine the strongest correlations towards the predicted Target. The data is from a Kaggle competition ([https://www.kaggle.com/c/bnp-paribas-cardif-claims-management](https://www.kaggle.com/c/bnp-paribas-cardif-claims-management)) with some transformations and only 500 random cases. So the numbers are just there to demonstrate the nodes. The calculation can be quite costly. [kn\_example\_mlp\_m…](https://forum-cdn.knime.com/uploads/default/original/2X/c/ca7a9d1e22e409640a7598282fa0903dd1525180.knwf)

If you are looking for easy to read and interpret rules you could try to start with a simple Decision tree. You can see if the rules that produce the highest scores tell you something. Depending on your case this approach might not be enough or there might not be a clear differentiation. Always be careful if the results are somehow too good to be true:

> [@Looking for options to evaluate a decision tree](https://forum.knime.com/t/looking-for-options-to-evaluate-a-decision-tree/11384/2):
>
> One ‘brutal’ way could be to convert the decision tree rules into SQL and then use the SQL code. Or use the ruleset to make some kind of If then rules. Not very elegant I have to admit. [kn\_example\_decision\_tree.knwf](https://forum-cdn.knime.com/uploads/default/original/2X/1/1132014ad9feb823a8ee8e8d5c9ce19ad8c13ba2.knwf) (510.8 KB)

A good metric to determine the quality of you model ist Gini or AUC for 1/0 predictions and Root-mean-square deviation (RMSE) for numeric predictions.

\*1)  
[https://nodepit.com/workflow/public-server.knime.com%3A80%2F04\_Analytics%2F13\_Meta\_Learning%2F02\_Learning\_a\_Random\_Forest](https://nodepit.com/workflow/public-server.knime.com%3A80%2F04_Analytics%2F13_Meta_Learning%2F02_Learning_a_Random_Forest)

---

_[View the full topic](https://forum.knime.com/t/help-choosing-analytics-algorithm/11404)._
