Update README.md
Browse files
README.md
CHANGED
|
@@ -2,4 +2,65 @@
|
|
| 2 |
license: mit
|
| 3 |
---
|
| 4 |
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
license: mit
|
| 3 |
---
|
| 4 |
|
| 5 |
+
# FinML-Chain: A Blockchain-Integrated Dataset for Enhanced Financial Machine Learning
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
## Table of Contents
|
| 9 |
+
|
| 10 |
+
- Data
|
| 11 |
+
- Code
|
| 12 |
+
- Result
|
| 13 |
+
- Reference
|
| 14 |
+
|
| 15 |
+
## Data
|
| 16 |
+
#### Collection for On chain Data
|
| 17 |
+
We collect the data through BigQuery, and the code we used is attached here.
|
| 18 |
+
|
| 19 |
+
[Code for querying data](./data/DataQuery.txt)
|
| 20 |
+
|
| 21 |
+
You can also refer to [BigQuery](https://console.cloud.google.com/bigquery?p=bigquery-public-data&d=crypto_ethereum_classic&page=dataset&project=psyched-service-412017&ws=!1m9!1m4!4m3!1sbigquery-public-data!2sethereum_blockchain!3slive_blocks!1m3!3m2!1sbigquery-public-data!2scrypto_ethereum_classic&pli=1) for more information.
|
| 22 |
+
|
| 23 |
+
#### Collection for Off chain Data
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
#### On chain Data Infomation
|
| 28 |
+
| Data Files | Data Type | Data Content |
|
| 29 |
+
| ------------- | ------------- | ------------- |
|
| 30 |
+
| [ETH-NFT-airdrop.csv](https://github.com/JingfengSteven/Chain_Science_24/blob/64c1cc6b642d8df8285cec8fd78b34f60ba66ecb/data/ETH-NFT-airdrop.csv) | Raw Data | Critical indicators related to gas during NFT airdrop period |
|
| 31 |
+
| [ETH-Normal.csv](https://github.com/JingfengSteven/Chain_Science_24/blob/64c1cc6b642d8df8285cec8fd78b34f60ba66ecb/data/ETH-Normal.csv) | Raw Data | Critical indicators related to gas during normal period |
|
| 32 |
+
|
| 33 |
+
#### On chain Data Dictionary
|
| 34 |
+
- **ETH-NFT-airdrop.csv and ETH-Normal.csv**
|
| 35 |
+
|
| 36 |
+
| Variable Name | Description | Type |
|
| 37 |
+
|------------------------|-----------------------------------|---------|
|
| 38 |
+
| timestamp | Recoding of the time of each block| String |
|
| 39 |
+
| number | The number of blocks on the chain | Numeric |
|
| 40 |
+
| gas_used | Actual gas used | Numeric |
|
| 41 |
+
| gas_limit | The maximum allowed gas per block | Numeric |
|
| 42 |
+
| base_fee_per_gas | The base fee set for each block | Numeric |
|
| 43 |
+
|
| 44 |
+
- **Additional Variables we create**
|
| 45 |
+
|
| 46 |
+
| Variable Name | Description | Type |
|
| 47 |
+
|------------------------|-----------------------------------|---------|
|
| 48 |
+
| gas_fraction | Fraction between Gas Used and Gas Limit | Numeric |
|
| 49 |
+
| gas_target | The optimal gas used for each block | Numeric |
|
| 50 |
+
| Y | Normalized Gas Used | Numeric |
|
| 51 |
+
| Y<sub>t | Response variable equals to the gas_fraction| Numeric |
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
### Off chain Data Information
|
| 55 |
+
|
| 56 |
+
| Variable Name | Description | Type |
|
| 57 |
+
|------------------------|-----------------------------------|---------|
|
| 58 |
+
| chat text | people's chat sentences | String |
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
## Code
|
| 62 |
+
|
| 63 |
+
| Code Files | Code Description |
|
| 64 |
+
| ------------- | ------------- |
|
| 65 |
+
| [blockChainGasPrediction.ipynb](https://github.com/JingfengSteven/Chain_Science_24/blob/64c1cc6b642d8df8285cec8fd78b34f60ba66ecb/code/blockChainGasPrediction.ipynb) | Using linear algorithm, DNN, XGBoost and long-short term memory to predict gas used. |
|
| 66 |
+
|