Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
naminshenren 42e35e7b38 | 1 year ago | |
---|---|---|
.idea | 1 year ago | |
.ipynb_checkpoints | 1 year ago | |
checkpoints/donggua_30_15_In_Priceformer_donggua_ftS_sl7_ll3_pl7_dm512_nh8_el2_dl1_df2048_fc3_ebtimeF_dtTrue_'Exp'_0 | 1 year ago | |
data_provider | 1 year ago | |
dataset/Dataset | 1 year ago | |
exp | 1 year ago | |
layers | 1 year ago | |
models | 1 year ago | |
pic | 1 year ago | |
results/donggua_30_15_In_Priceformer_donggua_ftS_sl7_ll3_pl7_dm512_nh8_el2_dl1_df2048_fc3_ebtimeF_dtTrue_'Exp'_0 | 1 year ago | |
scripts/price_script | 1 year ago | |
test_results | 1 year ago | |
utils | 1 year ago | |
README.md | 1 year ago | |
run.py | 1 year ago |
Priceformer: An algorithm for forecasting commodity price trend based on Transformer
Here we provide the implementation of a (Priceformer) layer in Pytorch. The repository is organised as follows:
dataset/
put you data here ;models/
contains the implementation of the Priceformer network (Priceformer.py
);checkpoints/
contains a pre-trained Priceformer model;Finally, run.py
puts all of the above together and may be used to execute a full training run on you data by executing
python3 -u run.py\ --is_training 1\ --root_path ./dataset/Dataset/\ --data_path **Your data path**\ --model_id *Your model ID*\ --model Priceformer\ --data *Your data name*\ --features S\ --seq_len 7\ --label_len 3\ --pred_len 7\ --e_layers 2\ --d_layers 1\ --factor 3\ --enc_in 1\ --dec_in 1\ --c_out 1\ --des 'Exp'\ --itr 1\ --target *Your target*
.
The script has been tested running under Python 3.5.2, with the following packages installed (along with their dependencies):
numpy==1.19.2
scipy==1.0.0
scikit-learn==0.24.2
pandas==1.1.5
matplotlib==3.3.4
pytorch==1.4.0
In addition, CUDA 9.0 and cuDNN 7 have been used.
This work was supported by the National Key R&D Program of China under Grant No. 2020AAA0103804(Sponsor: Hefu Liu) and partially supported by grants from the National Natural Science Foundation of China (No.72004021). This work belongs to the University of science and technology of China.
Priceformer: An algorithm for forecasting commodity price trend based on Transformer
Python CSV Jupyter Notebook Markdown other
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》