File size: 3,233 Bytes
a3e1cc7
eaad3a0
e3f60c2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a3e1cc7
eaad3a0
e3f60c2
 
 
 
3d69a83
e3f60c2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
eaad3a0
e3f60c2
186dd46
 
eaad3a0
e3f60c2
eaad3a0
e3f60c2
eaad3a0
e3f60c2
 
 
 
 
eaad3a0
e3f60c2
eaad3a0
e3f60c2
 
 
eaad3a0
e3f60c2
eaad3a0
e3f60c2
eaad3a0
e3f60c2
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
---
language:
  - ko
pretty_name: "KRX Investment Warning Prediction Dataset (OHLCV + Korean News)"
tags:
  - finance
  - krx
  - korea
  - time-series
  - ohlcv
  - news
  - multimodal
  - anomaly-detection
  - binary-classification
task_categories:
  - text-classification
  - time-series-forecasting
task_ids:
  - binary-classification
license: mit
---

# KRX Investment Warning Prediction Dataset (OHLCV + Korean News)

## Dataset Summary

This dataset is a test dataset for predicting **Investment Warning (투자주의종목)** designations in the Korean stock market (KRX).  
It contains **raw daily OHLCV** price data and **Korean news text** (title + body), designed for **multimodal anomaly detection / binary classification**.

**Important:** No technical indicators are included, and no normalization/scaling is applied.

- **Date range:** 2025-07-01 ~ 2025-09-30
- **Prediction horizon:** whether a stock will be designated as an investment warning **within the next 1 trading day**

## Task

Binary classification:

- **Label 0:** Normal trading (no investment warning designation within the next 1 trading day)
- **Label 1:** Investment warning designation (within the next 1 trading day)

### Label Alignment

For each `(ticker, date=t)`, set `label=1` if the stock is designated as an investment warning on `t+1` (the next trading day).

## Data Sources

| Source | Description |
|------|-------------|
| **Stock Prices** | Daily OHLCV data for KRX listed stocks |
| **Investment Warning** | KRX investment warning designation history (labels) |
| **News** | Korean news articles per stock (title + body) |

## Dataset Format

This dataset is structured to be used directly with Hugging Face `datasets`, and consists of **three columns**:

- **`labels`**: Binary label (`0` or `1`)
- **`time_series`**: Price time-series information (OHLCV)
- **`texts`**: Korean news text mapped to the corresponding stock (title + body)

> The exact internal structure of `time_series` and `texts` (e.g., list/dict formats, sequence length, date ordering) follows the dataset schema.  
> In general, `time_series` is provided as a fixed-length historical window, and `texts` contains news from the same date (or window period), either concatenated or stored as a list.

### Example (Conceptual)

- `labels`: `0` or `1`
- `time_series`: `[[open, high, low, close, volume], ...]`
- `texts`: `["article1 ...", "article2 ..."]`

## Feature Details

### Price (OHLCV) — `time_series`

- OHLCV is provided as **raw daily bars**.
- **No technical indicators** (e.g., RSI, MACD) are included.
- **No normalization/scaling** is applied.
- **Currency unit:** KRW
- **Volume:** number of shares (not value)

### News — `texts`

- News is mapped to tickers via an **exact ticker-code mapping**.
- **Deduplication** has been applied.
- Each news item includes **title + body** (stored as a single string or list depending on schema).

## Recommended Metrics

Because investment warning events are likely to be rare (class imbalance), the following metrics are recommended:

- ROC-AUC, PR-AUC
- F1 (positive class), precision/recall
- Precision/recall at Top-k (useful for practical detection scenarios)
- (Optional) probability calibration