MLP Layer | FAN layer | |
---|---|---|
Formula | ||
Num of Params | ||
FLOPs |
|
|
cd Periodicity_Modeling
bash ./run.sh
The data can be automatically downloaded using the Huggingface Datasets load_dataset
function in the ./Sentiment_Analysis/get_dataloader.py
.
cd Sentiment_Analysis
bash scripts/Trans_with_FAN/train_ours.sh
bash scripts/Trans_with_FAN/test_ours.sh
You can obtain data from Google Drive. All the datasets are well pre-processed and can be used easily.
cd Timeseries_Forecasting
bash scripts/Weather_script/Modified_Transformer.sh
cd Symbolic_Formula_Representation
python gen_dataset.py
bash run_train_fan.sh
cd Image_Recognition
bash run_image_recognition.sh
We update the results on image recognition tasks and the detailed setup can be found in the Appendix of our latest-version paper.
@article{dong2024fan,
title={FAN: Fourier Analysis Networks},
author={Yihong Dong and Ge Li and Yongding Tao and Xue Jiang and Kechi Zhang and Jia Li and Jing Su and Jun Zhang and Jingjing Xu},
journal={arXiv preprint arXiv:2410.02675},
year={2024}
}