# ryan-uga/fifa2022-machine-learning-in-r architecture

> Architecture diagram of the GitHub repository ryan-uga/fifa2022-machine-learning-in-r, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ryan-uga/fifa2022-machine-learning-in-r
- Repository: https://github.com/ryan-uga/fifa2022-machine-learning-in-r

## Overview

This repository is a World Cup match-outcome analysis, not a deployed coaching application. Its documented workflow turns match statistics into engineered predictors, trains and evaluates several classifiers, then interprets results as strategic recommendations for the USMNT. The README describes these stages and model capabilities; no source excerpts were provided, so implementation-level calls and the exact role of the PDF deliverables cannot be verified.

Main entry points: [`MIST 5635 Group Project.Rmd`](https://github.com/ryan-uga/fifa2022-machine-learning-in-r/blob/main/MIST%205635%20Group%20Project.Rmd) (Training pipeline), [`README.md`](https://github.com/ryan-uga/fifa2022-machine-learning-in-r/blob/main/README.md) (Strategy recommendations), [`Fifa_world_cup_matches.csv`](https://github.com/ryan-uga/fifa2022-machine-learning-in-r/blob/main/Fifa_world_cup_matches.csv) (Match statistics)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_preparation["Data preparation"]
  node_matches[("Match statistics")]
  node_engineering["Feature engineering"]
end

subgraph group_modeling["Modeling"]
  node_caret["Training pipeline"]
  node_logistic["Logistic regression"]
  node_forest["Random forest"]
  node_gbm["Gradient boosting"]
  node_xgboost["XGBoost"]
end

subgraph group_insights["Evaluation and insights"]
  node_evaluation["Model evaluation"]
  node_interpretation["Predictor interpretation"]
  node_recommendations["Strategy recommendations<br/>[README.md]"]
end

node_analyst(("USMNT analyst"))

node_matches -->|"provides data"| node_engineering
node_engineering -->|"prepares features"| node_caret
node_caret -->|"trains"| node_logistic
node_caret -->|"trains"| node_forest
node_caret -->|"trains"| node_gbm
node_caret -->|"trains"| node_xgboost
node_logistic -->|"evaluated by"| node_evaluation
node_forest -->|"evaluated by"| node_evaluation
node_gbm -->|"evaluated by"| node_evaluation
node_xgboost -->|"evaluated by"| node_evaluation
node_evaluation -->|"informs"| node_interpretation
node_interpretation -->|"guides"| node_recommendations
node_analyst -->|"uses"| node_recommendations

click node_matches "https://github.com/ryan-uga/fifa2022-machine-learning-in-r/blob/main/Fifa_world_cup_matches.csv"
click node_engineering "https://github.com/ryan-uga/fifa2022-machine-learning-in-r/blob/main/MIST%205635%20Group%20Project.Rmd"
click node_caret "https://github.com/ryan-uga/fifa2022-machine-learning-in-r/blob/main/MIST%205635%20Group%20Project.Rmd"
click node_logistic "https://github.com/ryan-uga/fifa2022-machine-learning-in-r/blob/main/MIST%205635%20Group%20Project.Rmd"
click node_forest "https://github.com/ryan-uga/fifa2022-machine-learning-in-r/blob/main/MIST%205635%20Group%20Project.Rmd"
click node_gbm "https://github.com/ryan-uga/fifa2022-machine-learning-in-r/blob/main/MIST%205635%20Group%20Project.Rmd"
click node_xgboost "https://github.com/ryan-uga/fifa2022-machine-learning-in-r/blob/main/MIST%205635%20Group%20Project.Rmd"
click node_evaluation "https://github.com/ryan-uga/fifa2022-machine-learning-in-r/blob/main/MIST%205635%20Group%20Project.Rmd"
click node_interpretation "https://github.com/ryan-uga/fifa2022-machine-learning-in-r/blob/main/MIST%205635%20Group%20Project.Rmd"
click node_recommendations "https://github.com/ryan-uga/fifa2022-machine-learning-in-r/blob/main/README.md"

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_matches,node_engineering toneBlue
class node_caret,node_logistic,node_forest,node_gbm,node_xgboost toneAmber
class node_evaluation,node_interpretation,node_recommendations toneMint
class node_analyst toneIndigo
```

## Components

### Data preparation

- [Match statistics](https://github.com/ryan-uga/fifa2022-machine-learning-in-r/blob/main/Fifa_world_cup_matches.csv): `Fifa_world_cup_matches.csv`
- [Feature engineering](https://github.com/ryan-uga/fifa2022-machine-learning-in-r/blob/main/MIST%205635%20Group%20Project.Rmd): `MIST 5635 Group Project.Rmd`

### Modeling

- [Training pipeline](https://github.com/ryan-uga/fifa2022-machine-learning-in-r/blob/main/MIST%205635%20Group%20Project.Rmd): `MIST 5635 Group Project.Rmd`
- [Logistic regression](https://github.com/ryan-uga/fifa2022-machine-learning-in-r/blob/main/MIST%205635%20Group%20Project.Rmd): `MIST 5635 Group Project.Rmd`
- [Random forest](https://github.com/ryan-uga/fifa2022-machine-learning-in-r/blob/main/MIST%205635%20Group%20Project.Rmd): `MIST 5635 Group Project.Rmd`
- [Gradient boosting](https://github.com/ryan-uga/fifa2022-machine-learning-in-r/blob/main/MIST%205635%20Group%20Project.Rmd): `MIST 5635 Group Project.Rmd`
- [XGBoost](https://github.com/ryan-uga/fifa2022-machine-learning-in-r/blob/main/MIST%205635%20Group%20Project.Rmd): `MIST 5635 Group Project.Rmd`

### Evaluation and insights

- [Model evaluation](https://github.com/ryan-uga/fifa2022-machine-learning-in-r/blob/main/MIST%205635%20Group%20Project.Rmd): `MIST 5635 Group Project.Rmd`
- [Predictor interpretation](https://github.com/ryan-uga/fifa2022-machine-learning-in-r/blob/main/MIST%205635%20Group%20Project.Rmd): `MIST 5635 Group Project.Rmd`
- [Strategy recommendations](https://github.com/ryan-uga/fifa2022-machine-learning-in-r/blob/main/README.md): `README.md`

### Other components

- **USMNT analyst**

## Connections

- Match statistics → Feature engineering: provides data (evidence: `README.md`)
- Feature engineering → Training pipeline: prepares features (evidence: `README.md`)
- Training pipeline → Logistic regression: trains (evidence: `README.md`)
- Training pipeline → Random forest: trains (evidence: `README.md`)
- Training pipeline → Gradient boosting: trains (evidence: `README.md`)
- Training pipeline → XGBoost: trains (evidence: `README.md`)
- Logistic regression → Model evaluation: evaluated by (evidence: `README.md`)
- Random forest → Model evaluation: evaluated by (evidence: `README.md`)
- Gradient boosting → Model evaluation: evaluated by (evidence: `README.md`)
- XGBoost → Model evaluation: evaluated by (evidence: `README.md`)
- Model evaluation → Predictor interpretation: informs (evidence: `README.md`)
- Predictor interpretation → Strategy recommendations: guides (evidence: `README.md`)
- USMNT analyst → Strategy recommendations: uses (evidence: `README.md`)
