Datasets:
Upload folder using huggingface_hub
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- .DS_StoreAdded
- .gitattributes+4
- ETT-small/ETTh1.csvAdded
- ETT-small/ETTh2.csvAdded
- ETT-small/ETTm1.csvAdded
- ETT-small/ETTm2.csvAdded
- EthanolConcentration/EthanolConcentration_TEST.tsAdded
- EthanolConcentration/EthanolConcentration_TRAIN.tsAdded
- FaceDetection/FaceDetection_TEST.tsAdded+3
- FaceDetection/FaceDetection_TRAIN.tsAdded+3
- Handwriting/Handwriting_TEST.tsAdded
- Handwriting/Handwriting_TRAIN.tsAdded
- Heartbeat/Heartbeat_TEST.tsAdded+3
- Heartbeat/Heartbeat_TRAIN.tsAdded+3
- JapaneseVowels/JapaneseVowels_TEST.tsAdded
- JapaneseVowels/JapaneseVowels_TRAIN.tsAdded
- MSL/.DS_StoreAdded
- MSL/MSL_test.npyAdded+3
- MSL/MSL_test_label.npyAdded+3
- MSL/MSL_train.npyAdded+3
- PEMS-SF/PEMS-SF_TEST.tsAdded+3
- PEMS-SF/PEMS-SF_TRAIN.tsAdded+3
- PSM/test.csvAdded+3
- PSM/test_label.csvAdded
- PSM/train.csvAdded+3
- README.md+312-3
- SMAP/SMAP_test.npyAdded+3
- SMAP/SMAP_test_label.npyAdded+3
- SMAP/SMAP_train.npyAdded+3
- SMD/SMD_test.npyAdded+3
- SMD/SMD_test.pklAdded+3
- SMD/SMD_test_label.npyAdded+3
- SMD/SMD_test_label.pklAdded+3
- SMD/SMD_train.npyAdded+3
- SMD/SMD_train.pklAdded+3
- SWaT/SWaT_Dataset_Attack_v0.xlsxAdded+3
- SWaT/SWaT_Dataset_Normal_v1.xlsxAdded+3
- SWaT/data.pyAdded+50
- SWaT/swat2.csvAdded+3
- SWaT/swat_raw.csvAdded+3
- SWaT/swat_train.csvAdded+3
- SWaT/swat_train2.csvAdded+3
- SelfRegulationSCP1/SelfRegulationSCP1_TEST.tsAdded
- SelfRegulationSCP1/SelfRegulationSCP1_TRAIN.tsAdded
- SelfRegulationSCP2/SelfRegulationSCP2_TEST.tsAdded
- SelfRegulationSCP2/SelfRegulationSCP2_TRAIN.tsAdded
- SpokenArabicDigits/SpokenArabicDigits_TEST.tsAdded
- SpokenArabicDigits/SpokenArabicDigits_TRAIN.tsAdded+3
- UWaveGestureLibrary/UWaveGestureLibrary_TEST.tsAdded
- UWaveGestureLibrary/UWaveGestureLibrary_TRAIN.tsAdded
56 unmodified lines57585956 unmodified lines# Video files - compressed*.mp4 filter=lfs diff=lfs merge=lfs -text*.webm filter=lfs diff=lfs merge=lfs -text56 unmodified lines5758596061626356 unmodified lines# Video files - compressed*.mp4 filter=lfs diff=lfs merge=lfs -text*.webm filter=lfs diff=lfs merge=lfs -text# Time-series specific*.ts filter=lfs diff=lfs merge=lfs -text*.csv filter=lfs diff=lfs merge=lfs -text*.xlsx filter=lfs diff=lfs merge=lfs -text
123version https://git-lfs.github.com/spec/v1oid sha256:070529a75e0c8c94d9c7e48a145ad441012d09dcd94e4c8da0cba537248dccd4size 295402468123version https://git-lfs.github.com/spec/v1oid sha256:afaed1f9f315f71369c591ac8ae7981c7424eaec639ee620fd91a9b26cf19499size 493652128123version https://git-lfs.github.com/spec/v1oid sha256:0891d32cf46e52d4c38c6ce3c0d00180ebd18352d4654e209972d413169a96a9size 44006251123version https://git-lfs.github.com/spec/v1oid sha256:4c9b4e877d94e64f70b5bb8a063c7712d41b2f09290236745c9b6db08d87513asize 43796926123version https://git-lfs.github.com/spec/v1oid sha256:8b479ebeeabb63ff636e8adeb095a7bcc46a0cdc7befa189b45b05b1e90c9425size 32440888123version https://git-lfs.github.com/spec/v1oid sha256:23e120c30a645000f093ff5311de177601b8220ba3ca4281c6376883444f7b97size 73857123version https://git-lfs.github.com/spec/v1oid sha256:d767ecfc8ea344f7a6e78f815a84dc7923f600df1beb14359f3e73202148b058size 25659608123version https://git-lfs.github.com/spec/v1oid sha256:4f0306cc5943674a9b6531cff4d24e8e4c0360480ada8838bbf4015cdf26608bsize 165185278123version https://git-lfs.github.com/spec/v1oid sha256:1f84939377b2c16ef0df6d135154bfcf684a76d86a4095b43900df75adf64f78size 254935750123version https://git-lfs.github.com/spec/v1oid sha256:566bc50117d13f58793d830c14975c55f627cab63953265d7d6ce2dbcf2b0f80size 42523490123version https://git-lfs.github.com/spec/v1oid sha256:816e0e2a5356b3b09d356925cd9a0fe1d327e3b350e9336d26ee3e650c72e112size 63628087123---license: mit---123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312---tags:- time-series- forecasting- anomaly-detection- classification- TSLiblicense: cc-by-4.0task_categories:- time-series-forecastingpretty_name: Time-Series-Library (TSLib)language:- enconfigs:- config_name: ETTh1description: ETT long-term forecasting subset ETTh1 (hourly).data_files:- ETT-small/ETTh1.csv- config_name: ETTh2description: ETT long-term forecasting subset ETTh2 (hourly).data_files:- ETT-small/ETTh2.csv- config_name: ETTm1description: ETT long-term forecasting subset ETTm1 (15-min).data_files:- ETT-small/ETTm1.csv- config_name: ETTm2description: ETT long-term forecasting subset ETTm2 (15-min).data_files:- ETT-small/ETTm2.csv- config_name: electricitydescription: Electricity load forecasting (UCI Electricity).data_files:- electricity/electricity.csv- config_name: trafficdescription: Traffic volume forecasting.data_files:- traffic/traffic.csv- config_name: weatherdescription: Weather time-series forecasting.data_files:- weather/weather.csv- config_name: exchange_ratedescription: Exchange rate forecasting.data_files:- exchange_rate/exchange_rate.csv- config_name: national_illnessdescription: Influenza-like illness (ILI) forecasting.data_files:- illness/national_illness.csv- config_name: m4-yearlydescription: M4 Yearly forecasting subset.data_files:- split: trainpath: m4/Yearly-train.csv- split: testpath: m4/Yearly-test.csv- config_name: m4-quarterlydescription: M4 Quarterly forecasting subset.data_files:- split: trainpath: m4/Quarterly-train.csv- split: testpath: m4/Quarterly-test.csv- config_name: m4-monthlydescription: M4 Monthly forecasting subset.data_files:- split: trainpath: m4/Monthly-train.csv- split: testpath: m4/Monthly-test.csv- config_name: m4-weeklydescription: M4 Weekly forecasting subset.data_files:- split: trainpath: m4/Weekly-train.csv- split: testpath: m4/Weekly-test.csv- config_name: m4-dailydescription: M4 Daily forecasting subset.data_files:- split: trainpath: m4/Daily-train.csv- split: testpath: m4/Daily-test.csv- config_name: m4-hourlydescription: M4 Hourly forecasting subset.data_files:- split: trainpath: m4/Hourly-train.csv- split: testpath: m4/Hourly-test.csv- config_name: EthanolConcentrationdescription: 'UEA multivariate classification: EthanolConcentration.'data_files:- split: trainpath: EthanolConcentration/EthanolConcentration_TRAIN.ts- split: testpath: EthanolConcentration/EthanolConcentration_TEST.ts- config_name: FaceDetectiondescription: 'UEA multivariate classification: FaceDetection.'data_files:- split: trainpath: FaceDetection/FaceDetection_TRAIN.ts- split: testpath: FaceDetection/FaceDetection_TEST.ts- config_name: Handwritingdescription: 'UEA multivariate classification: Handwriting.'data_files:- split: trainpath: Handwriting/Handwriting_TRAIN.ts- split: testpath: Handwriting/Handwriting_TEST.ts- config_name: Heartbeatdescription: 'UEA multivariate classification: Heartbeat.'data_files:- split: trainpath: Heartbeat/Heartbeat_TRAIN.ts- split: testpath: Heartbeat/Heartbeat_TEST.ts- config_name: JapaneseVowelsdescription: 'UEA multivariate classification: JapaneseVowels.'data_files:- split: trainpath: JapaneseVowels/JapaneseVowels_TRAIN.ts- split: testpath: JapaneseVowels/JapaneseVowels_TEST.ts- config_name: PEMS-SFdescription: 'UEA multivariate classification: PEMS-SF.'data_files:- split: trainpath: PEMS-SF/PEMS-SF_TRAIN.ts- split: testpath: PEMS-SF/PEMS-SF_TEST.ts- config_name: SelfRegulationSCP1description: 'UEA multivariate classification: SelfRegulationSCP1.'data_files:- split: trainpath: SelfRegulationSCP1/SelfRegulationSCP1_TRAIN.ts- split: testpath: SelfRegulationSCP1/SelfRegulationSCP1_TEST.ts- config_name: SelfRegulationSCP2description: 'UEA multivariate classification: SelfRegulationSCP2.'data_files:- split: trainpath: SelfRegulationSCP2/SelfRegulationSCP2_TRAIN.ts- split: testpath: SelfRegulationSCP2/SelfRegulationSCP2_TEST.ts- config_name: SpokenArabicDigitsdescription: 'UEA multivariate classification: SpokenArabicDigits.'data_files:- split: trainpath: SpokenArabicDigits/SpokenArabicDigits_TRAIN.ts- split: testpath: SpokenArabicDigits/SpokenArabicDigits_TEST.ts- config_name: UWaveGestureLibrarydescription: 'UEA multivariate classification: UWaveGestureLibrary.'data_files:- split: trainpath: UWaveGestureLibrary/UWaveGestureLibrary_TRAIN.ts- split: testpath: UWaveGestureLibrary/UWaveGestureLibrary_TEST.ts- config_name: SMD-datadescription: Server Machine Dataset (SMD) for anomaly detection — train & test data.data_files:- split: trainpath: SMD/SMD_train.npy- split: testpath: SMD/SMD_test.npy- config_name: SMD-labeldescription: Server Machine Dataset (SMD) — test anomaly labels.data_files:- split: test_labelpath: SMD/SMD_test_label.npy- config_name: MSL-datadescription: NASA Mars Science Laboratory (MSL) anomaly detection — train/test arrays.data_files:- split: trainpath: MSL/MSL_train.npy- split: testpath: MSL/MSL_test.npy- config_name: MSL-labeldescription: MSL anomaly detection — test labels.data_files:- split: test_labelpath: MSL/MSL_test_label.npy- config_name: SMAP-datadescription: >-NASA Soil Moisture Active Passive (SMAP) anomaly detection — train/testarrays.data_files:- split: trainpath: SMAP/SMAP_train.npy- split: testpath: SMAP/SMAP_test.npy- config_name: SMAP-labeldescription: SMAP anomaly detection — test labels.data_files:- split: test_labelpath: SMAP/SMAP_test_label.npy- config_name: PSM-datadescription: KPI-based Process/System Monitoring data (train/test).data_files:- split: trainpath: PSM/train.csv- split: testpath: PSM/test.csv- config_name: PSM-labeldescription: KPI-based Process/System Monitoring labels (test_label).data_files:- split: test_labelpath: PSM/test_label.csv- config_name: SWaTdescription: Secure Water Treatment (SWaT) anomaly detection, processed data.data_files:- split: trainpath: SWaT/swat_train2.csv- split: testpath: SWaT/swat2.csvsize_categories:- 10M<n<100M---# Time-Series-Library (TSLib)TSLib is an open-source library for deep learning researchers, especially for deep time series analysis.We provide a neat code base to evaluate advanced deep time series models or develop your model, which covers five mainstream tasks: **long- and short-term forecasting, imputation, anomaly detection, and classification.**This benchmark collection is designed to evaluate and develop advanced deep time-series models. For an in-depth exploration of current time-series models and their performance, please refer to our paper **[Deep Time Series Models: A Comprehensive Survey and Benchmark](https://arxiv.org/abs/2407.13278)**.To get started with the codebase and contribute, please visit the **[GitHub repository](https://github.com/thuml/Time-Series-Library)**.## Dataset Overview| **Tasks** | **Benchmarks** | **Metrics** | **Series Length** ||-------------------|-------------------------------------------------------------------------------|--------------------------------------|-----------------------|| **Forecasting** | **Long-term:** ETT (4 subsets), Electricity, Traffic, Weather, Exchange, ILI | MSE, MAE | 96\~720 (ILI: 24\~60) || | **Short-term:** M4 (6 subsets) | SMAPE, MASE, OWA | 6\~48 || **Imputation** | ETT (4 subsets), Electricity, Weather | MSE, MAE | 96 || **Classification** | UEA (10 subsets) | Accuracy | 29\~1751 || **Anomaly Detection** | SMD, MSL, SMAP, SWaT, PSM | Precision, Recall, F1-Score | 100 |## File Structure```Time-Series-Library/├── ETT-small/├── EthanolConcentration/├── FaceDetection/├── Handwriting/├── Heartbeat/├── JapaneseVowels/├── MSL/├── PEMS-SF/├── PSM/├── SMAP/├── SMD/├── SWaT/├── SelfRegulationSCP1/├── SelfRegulationSCP2/├── SpokenArabicDigits/├── UWaveGestureLibrary/├── electricity/├── exchange_rate/├── illness/├── m4/├── traffic/├── weather/├── .gitattributes└── README.md```## UsageYou can load the dataset directly using the `datasets` library:```from datasets import load_datasetdataset = load_dataset("thuml/Time-Series-Library", "ETTh1")```Or download specific files with hf_hub_download:```from huggingface_hub import hf_hub_downloadhf_hub_download("thuml/Time-Series-Library", "ETT-small/ETTh1.csv", repo_type="dataset")```## LicenseThis dataset is released under the CC BY 4.0 License.## CitationIf you find this repo useful, please cite our paper.```@inproceedings{wu2023timesnet,title={TimesNet: Temporal 2D-Variation Modeling for General Time Series Analysis},author={Haixu Wu and Tengge Hu and Yong Liu and Hang Zhou and Jianmin Wang and Mingsheng Long},booktitle={International Conference on Learning Representations},year={2023},}@article{wang2024tssurvey,title={Deep Time Series Models: A Comprehensive Survey and Benchmark},author={Yuxuan Wang and Haixu Wu and Jiaxiang Dong and Yong Liu and Mingsheng Long and Jianmin Wang},booktitle={arXiv preprint arXiv:2407.13278},year={2024},}```
123version https://git-lfs.github.com/spec/v1oid sha256:458c3b354b6a602b711241c29fb50518dddb0c1c9248d7d2e1691a9c218d4ac0size 85523528123version https://git-lfs.github.com/spec/v1oid sha256:55f94fcccc3ae35216cfd6ac5e0e2016ad9d08d5ff0aca9f09916c6501380e0fsize 427745123version https://git-lfs.github.com/spec/v1oid sha256:1c823bed59f32d45a2e6323ac79bf7755c80c2ff68a2d3d7322e4dee40a11010size 27036728123version https://git-lfs.github.com/spec/v1oid sha256:64520f6b9351d609bb395e947a3c98f6c513f608c794c571f9a0176d98cdb671size 107679968123version https://git-lfs.github.com/spec/v1oid sha256:f8198426451bbcb38b1d12751bf83048ce2fb757438f547fccd835e898db7e61size 107680003123version https://git-lfs.github.com/spec/v1oid sha256:400a29e062ca8c8f8d7e4801c68c35801f3a2180d5d70fe118d6525a33dd3ed2size 2833808123version https://git-lfs.github.com/spec/v1oid sha256:5ae84fe92808cdac5e15752edd0a1c402c93bebc643f164cc0fe3c9787a42e52size 2833841123version https://git-lfs.github.com/spec/v1oid sha256:ef3a4a4e9c87c939c23e0cdf1190c18a1d41ef1aadb5d6c5ae909514332ef791size 107677688123version https://git-lfs.github.com/spec/v1oid sha256:c44c703b1804a00eb9262ca03e7dd0c035d9cdf8d7c48a7aa99c63da3181d1adsize 107677723123version https://git-lfs.github.com/spec/v1oid sha256:6cc72c24425453879bac1565cae4c6f35ad585a578510ab2a27b325d1bac2e8dsize 116016616123version https://git-lfs.github.com/spec/v1oid sha256:fb7bb0a9c10f86ad29d8f2ae4fd09284e7db70c76350f5b2afcca58d9ace6c49size 1305669071234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950import xlrdimport csv
'''def xlsx_to_csv(): workbook = xlrd.open_workbook('SWaT_Dataset_Normal_v1.xlsx') table = workbook.sheet_by_index(0) with open('swat_train.csv', 'w', encoding='utf-8') as f: write = csv.writer(f) for row_num in range(table.nrows): row_value = table.row_values(row_num) write.writerow(row_value)
if __name__ == '__main__': xlsx_to_csv()''''''import pandas as pdimport csvf = open('swat_train2.csv','w',encoding='utf-8')csv_writer = csv.writer(f)csv_writer.writerow(['FIT101' ,'LIT101' ,' MV101', 'P101' ,'P102', ' AIT201', 'AIT202', 'AIT203' ,'FIT201' ,' MV201' ,' P201', ' P202', 'P203' ,' P204', 'P205', 'P206', 'DPIT301' ,'FIT301', 'LIT301' ,'MV301' ,'MV302', ' MV303', 'MV304' ,'P301', 'P302', 'AIT401', 'AIT402', 'FIT401', 'LIT401', 'P401', 'P402', 'P403', 'P404', 'UV401' ,'AIT501', 'AIT502', 'AIT503', 'AIT504', 'FIT501', 'FIT502' ,'FIT503', 'FIT504', 'P501', 'P502', 'PIT501', 'PIT502', 'PIT503', 'FIT601', 'P601', 'P602', 'P603', 'Normal/Attack'])
df = pd.read_csv('swat_train.csv')df = df.valuesfor u in range(1,len(df)): tem = df[u][1:] tem2 = [] for i in range(len(tem)-1): tem2.append(float(tem[i])) if(tem[-1]=='Normal'): tem2.append(0) else: tem2.append(1) csv_writer.writerow(tem2)'''import pandas as pddf = pd.read_csv('swat_train2.csv')df = df.valuesprint(df.shape)ano = 0for u in range(len(df)): if(df[u][-1]==1): ano = ano+1print(ano)print(ano/len(df))
123version https://git-lfs.github.com/spec/v1oid sha256:23c5bacf78de7527aac031ad43acc7ac99ec49b17b645aaa2a74a4a7d60a0a80size 164416771123version https://git-lfs.github.com/spec/v1oid sha256:e44e3088f2e012edb2b79315691e1f7da0f855feb994fa28fd3e02ea65575294size 133006459123version https://git-lfs.github.com/spec/v1oid sha256:18791beeb471336ae26e2a2c58d73ef18f9cffa998304259d9b381de7e57cd05size 176313757123version https://git-lfs.github.com/spec/v1oid sha256:cfdba4611fd7b093246309eae7b249da05decff8cde640c8283bfef8e6eaf5fbsize 182817723123version https://git-lfs.github.com/spec/v1oid sha256:77c1650c5f72d418e63848cdb456ee3a27a491e95c142e9cc20855c5aa9758c4size 28266699.DS_StoreAdded
.gitattributes+4
ETT-small/ETTh1.csvAdded
ETT-small/ETTh2.csvAdded
ETT-small/ETTm1.csvAdded
ETT-small/ETTm2.csvAdded
EthanolConcentration/EthanolConcentration_TEST.tsAdded
EthanolConcentration/EthanolConcentration_TRAIN.tsAdded
FaceDetection/FaceDetection_TEST.tsAdded+3
FaceDetection/FaceDetection_TRAIN.tsAdded+3
Handwriting/Handwriting_TEST.tsAdded
Handwriting/Handwriting_TRAIN.tsAdded
Heartbeat/Heartbeat_TEST.tsAdded+3
Heartbeat/Heartbeat_TRAIN.tsAdded+3
JapaneseVowels/JapaneseVowels_TEST.tsAdded
JapaneseVowels/JapaneseVowels_TRAIN.tsAdded
MSL/.DS_StoreAdded
MSL/MSL_test.npyAdded+3
MSL/MSL_test_label.npyAdded+3
MSL/MSL_train.npyAdded+3
PEMS-SF/PEMS-SF_TEST.tsAdded+3
PEMS-SF/PEMS-SF_TRAIN.tsAdded+3
PSM/test.csvAdded+3
PSM/test_label.csvAdded
PSM/train.csvAdded+3
README.md+312-3
SMAP/SMAP_test.npyAdded+3
SMAP/SMAP_test_label.npyAdded+3
SMAP/SMAP_train.npyAdded+3
SMD/SMD_test.npyAdded+3
SMD/SMD_test.pklAdded+3
SMD/SMD_test_label.npyAdded+3
SMD/SMD_test_label.pklAdded+3
SMD/SMD_train.npyAdded+3
SMD/SMD_train.pklAdded+3
SWaT/SWaT_Dataset_Attack_v0.xlsxAdded+3
SWaT/SWaT_Dataset_Normal_v1.xlsxAdded+3
SWaT/data.pyAdded+50
SWaT/swat2.csvAdded+3
SWaT/swat_raw.csvAdded+3
SWaT/swat_train.csvAdded+3
SWaT/swat_train2.csvAdded+3
SelfRegulationSCP1/SelfRegulationSCP1_TEST.tsAdded
SelfRegulationSCP1/SelfRegulationSCP1_TRAIN.tsAdded
SelfRegulationSCP2/SelfRegulationSCP2_TEST.tsAdded
SelfRegulationSCP2/SelfRegulationSCP2_TRAIN.tsAdded
SpokenArabicDigits/SpokenArabicDigits_TEST.tsAdded
SpokenArabicDigits/SpokenArabicDigits_TRAIN.tsAdded+3
UWaveGestureLibrary/UWaveGestureLibrary_TEST.tsAdded
UWaveGestureLibrary/UWaveGestureLibrary_TRAIN.tsAdded