Coder Social home page Coder Social logo

deeptimeseries's Introduction

Welcome to the Deep Time Series Project

Deep Time Series is a library to help you quickly build complicated time-series deep learning models such as RNN2Dense, Seq2Seq, Attention-Based, etc. This library is based on Python and the famous deep learning package Keras. All the APIs are made to as close to Keras as possible. Therefore, if you are familar with Keras, you should be able to hands-on in seconds.

Note: Time Series data can be various. Any series data that can be vectorized can be considered as inputs to this library. Therefore, multi-variables time series data, time-dependent images, speeches, text translation, etc., should be all compatible to this library.

Usage

Prepare Your Data in Time-Series Format

Deep Time Series has built-in functions that helps you convert your standard time series dataframe to supervised learning format. For example, we have the following time series dataframe in Pandas:

Usually, you should have two such dataframe. One is for the input data the other is the target data (we're doing supervised learning, right?). Then you can simply convert them to format that are good for supervised learning by calling the function:

, where the n_memory_step is the number of previous time steps you want to use for each time step and n_forcast_step is the number of future time steps you want to forcast. split = 0.8 will split the first 80% time steps as train set and the rest 20% time steps as test set.

Build and Train Your Models

In Deep Time Series, all models are wrapped into a single objects. To build a model, e.g. sequence-to-sequence model, you can just type:

As you may immediately notice that the commands here are almost identical to Keras. Yes, this is the purpose of this library, i.e. a time-series model-based library that helps you build complicated time-series models in just a few lines.

Save and Reload model

Once your model is trained, you can save and reload the model for future inference. Also, the syntaxs are almost identical to Keras:

A complete example can be found here

Supported Models

Currently Deep Time Series supports three major frameworks as shown below. Each framework supports simple RNN, LSTM, GRU as their RNN cell. Therefore there are 9 popular models. Other models such as teacher-forcing Seq2Seq and Attention-based will be included soon.

deeptimeseries's People

Contributors

pipidog avatar

Watchers

 avatar  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.