File size: 1,899 Bytes
b114117
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
language: en
tags:
- time-series-forecasting
- finance
- lstm
- keras
---
# Time-Series Forecasting for Virtual Item Prices

This repository contains trained machine learning and deep learning models for forecasting the price direction of virtual assets based on time-series data.

## Best Model
The best performance was achieved by the **LSTM** neural network on the `Kneedle (MAE <= 0.416)` data pool, yielding a metric of **ROC-AUC = 0.6567**.

**Final model architecture:**
* `LSTM(128)` – recurrent layer, tanh activation
* `Dropout(0.3)`
* `Dense(64, ReLU)`
* `Dense(1, sigmoid)` – probability of price increase

## Repository Structure
* `lstm_final_kneedle.keras` — the main optimized model.
* `lstm_final_kneedle_cosmetics.keras` — model for the alternative dataset (appendix).
* `best_experiments/` — the best models across 14 different algorithms (CatBoost, XGBoost, TabNet, etc.) after pool optimization.

## Benchmarking

| Model | Best Pool | ROC-AUC |
|:---|:---|:---|
| **LSTM** | **Kneedle (MAE ≤ 0.416)** | **0.6567** |
| CatBoost | RF Gating (t = 0.7) | 0.6446 |
| XGBoost | ENN (t = 0.7) | 0.6405 |
| TabNet | RF Gating (t = 0.7) | 0.6398 |
| LightGBM | DROP3 (t = 0.7) | 0.6339 |
| Decision Tree | RF Gating (t = 0.7) | 0.6296 |
| Random Forest | RF Gating (t = 0.7) | 0.6294 |
| MLP | ENN (t = 0.7) | 0.6292 |
| Logistic Regression| DT Filter (t = 0.5) | 0.6235 |
| SVM | ENN (t = 0.7) | 0.6178 |
| KNN | Kneedle (MAE ≤ 0.416) | 0.5844 |
| Naive Bayes | DT Filter (t = 0.5) | 0.5731 |
| 1D-CNN | ENN (t = 0.7) | 0.5367 |
| AutoARIMA | DT Filter (t = 0.7) | 0.5027 |

## Inference

```python
from huggingface_hub import hf_hub_download
from tensorflow.keras.models import load_model

# Load the best model
model_path = hf_hub_download(
    repo_id="redr1g/final-thesis-experiments", 
    filename="lstm_final_kneedle.keras"
)
model = load_model(model_path)
```