gitextract_owuozh1h/ ├── .idea/ │ ├── .gitignore │ ├── deployment.xml │ ├── inspectionProfiles/ │ │ ├── Project_Default.xml │ │ └── profiles_settings.xml │ ├── modules.xml │ ├── time-series-ptms.iml │ └── vcs.xml ├── README.md ├── ts_anomaly_detection_methods/ │ ├── README.md │ ├── anomaly_transformer/ │ │ ├── ATmodelbatch.py │ │ ├── datautils.py │ │ ├── models/ │ │ │ ├── __init__.py │ │ │ ├── anomaly_transformer_model.py │ │ │ ├── dilated_conv.py │ │ │ ├── encoder.py │ │ │ └── losses.py │ │ ├── tasks/ │ │ │ ├── __init__.py │ │ │ └── anomaly_detection.py │ │ ├── train.py │ │ ├── trainATbatch.py │ │ ├── ts2vec.py │ │ └── utils.py │ └── other_anomaly_baselines/ │ ├── AT_solver.py │ ├── ATmodelbatch.py │ ├── README.md │ ├── dataset_read_test.py │ ├── datautils.py │ ├── dcdetector_solver.py │ ├── donut.py │ ├── exp_anomaly_detection.py │ ├── hello_test_evo.py │ ├── lstm_vae.py │ ├── metrics/ │ │ ├── AUC.py │ │ ├── Matthews_correlation_coefficient.py │ │ ├── affiliation/ │ │ │ ├── _affiliation_zone.py │ │ │ ├── _integral_interval.py │ │ │ ├── _single_ground_truth_event.py │ │ │ ├── generics.py │ │ │ └── metrics.py │ │ ├── combine_all_scores.py │ │ ├── customizable_f1_score.py │ │ ├── evaluate_utils.py │ │ ├── evaluator.py │ │ ├── f1_score_f1_pa.py │ │ ├── f1_series.py │ │ ├── fc_score.py │ │ ├── metrics.py │ │ ├── precision_at_k.py │ │ └── vus/ │ │ ├── analysis/ │ │ │ ├── robustness_eval.py │ │ │ └── score_computation.py │ │ ├── metrics.py │ │ ├── models/ │ │ │ ├── distance.py │ │ │ └── feature.py │ │ └── utils/ │ │ ├── metrics.py │ │ └── slidingWindows.py │ ├── models/ │ │ ├── AnomalyTransformer.py │ │ ├── DCdetector.py │ │ ├── GPT4TS.py │ │ ├── TimesNet.py │ │ ├── __init__.py │ │ ├── dilated_conv.py │ │ ├── donut_model.py │ │ ├── encoder.py │ │ ├── losses.py │ │ └── lstm_vae_model.py │ ├── new_dataset_read_test.py │ ├── scripts/ │ │ ├── at_zeta0.sh │ │ ├── at_zeta1.sh │ │ ├── generator_sh.py │ │ ├── kpi.sh │ │ ├── multi_at.sh │ │ ├── ucr_at.sh │ │ ├── ucr_at_delta_0.sh │ │ ├── ucr_at_delta_1.sh │ │ ├── ucr_at_delta_1_2.sh │ │ ├── ucr_at_zeta0.sh │ │ ├── uni_at.sh │ │ └── yahoo.sh │ ├── spot.py │ ├── tasks/ │ │ ├── __init__.py │ │ └── anomaly_detection.py │ ├── train.py │ ├── trainATbatch.py │ ├── train_at_multi.py │ ├── train_at_uni.py │ ├── train_dcdetector.py │ ├── train_dcdetector_nui.py │ ├── train_donut.py │ ├── train_donut_multi.py │ ├── train_dspot.py │ ├── train_dspot_multi.py │ ├── train_gpt4ts.py │ ├── train_gpt4ts_uni.py │ ├── train_lstm_vae.py │ ├── train_lstm_vae_multi.py │ ├── train_spot.py │ ├── train_spot_multi.py │ ├── train_timesnet.py │ ├── train_timesnet_uni.py │ ├── train_ts2vec.py │ ├── train_ts2vec_multi.py │ ├── ts2vec.py │ └── utils.py ├── ts_classification_methods/ │ ├── .gitignore │ ├── README.md │ ├── data/ │ │ ├── __init__.py │ │ ├── dataloader.py │ │ └── preprocessing.py │ ├── environment.yaml │ ├── gpt4ts/ │ │ ├── __init__.py │ │ ├── gpt4ts_utils.py │ │ ├── main_gpt4ts.py │ │ ├── main_gpt4ts_ucr.py │ │ ├── models/ │ │ │ ├── __init__.py │ │ │ ├── embed.py │ │ │ ├── gpt4ts.py │ │ │ └── loss.py │ │ └── scripts/ │ │ └── generator_gpt4ts.py │ ├── model/ │ │ ├── __init__.py │ │ ├── loss.py │ │ └── tsm_model.py │ ├── patchtst/ │ │ ├── __init__.py │ │ ├── main_patchtst_iota.py │ │ ├── main_patchtst_ucr.py │ │ ├── mian_patchtst.py │ │ ├── models/ │ │ │ ├── __init__.py │ │ │ ├── attention.py │ │ │ ├── basics.py │ │ │ ├── heads.py │ │ │ ├── patchTST.py │ │ │ ├── pos_encoding.py │ │ │ └── revin.py │ │ ├── patch_mask.py │ │ └── scripts/ │ │ └── generator_patchtst.py │ ├── result_tsm/ │ │ ├── ChlorineConcentration/ │ │ │ ├── classifier_weights.pt │ │ │ ├── fcn_reconstruction_pretrain_weights.pt │ │ │ ├── pretrain_weights.pt │ │ │ └── rnn_reconstruction_pretrain_weights.pt │ │ ├── Crop/ │ │ │ ├── classifier_weights.pt │ │ │ ├── fcn_reconstruction_pretrain_weights.pt │ │ │ ├── pretrain_weights.pt │ │ │ └── rnn_reconstruction_pretrain_weights.pt │ │ ├── ECG5000/ │ │ │ ├── classifier_weights.pt │ │ │ ├── fcn_reconstruction_pretrain_weights.pt │ │ │ ├── pretrain_weights.pt │ │ │ └── rnn_reconstruction_pretrain_weights.pt │ │ ├── ElectricDevices/ │ │ │ ├── classifier_weights.pt │ │ │ ├── fcn_reconstruction_pretrain_weights.pt │ │ │ ├── pretrain_weights.pt │ │ │ └── rnn_reconstruction_pretrain_weights.pt │ │ ├── FordA/ │ │ │ ├── classifier_weights.pt │ │ │ ├── fcn_reconstruction_pretrain_weights.pt │ │ │ ├── pretrain_weights.pt │ │ │ └── rnn_reconstruction_pretrain_weights.pt │ │ ├── FordB/ │ │ │ ├── classifier_weights.pt │ │ │ ├── fcn_reconstruction_pretrain_weights.pt │ │ │ ├── pretrain_weights.pt │ │ │ └── rnn_reconstruction_pretrain_weights.pt │ │ ├── NonInvasiveFetalECGThorax1/ │ │ │ ├── classifier_weights.pt │ │ │ ├── fcn_reconstruction_pretrain_weights.pt │ │ │ ├── pretrain_weights.pt │ │ │ └── rnn_reconstruction_pretrain_weights.pt │ │ ├── NonInvasiveFetalECGThorax2/ │ │ │ ├── classifier_weights.pt │ │ │ ├── fcn_reconstruction_pretrain_weights.pt │ │ │ ├── pretrain_weights.pt │ │ │ └── rnn_reconstruction_pretrain_weights.pt │ │ ├── StarLightCurves/ │ │ │ ├── classifier_weights.pt │ │ │ ├── fcn_reconstruction_pretrain_weights.pt │ │ │ ├── pretrain_weights.pt │ │ │ └── rnn_reconstruction_pretrain_weights.pt │ │ ├── TwoPatterns/ │ │ │ ├── classifier_weights.pt │ │ │ ├── fcn_reconstruction_pretrain_weights.pt │ │ │ ├── pretrain_weights.pt │ │ │ └── rnn_reconstruction_pretrain_weights.pt │ │ ├── UWaveGestureLibraryAll/ │ │ │ ├── classifier_weights.pt │ │ │ ├── fcn_reconstruction_pretrain_weights.pt │ │ │ ├── pretrain_weights.pt │ │ │ └── rnn_reconstruction_pretrain_weights.pt │ │ ├── UWaveGestureLibraryX/ │ │ │ ├── classifier_weights.pt │ │ │ ├── fcn_reconstruction_pretrain_weights.pt │ │ │ ├── pretrain_weights.pt │ │ │ └── rnn_reconstruction_pretrain_weights.pt │ │ ├── UWaveGestureLibraryY/ │ │ │ ├── classifier_weights.pt │ │ │ ├── fcn_reconstruction_pretrain_weights.pt │ │ │ ├── pretrain_weights.pt │ │ │ └── rnn_reconstruction_pretrain_weights.pt │ │ ├── UWaveGestureLibraryZ/ │ │ │ ├── classifier_weights.pt │ │ │ ├── fcn_reconstruction_pretrain_weights.pt │ │ │ ├── pretrain_weights.pt │ │ │ └── rnn_reconstruction_pretrain_weights.pt │ │ └── Wafer/ │ │ ├── classifier_weights.pt │ │ ├── fcn_reconstruction_pretrain_weights.pt │ │ ├── pretrain_weights.pt │ │ └── rnn_reconstruction_pretrain_weights.pt │ ├── scripts/ │ │ ├── dilated_single_norm.sh │ │ ├── fcn_lin_set_norm.sh │ │ ├── fcn_lin_single_norm.sh │ │ ├── generator_dilated.py │ │ ├── generator_fcn.py │ │ ├── generator_pretrain_cls.py │ │ └── transfer_pretrain_finetune.sh │ ├── selftime_cls/ │ │ ├── __init__.py │ │ ├── config/ │ │ │ ├── CricketX_config.json │ │ │ ├── DodgerLoopDay_config.json │ │ │ ├── InsectWingbeatSound_config.json │ │ │ ├── MFPT_config.json │ │ │ ├── UWaveGestureLibraryAll_config.json │ │ │ └── XJTU_config.json │ │ ├── dataloader/ │ │ │ ├── TSC_data_loader.py │ │ │ ├── __init__.py │ │ │ └── ucr2018.py │ │ ├── dataprepare.py │ │ ├── evaluation/ │ │ │ ├── __init__.py │ │ │ └── eval_ssl.py │ │ ├── model/ │ │ │ ├── __init__.py │ │ │ ├── model_RelationalReasoning.py │ │ │ └── model_backbone.py │ │ ├── optim/ │ │ │ ├── __init__.py │ │ │ ├── pretrain.py │ │ │ ├── pytorchtools.py │ │ │ └── train.py │ │ ├── scripts/ │ │ │ └── ucr.sh │ │ ├── train_ssl.py │ │ └── utils/ │ │ ├── __init__.py │ │ ├── augmentation.py │ │ ├── datasets.py │ │ ├── helper.py │ │ ├── transforms.py │ │ ├── utils.py │ │ └── utils_plot.py │ ├── test/ │ │ ├── __init__.py │ │ ├── train_uea_test.py │ │ └── uea_test.py │ ├── timesnet/ │ │ ├── __init__.py │ │ ├── main_timesnet.py │ │ ├── main_timesnet_ucr.py │ │ ├── models/ │ │ │ ├── Conv_Blocks.py │ │ │ ├── Embed.py │ │ │ ├── SelfAttention_Family.py │ │ │ ├── TimesNet.py │ │ │ ├── Transformer.py │ │ │ ├── Transformer_EncDec.py │ │ │ └── __init__.py │ │ └── scripts/ │ │ └── generator_timesnet.py │ ├── tloss_cls/ │ │ ├── default_hyperparameters.json │ │ ├── losses/ │ │ │ ├── __init__.py │ │ │ └── triplet_loss.py │ │ ├── networks/ │ │ │ ├── __init__.py │ │ │ ├── causal_cnn.py │ │ │ └── lstm.py │ │ ├── scikit_wrappers.py │ │ ├── scripts/ │ │ │ ├── ucr.sh │ │ │ └── uea.sh │ │ ├── transfer_ucr.py │ │ ├── ucr.py │ │ ├── uea.py │ │ └── utils.py │ ├── train.py │ ├── ts2vec_cls/ │ │ ├── __init__.py │ │ ├── datautils.py │ │ ├── models/ │ │ │ ├── __init__.py │ │ │ ├── dilated_conv.py │ │ │ ├── encoder.py │ │ │ └── losses.py │ │ ├── result/ │ │ │ └── ts2vec_tsm_train_val_b8_single_norm_0409_cls_result.csv │ │ ├── scripts/ │ │ │ ├── generator_ts2vec.py │ │ │ ├── generator_ts2vec_uea.py │ │ │ ├── ts2vec_fcn_set_norm.sh │ │ │ ├── ts2vec_fcn_single_norm.sh │ │ │ ├── ts2vec_tsm_set_norm.sh │ │ │ ├── ts2vec_tsm_single_norm.sh │ │ │ └── ts2vec_tsm_uea.sh │ │ ├── tasks/ │ │ │ ├── __init__.py │ │ │ ├── _eval_protocols.py │ │ │ └── classification.py │ │ ├── train.py │ │ ├── train_fcn.py │ │ ├── train_tsm.py │ │ ├── train_tsm_uea.py │ │ ├── ts2vec.py │ │ └── utils.py │ ├── tsm_utils.py │ ├── tst_cls/ │ │ ├── scripts/ │ │ │ ├── classification.sh │ │ │ └── pretrain_finetune.sh │ │ └── src/ │ │ ├── __init__.py │ │ ├── dataprepare.py │ │ ├── datasets/ │ │ │ ├── __init__.py │ │ │ ├── data.py │ │ │ ├── dataset.py │ │ │ ├── datasplit.py │ │ │ └── utils.py │ │ ├── main.py │ │ ├── models/ │ │ │ ├── __init__.py │ │ │ ├── loss.py │ │ │ └── ts_transformer.py │ │ ├── optimizers.py │ │ ├── options.py │ │ ├── running.py │ │ └── utils/ │ │ ├── __init__.py │ │ ├── analysis.py │ │ └── utils.py │ ├── tstcc_cls/ │ │ ├── __init__.py │ │ ├── config_files/ │ │ │ ├── ucr_Configs.py │ │ │ └── uea_Configs.py │ │ ├── dataloader/ │ │ │ ├── augmentations.py │ │ │ └── dataloader.py │ │ ├── main.py │ │ ├── main_ucr.py │ │ ├── main_uea.py │ │ ├── models/ │ │ │ ├── TC.py │ │ │ ├── attention.py │ │ │ ├── loss.py │ │ │ └── model.py │ │ ├── result/ │ │ │ └── tstcc_0327_cls_result.csv │ │ ├── scripts/ │ │ │ ├── fivefold_tstcc_ucr.sh │ │ │ ├── fivefold_tstcc_uea.sh │ │ │ ├── generator_ucr.py │ │ │ ├── generator_uea.py │ │ │ └── part_uea_tstcc.sh │ │ ├── trainer/ │ │ │ └── trainer.py │ │ └── utils.py │ ├── visualize.py │ └── visuals/ │ ├── GunPoint/ │ │ ├── classifier_NonInvasiveFetalECGThorax1_linear.pt │ │ ├── direct_dilated_classifier.pt │ │ ├── direct_dilated_encoder.pt │ │ ├── direct_fcn_classifier.pt │ │ ├── direct_fcn_encoder.pt │ │ ├── encoder_NonInvasiveFetalECGThorax1_linear.pt │ │ ├── supervised_classifier_ElectricDevices_linear.pt │ │ ├── supervised_classifier_UWaveGestureLibraryX_linear.pt │ │ ├── supervised_encoder_ElectricDevices_linear.pt │ │ ├── supervised_encoder_UWaveGestureLibraryX_linear.pt │ │ ├── unsupervised_classifier_UWaveGestureLibraryX_linear.pt │ │ └── unsupervised_encoder_UWaveGestureLibraryX_linear.pt │ ├── MixedShapesSmallTrain/ │ │ ├── direct_fcn_linear_encoder_weights.pt │ │ ├── fcn_linear_encoder_finetune_weights_ElectricDevices.pt │ │ └── fcn_linear_encoder_finetune_weights_UWaveGestureLibraryZ.pt │ └── Wine/ │ ├── direct_fcn_encoder.pt │ ├── direct_fcn_linear_encoder_weights.pt │ ├── encoder_Crop_linear.pt │ ├── encoder_NonInvasiveFetalECGThorax1_linear.pt │ └── encoder_UWaveGestureLibraryZ_linear.pt └── ts_forecasting_methods/ ├── CoST/ │ ├── CODEOWNERS │ ├── CODE_OF_CONDUCT.md │ ├── LICENSE.txt │ ├── README.md │ ├── SECURITY.md │ ├── cost.py │ ├── datasets/ │ │ ├── PLACE_DATASETS_HERE │ │ ├── electricity.py │ │ └── m5.py │ ├── datautils.py │ ├── models/ │ │ ├── __init__.py │ │ ├── dilated_conv.py │ │ └── encoder.py │ ├── requirements.txt │ ├── scripts/ │ │ ├── ETT_CoST.sh │ │ ├── Electricity_CoST.sh │ │ ├── M5_CoST.sh │ │ └── Weather_CoST.sh │ ├── tasks/ │ │ ├── __init__.py │ │ ├── _eval_protocols.py │ │ └── forecasting.py │ ├── train.py │ └── utils.py ├── Other_baselines/ │ ├── README.md │ ├── __init__.py │ ├── data_config.yml │ ├── data_provider/ │ │ ├── __init__.py │ │ ├── data_factory.py │ │ ├── data_factory_tempo.py │ │ ├── data_loader.py │ │ ├── data_loader_tempo.py │ │ ├── m4.py │ │ └── uea.py │ ├── exp/ │ │ ├── __init__.py │ │ ├── exp_basic.py │ │ ├── exp_basic_patch.py │ │ ├── exp_long_term_forecasting.py │ │ ├── exp_main.py │ │ └── exp_short_term_forecasting.py │ ├── layers/ │ │ ├── AutoCorrelation.py │ │ ├── Autoformer_EncDec.py │ │ ├── Conv_Blocks.py │ │ ├── Embed.py │ │ ├── PatchTST_backbone.py │ │ ├── PatchTST_layers.py │ │ ├── RevIN.py │ │ ├── SelfAttention_Family.py │ │ ├── Transformer_EncDec.py │ │ └── __init__.py │ ├── models/ │ │ ├── Autoformer.py │ │ ├── DLinear.py │ │ ├── GPT4TS.py │ │ ├── Informer.py │ │ ├── LogTrans.py │ │ ├── PatchTST.py │ │ ├── PatchTST_raw.py │ │ ├── TCN.py │ │ ├── TEMPO.py │ │ ├── TimesNet.py │ │ ├── __init__.py │ │ └── iTransformer.py │ ├── train_autoformer.py │ ├── train_cost.py │ ├── train_dlinear.py │ ├── train_gpt4ts.py │ ├── train_informer.py │ ├── train_itransformer.py │ ├── train_logtrans.py │ ├── train_patchtst.py │ ├── train_tcn.py │ ├── train_tempo.py │ ├── train_timesnet.py │ ├── train_ts2vec.py │ └── utils/ │ ├── ADFtest.py │ ├── __init__.py │ ├── augmentation.py │ ├── dtw.py │ ├── dtw_metric.py │ ├── losses.py │ ├── m4_summary.py │ ├── masking.py │ ├── metrics.py │ ├── print_args.py │ ├── rev_in.py │ ├── timefeatures.py │ ├── tools.py │ └── tools_tempo.py ├── README.md ├── SupervisedBaselines/ │ ├── Dockerfile │ ├── LICENSE │ ├── Makefile │ ├── README.md │ ├── data_provider/ │ │ ├── __init__.py │ │ ├── data_factory.py │ │ └── data_loader.py │ ├── environment.yml │ ├── exp/ │ │ ├── __init__.py │ │ ├── exp_basic.py │ │ ├── exp_informer.py │ │ └── exp_main.py │ ├── layers/ │ │ ├── AutoCorrelation.py │ │ ├── Autoformer_EncDec.py │ │ ├── Embed.py │ │ ├── SelfAttention_Family.py │ │ ├── Transformer_EncDec.py │ │ └── __init__.py │ ├── requirements.txt │ ├── run.py │ └── utils/ │ ├── __init__.py │ ├── download_data.py │ ├── masking.py │ ├── metrics.py │ ├── timefeatures.py │ └── tools.py └── ts2vec/ ├── README.md ├── __init__.py ├── data_provider/ │ ├── __init__.py │ ├── data_factory.py │ ├── data_loader.py │ ├── m4.py │ ├── metrics.py │ ├── tools.py │ └── uea.py ├── datautils.py ├── forecasting_datasets_load_test.py ├── models/ │ ├── __init__.py │ ├── dilated_conv.py │ ├── encoder.py │ └── losses.py ├── requirements.txt ├── scripts/ │ ├── electricity.sh │ ├── ett.sh │ ├── kpi.sh │ ├── ucr.sh │ ├── uea.sh │ └── yahoo.sh ├── tasks/ │ ├── __init__.py │ ├── _eval_protocols.py │ ├── anomaly_detection.py │ ├── classification.py │ └── forecasting.py ├── train.py ├── ts2vec.py └── utils.py