# woo-ju-lee/haltcompany_predict architecture

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

- Interactive diagram: https://gitdiagram.com/woo-ju-lee/haltcompany_predict
- Repository: https://github.com/woo-ju-lee/haltcompany_predict

## Overview

The tree suggests a data workflow for processing DART originals, mapping companies, and producing predictions or rankings, but the README is empty and those R files were not sampled. The only inspected implementation is a small TabPFN classification script that fits a model, predicts, and reports accuracy and log loss. Its inputs come from an undefined object `r`; their source and the R scripts’ relationships cannot be established from the available evidence.

Main entry points: [`tabpfn.py`](https://github.com/woo-ju-lee/haltcompany_predict/blob/main/tabpfn.py) (TabPFN experiment)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dart["DART processing"]
  node_download["Download originals"]
  node_parse["Parse originals"]
  node_mapping["Company mapping"]
end

subgraph group_prediction["Prediction and analysis"]
  node_predict["Mainline prediction<br/>[Predict_mainline.R]"]
  node_rank["Ranking<br/>[Rank_Ver.1.R]"]
  node_hold["Thread hold value"]
  node_tabpfn["TabPFN experiment<br/>[tabpfn.py]"]
  node_demo["Demo<br/>[Demo.R]"]
  node_latestdemo["Latest demo<br/>[latest_demo.R]"]
end

subgraph group_storage["Data assets"]
  node_dbmanagement["Database management<br/>[DB_management.R]"]
  node_sqlite[("SQLite database<br/>[SQLiteDB.sqlite]")]
  node_sortdata["Standard sort data<br/>[k_std_sort.xlsx]"]
end

node_tabpfnlib["TabPFN client"]
node_metrics["Classification metrics"]

node_tabpfn -->|"fits and predicts"| node_tabpfnlib
node_tabpfn -->|"evaluates predictions"| node_metrics

click node_download "https://github.com/woo-ju-lee/haltcompany_predict/blob/main/01_download_dart_originals.R"
click node_parse "https://github.com/woo-ju-lee/haltcompany_predict/blob/main/02_parse_dart_originals.R"
click node_mapping "https://github.com/woo-ju-lee/haltcompany_predict/blob/main/04_company_mapping.R"
click node_predict "https://github.com/woo-ju-lee/haltcompany_predict/blob/main/Predict_mainline.R"
click node_rank "https://github.com/woo-ju-lee/haltcompany_predict/blob/main/Rank_Ver.1.R"
click node_hold "https://github.com/woo-ju-lee/haltcompany_predict/blob/main/Thread_hold_value.R"
click node_tabpfn "https://github.com/woo-ju-lee/haltcompany_predict/blob/main/tabpfn.py"
click node_demo "https://github.com/woo-ju-lee/haltcompany_predict/blob/main/Demo.R"
click node_latestdemo "https://github.com/woo-ju-lee/haltcompany_predict/blob/main/latest_demo.R"
click node_dbmanagement "https://github.com/woo-ju-lee/haltcompany_predict/blob/main/DB_management.R"
click node_sqlite "https://github.com/woo-ju-lee/haltcompany_predict/blob/main/data/SQLiteDB.sqlite"
click node_sortdata "https://github.com/woo-ju-lee/haltcompany_predict/blob/main/data/k_std_sort.xlsx"

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_download,node_parse,node_mapping,node_tabpfnlib toneBlue
class node_predict,node_rank,node_hold,node_tabpfn,node_demo,node_latestdemo toneAmber
class node_dbmanagement,node_sqlite,node_sortdata toneMint
class node_metrics toneIndigo
```

## Components

### DART processing

- [Download originals](https://github.com/woo-ju-lee/haltcompany_predict/blob/main/01_download_dart_originals.R): `01_download_dart_originals.R`
- [Parse originals](https://github.com/woo-ju-lee/haltcompany_predict/blob/main/02_parse_dart_originals.R): `02_parse_dart_originals.R`
- [Company mapping](https://github.com/woo-ju-lee/haltcompany_predict/blob/main/04_company_mapping.R): `04_company_mapping.R`

### Prediction and analysis

- [Mainline prediction](https://github.com/woo-ju-lee/haltcompany_predict/blob/main/Predict_mainline.R): `Predict_mainline.R`
- [Ranking](https://github.com/woo-ju-lee/haltcompany_predict/blob/main/Rank_Ver.1.R): `Rank_Ver.1.R`
- [Thread hold value](https://github.com/woo-ju-lee/haltcompany_predict/blob/main/Thread_hold_value.R): `Thread_hold_value.R`
- [TabPFN experiment](https://github.com/woo-ju-lee/haltcompany_predict/blob/main/tabpfn.py): `tabpfn.py`
- [Demo](https://github.com/woo-ju-lee/haltcompany_predict/blob/main/Demo.R): `Demo.R`
- [Latest demo](https://github.com/woo-ju-lee/haltcompany_predict/blob/main/latest_demo.R): `latest_demo.R`

### Data assets

- [Database management](https://github.com/woo-ju-lee/haltcompany_predict/blob/main/DB_management.R): `DB_management.R`
- [SQLite database](https://github.com/woo-ju-lee/haltcompany_predict/blob/main/data/SQLiteDB.sqlite): `data/SQLiteDB.sqlite`
- [Standard sort data](https://github.com/woo-ju-lee/haltcompany_predict/blob/main/data/k_std_sort.xlsx): `data/k_std_sort.xlsx`

### Other components

- **TabPFN client**
- **Classification metrics**

## Connections

- TabPFN experiment → TabPFN client: fits and predicts (evidence: `tabpfn.py`)
- TabPFN experiment → Classification metrics: evaluates predictions (evidence: `tabpfn.py`)
