Giter Club home page Giter Club logo

transformer_timeseriesforecasting's Introduction

【Pytorch】 Transformerを用いた時系列予測

「【Pytorch】 Transformerを用いた時系列予測」(https://qiita.com/apple-pie/items/7c046f1c0da60e8a4ff8 )に使用したコードです。 seq2seq.ipynbをダウンロードしてgoogle colabなどで実行するのみで予測を行うことができます。

概要

自然言語処理や音声処理でよく用いられるTransformerを時系列予測に応用しました。モデルの概略図は以下のようになります。

seabornの中にあるair passengersというデータを用いて、このTransformerによる予測を行いました。 訓練用、評価用、テスト用データを以下のように分け、訓練用データで訓練し、評価用データで最も良いで精度を達成したモデルを最も良いモデルとして、テスト用データの予測を行いました。

大体は予測できていますが、細かい部分が予測できていません。パラメータなどを調整したりすれば改善するかもしれません。 時間のある方は試してみてください。

transformer_timeseriesforecasting's People

Contributors

kodakoda-koda avatar

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.