# wueth/tree-like-pin architecture

> Architecture diagram of the GitHub repository wueth/tree-like-pin, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/wueth/tree-like-pin
- Repository: https://github.com/wueth/tree-like-pin

## Overview

Tree-Like-PIN is research code and data for a neural-network model for tabular prediction, especially insurance pricing. Its documented workflow is to model pairwise feature interactions with a shared feed-forward architecture, produce predictions, and support inspection of interaction effects and efficient SHAP analysis. The README also reports empirical comparison on French motor insurance data. No source files or implementation paths were provided, so the graph captures only documented capabilities and relationships; it does not infer code-level modules or execution details.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_modeling["PIN modeling"]
  node_pin["Tree-like PIN"]
  node_shared_network["Shared feed-forward network"]
  node_pairwise_effects["Pairwise interactions"]
  node_predictions["Predictions"]
end

subgraph group_analysis["Interpretation and evaluation"]
  node_inspection["Interaction inspection"]
  node_shap["SHAP computation"]
  node_motor_data["French motor data"]
  node_benchmarks["Benchmark models"]
end

node_analyst(("Model user"))

node_pin -->|"uses shared architecture"| node_shared_network
node_shared_network -->|"captures interactions"| node_pairwise_effects
node_pin -->|"predicts"| node_predictions
node_analyst -->|"inspects effects"| node_inspection
node_pin -->|"enables inspection"| node_inspection
node_pin -->|"supports efficient analysis"| node_shap
node_pairwise_effects -->|"limits computation to pairs"| node_shap
node_pin -->|"evaluated on"| node_motor_data
node_pin -->|"outperforms in reported accuracy"| node_benchmarks

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_pin,node_shared_network,node_pairwise_effects,node_predictions,node_analyst toneBlue
class node_inspection,node_shap,node_motor_data,node_benchmarks toneAmber
```

## Components

### PIN modeling

- **Tree-like PIN**
- **Shared feed-forward network**
- **Pairwise interactions**
- **Predictions**

### Interpretation and evaluation

- **Interaction inspection**
- **SHAP computation**
- **French motor data**
- **Benchmark models**

### Other components

- **Model user**

## Connections

- Tree-like PIN → Shared feed-forward network: uses shared architecture (evidence: `README.md`)
- Shared feed-forward network → Pairwise interactions: captures interactions (evidence: `README.md`)
- Tree-like PIN → Predictions: predicts (evidence: `README.md`)
- Model user → Interaction inspection: inspects effects (evidence: `README.md`)
- Tree-like PIN → Interaction inspection: enables inspection (evidence: `README.md`)
- Tree-like PIN → SHAP computation: supports efficient analysis (evidence: `README.md`)
- Pairwise interactions → SHAP computation: limits computation to pairs (evidence: `README.md`)
- Tree-like PIN → French motor data: evaluated on (evidence: `README.md`)
- Tree-like PIN → Benchmark models: outperforms in reported accuracy (evidence: `README.md`)
