VGalaxies666 commited on
Commit
4e56afa
·
verified ·
1 Parent(s): 8a23574

Add bitcoin TsFile conversion

Browse files
Files changed (3) hide show
  1. .gitattributes +1 -0
  2. README.md +86 -0
  3. bitcoin.tsfile +3 -0
.gitattributes CHANGED
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ bitcoin.tsfile filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ annotations_creators:
4
+ - no-annotation
5
+ language_creators:
6
+ - found
7
+ multilinguality:
8
+ - monolingual
9
+ source_datasets:
10
+ - original
11
+ task_categories:
12
+ - time-series-forecasting
13
+ task_ids:
14
+ - univariate-time-series-forecasting
15
+ tags:
16
+ - time-series
17
+ - forecasting
18
+ - benchmark
19
+ - monash-time-series-forecasting-repository
20
+ - monash-tsf
21
+ - tsfile
22
+ - apache-tsfile
23
+ - modality:timeseries
24
+ - Time-series
25
+ - format:tsfile
26
+ pretty_name: bitcoin (TsFile format)
27
+ configs:
28
+ - config_name: default
29
+ data_files:
30
+ - split: train
31
+ path: "*.tsfile"
32
+ ---
33
+
34
+ # bitcoin (TsFile format)
35
+
36
+ 18 daily time series including hash rate, block size, mining difficulty etc. as well as public opinion in the form of tweets and google searches mentioning the keyword bitcoin as potential influencer of the bitcoin price.
37
+
38
+ This repository contains the full source `.tsf` series from the Monash Time Series Forecasting Repository converted to [Apache TsFile](https://tsfile.apache.org/) format. It does not materialize the Hugging Face loader's derived train, validation, or test views.
39
+
40
+ ## Summary
41
+
42
+ - Source dataset: [`Monash-University/monash_tsf`](https://huggingface.co/datasets/Monash-University/monash_tsf)
43
+ - Original source: https://zenodo.org/record/5121965
44
+ - Monash subset: `bitcoin`
45
+ - Modalities: Time-series
46
+ - Source series: 18
47
+ - Rows: 82,458 flattened timestamped observations
48
+ - Frequency: `daily`
49
+ - Forecast horizon metadata: not specified
50
+ - Missing-values metadata: True
51
+ - Equal-length metadata: False
52
+ - Missing target values preserved as NaN: 8,088
53
+ - Series length range: 4,581 to 4,581
54
+ - TsFile output: 1 file (bitcoin.tsfile)
55
+
56
+ ## Files
57
+
58
+ - `bitcoin.tsfile`
59
+
60
+ ## TsFile Schema
61
+
62
+ | Column | Role | TsFile type |
63
+ |---|---|---|
64
+ | `Time` | TIME | INT64 |
65
+ | `series_id` | TAG | STRING |
66
+ | `series_name` | TAG | STRING |
67
+ | `start_timestamp` | TAG | STRING |
68
+ | `target` | FIELD | FLOAT |
69
+
70
+ ## Conversion Notes
71
+
72
+ - Each source `.tsf` data row is stored as one TsFile device.
73
+ - Source `.tsf` attributes are stored as TAG columns.
74
+ - The `target` series values are flattened into timestamped rows and stored as a FLOAT FIELD.
75
+ - `Time` is synthesized from the source start timestamp and the `.tsf` frequency metadata, with millisecond precision.
76
+ - The conversion preserves the complete source series and does not create train, validation, or test split files.
77
+ - Large outputs may be sharded by the TsFile conversion tool; all listed shards belong to the same logical table `bitcoin`.
78
+
79
+ ## Reading Example
80
+
81
+ ```python
82
+ from tsfile import TsFileReader
83
+
84
+ reader = TsFileReader("bitcoin.tsfile")
85
+ schemas = reader.get_all_table_schemas()
86
+ ```
bitcoin.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1b82eb13d27dd9c389a533a0a24a0f98f00f5e63a6387a8581e791416e6bb88a
3
+ size 259578