---
title: "Out of the Forest: Making Machine Learning Knowledge Navigable"
description: Machine learning has more methods than ever. Learn how a knowledge graph with typed relationships helps you choose the right one – with two practical walks.
image: https://alberto-desiderio.net/hubfs/forest-blog-small.jpg
---

[Skip to content](https://alberto-desiderio.net/blog-alberto-desiderio/out-of-the-forest-making-machine-learning-knowledge-navigable#main-content)

[![Screenshot 2024-02-18 at 13.00.10](https://alberto-desiderio.net/hubfs/Screenshot%202024-02-18%20at%2013.00.10.svg)](https://alberto-desiderio.net/)

- [Home](https://alberto-desiderio.net/)
- [Blog](https://alberto-desiderio.net/blog-alberto-desiderio)
- [Links](https://alberto-desiderio.net/links)
- [About](https://alberto-desiderio.net/en-gb/about)

Open main navigation

Close main navigation

- [Home](https://alberto-desiderio.net/)
- [Blog](https://alberto-desiderio.net/blog-alberto-desiderio)
- [Links](https://alberto-desiderio.net/links)
- [About](https://alberto-desiderio.net/en-gb/about)

 November 2026

# Out of the Forest: Making Machine Learning Knowledge Navigable

![Picture of Alberto Desiderio](https://alberto-desiderio.net/hs-fs/hubfs/IMG_0544%202.png?width=50&name=IMG_0544%202.png) [Alberto Desiderio](https://alberto-desiderio.net/blog-alberto-desiderio/author/alberto-desiderio)

Share: [linkedin-in icon](http://www.linkedin.com/shareArticle?mini=true&url=https://alberto-desiderio.net/blog-alberto-desiderio/out-of-the-forest-making-machine-learning-knowledge-navigable)

*A practical guide from a forest of methods to a knowledge graph*

## Introduction: The Forest of Methods

Machine learning offers more methods than ever. For a single regression problem, you can choose from GLMs, GAMs, tree ensembles, kernel methods and neural networks. Each comes with its own strengths, limitations and variants. And new ones appear every year.

Experience helps you narrow the choice quickly. But experience also creates habits. You reach for the method that worked last time. A better fit may sit right next to it.

This article shows a different way to organise machine learning knowledge: as a knowledge graph. You will see where tables reach their limits, how typed relationships add structure, and how two practical questions can be answered by walking through the graph. At the end, you will see how the graph becomes a small web application.

## The Forest: Where Tables Reach Their Limits

The natural first step is a document with tables. One table per task, one row per method, columns for strengths and weaknesses.

This works for a few dozen methods. Beyond that, it becomes hard to maintain. Take gradient boosting. It can solve regression, classification and forecasting problems, so it needs a row in all three tables. Its traits – needs tuning, handles mixed tabular data, limited explainability – are written three times. Add a new limitation later, and you have to remember to add it in three places. Miss one, and your tables contradict each other.

Every structure also favours some questions over others. Organise by task, and questions about data types become awkward. Organise by model family, and the business view disappears.

The reason is simple: machine learning knowledge is highly interconnected. The figure below shows only one type of relationship, called 'supports'. It links a method to a task.

A task is the kind of answer you want from your data:

- **Regression:** predict a number, such as the expected cost of a claim.
- **Classification:** predict a category, such as whether a policy will lapse.
- **Forecasting:** predict future values of a time series.

'Gradient boosting *supports* regression' means: gradient boosting can produce the kind of answer regression asks for.

![neo4j-forest](https://alberto-desiderio.net/hs-fs/hubfs/neo4j-forest.png?width=3040&height=1078&name=neo4j-forest.png)

Each line means "this method can solve this task". 89 methods, 12 tasks, 173 connections – and only one type of relationship.

Showing everything at once does not answer a question. What you need is a way to find a path through it.

## One Tree at a Time: Finding Structure

Start with a single method. Fittingly, let's take a Random Forest.

![neo4j-random-forest-v2](https://alberto-desiderio.net/hs-fs/hubfs/neo4j-random-forest-v2.png?width=3040&height=1078&name=neo4j-random-forest-v2.png)

Up close, the picture is clear:

- Random Forest supports regression and classification, and with some adaptation anomaly detection.
- It is suited for tabular data.
- It specialises bagging and belongs to the ensemble family.
- It is regularised by bootstrap aggregation, its main protection against overfitting. Each tree is trained on a random sample of the rows and sees only a random subset of the features at each split. Averaging many such trees keeps the forest from memorising the training data. Limiting tree depth (tree pruning) is a secondary lever.
- It is sensitive to random sampling. Because of the randomness above, training twice can give slightly different results. Fix the random seed if you need reproducible results, and use more trees for more stable ones.

The value lies in the relationships. Each one has its own meaning. In a table, these facts become columns of equal weight. In a property graph, relationships are first-class citizens. They have a type, a direction and their own attributes.

In this graph, each relationship also carries a suitability score from 0 to 1, a confidence level and a short explanation. A score of 1.0 means textbook use. Around 0.6 means usable with caveats. Random Forest's link to tabular data, for example, has a suitability of 0.95 and the note "strong general-purpose structured-data model".

Note: relational databases can handle many-to-many relationships too. The difference is that a graph makes the relationship itself the object you follow, filter and explain.

Typed relationships act as trail markers. They point in every direction, so you don't have to decide upfront where your search starts.

## Finding a Path: Two Walks Through the Forest

Let's test this with two questions from practice.

### Walk 1: Start from a business problem

You want to predict insurance claim severity. The effects in your data are likely non-linear. Interpretability matters too.

Besides methods, the graph contains typical business use cases from insurance and investments, such as claim severity, policy lapse or return forecasting. A use case is not a method. It translates a business question into the terms of the graph: claim severity is linked to the task regression and to the data type tabular.

So start at the use case. Follow its two links, then follow the relationships to the methods that reach both. The usual candidates appear: GLM, Random Forest and Gradient Boosting. A fourth one appears as well:

![neo4j-claim-severity-candidates](https://alberto-desiderio.net/hs-fs/hubfs/neo4j-claim-severity-candidates.png?width=3040&height=1078&name=neo4j-claim-severity-candidates.png)

Compare them on the dimensions that matter here:

| Method | Learns curved effects automatically? | Explainability | Overfitting risk | Data requirement |
| --- | --- | --- | --- | --- |
| GLM | No – you build them yourself, e.g. age bands | 5 / 5 | Low | 2 / 5 |
| **Generalized Additive Model** | **Yes, as smooth curves per feature** | **4 / 5** | Medium | 2 / 5 |
| Random Forest | Yes | 3 / 5 | Low | 3 / 5 |
| Gradient Boosting | Yes | 3 / 5 | Medium | 3 / 5 |

**GLM.** A GLM is linear in its coefficients. The effect of each feature is "coefficient × feature". It can still capture curves, but you have to build them yourself as extra features: age bands, a squared term, the logarithm of the sum insured. Pricing GLMs with banded rating factors do exactly that. You decide the shape upfront. The GLM's entry in the graph advises against it for "curved effects that you do not want to build by hand". It points to two alternatives: gradient boosting or a Generalized Additive Model.

**Generalized Additive Model.** A GAM replaces "coefficient × feature" with a smooth curve that the model learns from the data:

- GLM: link(expected cost) = b0 + b1 × age + b2 × vehicle value + …
- GAM: link(expected cost) = b0 + f1(age) + f2(vehicle value) + …

Each f is a flexible curve, kept smooth by a penalty. The link function and the distribution stay the same as in the GLM, which is why the graph shows the GAM as a specialisation of the GLM. The model stays additive: you can plot each curve and read it, for example how claim cost changes with driver age. Its explainability note reads: "Each smooth can be plotted as a partial effect, so the model stays additive and inspectable even when it is nonlinear."

**Random Forest and Gradient Boosting.** Both learn curved effects and interactions on their own. But their prediction is the average or sum of hundreds of trees, so there is no single set of rules to read. You explain them after the fact, with tools such as SHAP or partial dependence plots. These are useful, but they approximate the model rather than show it. That matters when a regulator or a pricing committee wants to see the tariff logic directly.

You see the trade-off before you write any code.

### Walk 2: Start from a weakness

Your dataset contains many correlated features. Which methods suffer from this, and what are your options?

This walk starts at a problem in the data, not at a use case or a method.

Correlated features do not hurt all methods equally:

- **Coefficient-based methods** such as linear regression, GLMs and logistic regression suffer most. If two features move together, the model cannot tell which one drives the effect. Coefficients become unstable and can even flip sign between samples. Predictions often stay reasonable, but the interpretation breaks – a real problem for a pricing model.
- **Tree-based methods** are hardly affected in their predictions. Their feature importance, however, is split between the correlated features, so each one looks less important than it is.

Your options, roughly in the order you would try them:

1. Drop one of the features, based on domain knowledge. Often the simplest step.
2. Combine them, for example into a ratio or with principal component analysis.
3. Use regularisation. Ridge (L2) keeps all features and shrinks their coefficients together, which gives stable results. Lasso (L1) keeps one feature of a correlated group and drops the others – useful for a short model, but which one it keeps can change from sample to sample. Elastic net combines both and is often a good practical default.

Where does the graph help? In the current graph, the knowledge about correlated features sits on the relationships to the L2 penalty. So that is where the walk starts. Look at the tabular regression methods it connects to:

![neo4j-l2-penalty](https://alberto-desiderio.net/hs-fs/hubfs/neo4j-l2-penalty.png?width=3040&height=1078&name=neo4j-l2-penalty.png)

The answer: the affected methods are the linear models, and each of them can be stabilised with a ridge penalty. The relationship notes say so explicitly:

- **Linear regression:** "Ridge penalties stabilize correlated features."
- **Penalised regression** (ridge, lasso, elastic net) connects to both L2 and L1. It is described as the method "for collinear or wide tables", with a caution: if lasso keeps switching between correlated columns, the selection is not a causal statement.

This walk also shows a limit. The weakness lives only in text, so you cannot yet ask the graph directly which methods suffer from correlated features. Modelling weaknesses and advantages as relationships of their own is a natural next step. Then the walk could start from the problem itself.

Two walks, two starting points, one map. With tables, you would need two separate views.

## Out of the Forest: From Graph to Application

A graph that needs a query language is a tool for specialists. A small application makes it accessible to a wider audience.

![architecture-v2](https://alberto-desiderio.net/hs-fs/hubfs/architecture-v2.png?width=3000&height=862&name=architecture-v2.png)

The setup has three steps:

- **Knowledge as text.** Every method, task and relationship, with its scores and explanations, lives in plain-text YAML files under version control. They are checked for errors before every load.
- **Knowledge graph.** The files are loaded into a graph database. **Neo4j** is the most widely used one. It stores data as nodes and relationships instead of tables, and its browser tool draws query results as interactive networks – the graph pictures in this article come from there. **Kuzu** is a lightweight alternative that runs inside the application itself, without a separate server. That makes it handy for offline work on a laptop.
- **Web application.** A small Python application, built with Streamlit, turns your choices into graph queries and shows the results.

Walk 1 now becomes a few choices in the Method Finder: regression, tabular, non-linear, explainability of at least 3.

![st-finder-nonlinear-v2](https://alberto-desiderio.net/hs-fs/hubfs/st-finder-nonlinear-v2.png?width=3000&height=2600&name=st-finder-nonlinear-v2.png)

The method profile then brings everything about one method onto a single page: family, ratings and the reasoning behind them, suitable tasks and data, regularisation options, uncertainty wrappers and sources of randomness.

![st-profile-gam](https://alberto-desiderio.net/hs-fs/hubfs/st-profile-gam.png?width=3000&height=2600&name=st-profile-gam.png)

The two views complement each other. The graph helps you explore and discover. The profile helps you understand and decide.

## Conclusion: Key Takeaways

The most useful shift is to think in relationships rather than tables. Instead of asking which columns a dataset needs, ask what kind of link connects two concepts: does one support the other, is it suited for it, or is it regularised by it? That single question adds more structure than any column design. It also helps to start from a question rather than from the full picture. A complete graph looks impressive but gives little guidance, so follow the relevant relationships and refine step by step. Along the way, make the reasoning explicit. A score is useful, but a score with a one-line explanation is far more useful, both for you and for your stakeholders. Finally, expect gaps. Mapping the knowledge shows what is still missing, such as weaknesses that so far only exist as text.

Whether you choose methods for your own projects or advise others, a map makes the choice transparent. The forest is still there. You just have a clearer way through it.

[Data science](https://alberto-desiderio.net/blog-alberto-desiderio/tag/data-science), [Linear Regression](https://alberto-desiderio.net/blog-alberto-desiderio/tag/linear-regression), [Random forest](https://alberto-desiderio.net/blog-alberto-desiderio/tag/random-forest)

## Related posts

[![](https://alberto-desiderio.net/hs-fs/hubfs/daniel-lloyd-blunk-fernandez-vrSKrUEZsDY-unsplash.jpg?height=200&name=daniel-lloyd-blunk-fernandez-vrSKrUEZsDY-unsplash.jpg)](https://alberto-desiderio.net/blog-alberto-desiderio/portfolio_analysis)

[Data science](https://alberto-desiderio.net/blog-alberto-desiderio/tag/data-science), [Monte Carlo Simulation](https://alberto-desiderio.net/blog-alberto-desiderio/tag/monte-carlo-simulation), [Financial Modelling](https://alberto-desiderio.net/blog-alberto-desiderio/tag/financial-modelling)

## [Mastering Portfolio Risk: Balancing Risk and Reward for Better Investment Outcomes](https://alberto-desiderio.net/blog-alberto-desiderio/portfolio_analysis)

![Picture of Alberto Desiderio](https://alberto-desiderio.net/hs-fs/hubfs/IMG_0544%202.png?width=50&name=IMG_0544%202.png) [Alberto Desiderio](https://alberto-desiderio.net/blog-alberto-desiderio/author/alberto-desiderio) 

 March 2025

Introduction: Why Portfolio Risk Matters Whether you are a seasoned investor or just starting out,...

[Read more](https://alberto-desiderio.net/blog-alberto-desiderio/portfolio_analysis)

[![](https://alberto-desiderio.net/hs-fs/hubfs/runner.jpeg?height=200&name=runner.jpeg)](https://alberto-desiderio.net/blog-alberto-desiderio/power_run)

[Running Performance](https://alberto-desiderio.net/blog-alberto-desiderio/tag/running-performance), [Endurance Training](https://alberto-desiderio.net/blog-alberto-desiderio/tag/endurance-training), [Running Efficiency](https://alberto-desiderio.net/blog-alberto-desiderio/tag/running-efficiency), [Running Power Metrics](https://alberto-desiderio.net/blog-alberto-desiderio/tag/running-power-metrics), [Running Analytics](https://alberto-desiderio.net/blog-alberto-desiderio/tag/running-analytics), [Running Economy Improvement](https://alberto-desiderio.net/blog-alberto-desiderio/tag/running-economy-improvement)

## [Boost Your Running Performance with Power Insights](https://alberto-desiderio.net/blog-alberto-desiderio/power_run)

![Picture of Alberto Desiderio](https://alberto-desiderio.net/hs-fs/hubfs/IMG_0544%202.png?width=50&name=IMG_0544%202.png) [Alberto Desiderio](https://alberto-desiderio.net/blog-alberto-desiderio/author/alberto-desiderio) 

 February 2025

Boost Your Running Performance with Power Insights Introduction Have you ever felt like you're...

[Read more](https://alberto-desiderio.net/blog-alberto-desiderio/power_run)

[![](https://alberto-desiderio.net/hs-fs/hubfs/brett-jordan-4aB1nGtD_Sg-unsplash.jpg?height=200&name=brett-jordan-4aB1nGtD_Sg-unsplash.jpg)](https://alberto-desiderio.net/blog-alberto-desiderio/bayes_basics)

[Data science](https://alberto-desiderio.net/blog-alberto-desiderio/tag/data-science)

## [Demystifying Bayesian Statistics and PYMC: A Practical Guide](https://alberto-desiderio.net/blog-alberto-desiderio/bayes_basics)

![Picture of Alberto Desiderio](https://alberto-desiderio.net/hs-fs/hubfs/IMG_0544%202.png?width=50&name=IMG_0544%202.png) [Alberto Desiderio](https://alberto-desiderio.net/blog-alberto-desiderio/author/alberto-desiderio) 

 March 2025

If you have ever wondered how to make smarter predictions or handle uncertainty in your data,...

[Read more](https://alberto-desiderio.net/blog-alberto-desiderio/bayes_basics)

# Alberto Desiderio

Zurich, Switzerland

- [Home](https://alberto-desiderio.net)
- [Blog](https://alberto-desiderio.net/blog-alberto-desiderio)
- [Links](https://alberto-desiderio.net/links)
- [About](https://alberto-desiderio.net/en-gb/about)

---

[linkedin-in icon](https://www.linkedin.com/in/albertodesiderio/)

Copyright © 2026, Alberto Desiderio