Code Monkey home page Code Monkey logo

kdd_wind_power_forecast's Introduction

KDD Cup 2022 Wind Power Forecast

This is our solution to the KDD Cup 2022 spatial dynamic wind power forecast challenge, see the competition webpage for more information of the challenge itself.

Team name: didadida_hualahuala
Placement: 6th (of 2490 teams)
Final score (3rd phase): -45.18139

The solution uses a combination of two models: MDLinear and XGTN, see the technical report for the details. A quick summary can be found in our presentation slides and our video presentation. The trained models used for the final score are included in this repository.

Training

The training data can be downloaded on the competition website: https://aistudio.baidu.com/aistudio/competition/detail/152/0/datasets.
Put this file into the data folder before starting to train the models.

All parameter settings are adjusted in the methods/prepare.py file. The default settings were used for the competition results.
To train the models, run

python train_mdlinear.py

and

python train_xtgn.py

in any order. The trained models and any relevant files are saved to the methods/checkpoints folder (this folder is shared for both methods).

Forecast

To evaluate our method, we use the provided test dataset (in data/test_x and data/test_y). The input data contains 14 days and since we do not require that much we use a sliding window to create more test data (see the techincal report). The code for this is included in data/split_test_file.py. To use the single test file instead, adjust the values of path_to_test_x and path_to_test_y in methods/prepare.py.

To run the forecast and evaluate the score, use:

python evaluate.py

kdd_wind_power_forecast's People

Contributors

havetry avatar shaido987 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

kdd_wind_power_forecast's Issues

FileNotFoundError

hello! here are some question. when I python train_xtgn.py ,It goes rong . the rong messages are following:

Traceback (most recent call last):
File "train_xtgn.py", line 180, in
main(args, model_dir)
File "train_xtgn.py", line 34, in main
data_loader, _ = load_wp_dataset_mask(model_dir, args['ratio'], args['batch_size'], args['batch_size'],
File "/csg/shzhou/bingcheng_KDD/KDD_wind_power_forecast-main/KDD_wind_power_forecast-main/methods/xtgn/data_process/util.py", line 154, in load_wp_dataset_mask
cat_data = np.load(os.path.join(dataset_dir, category + f"_{ratio}_new_mask.npz"))
File "/csg/shzhou/anaconda3/envs/pytorch/lib/python3.8/site-packages/numpy/lib/npyio.py", line 407, in load
fid = stack.enter_context(open(os_fspath(file), "rb"))
FileNotFoundError: [Errno 2] No such file or directory: 'methods/checkpoints/xtgn-2/train_9_new_mask.npz'

wish you best!!! hope receiving your answer!!!

detailed performance for model

Dear @shaido987 ,

Thanks for sharing such nice solution.

I noticed you use 2 models here, DLinear and GraphWavenet. Both of them sounds interesting. Do you mind to share each model's performance respectively, I just want to know which model performs better.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.