Git Product home page Git Product logo

deepseries's Introduction

DeepSeries

This python package is built on top of Tensorflow and implements Long-short-term-memory neural networks for time series prediction. The learners can be found in deepseries.py, while some data pre-processing operations are implemented in preprocessing.py.

Cool features include:

  • Ability to take both continuous and categorical data (or a mixture) as input and output.
  • Option to feed arbitrary weights for the data samples at the training stage.
  • Although training data needs to be input as sequences of fixed size, the prediction methods can generate output sequences of arbitrary length.

Please take a look at the examples/ folder for simple demos, which include text sequencing, time series classification and time series sequencing.

Installation

Install TensorFlow. Then, clone or download this repo on your system. Go inside the root directory of the package, and type

pip install .

Main classes:

DeepSeries

Base class supporting the core functionality. Not meant to be used directly.

Sequencer

Takes a series as input, and continues to generate new points into the "future". For training, this class needs to be fed with sequence chunks of a fixed size (the class preprocessing.Slicer can be used for that). The length of each chunk determines the extent to which the network will try to keep a memory of the sequence being analyzed. For predictions, we need to supply the initial sequence that we want to extend forward. Unlike during training, you may use any length for the initial sequence, as well as for the output. However, best results are achieved if the input sequence has the same length as the training chunk size. The motivation to implement this flexibility is that, in real-world time series problems, not all the series points are always available when we need to predict a sample. deepseries.Sequencer offers the possibility of predicting with whatever information is ready. Sequences can be either real numbers, one-hot encoded classes, or a mixture of these.

many2oneClassifier

This classifier tries to predict a label based on a sequence of points. While deepseries.Sequencer is a sequence-to-sequence predictor (where the sequence is the same), deepseries.many2oneClassifier does sequence-to-label. Here, the sequence can be composed of multiple time series channels, with real number data or categorical (one-hot encoded). The target labels must be one-hot encoded. This class will deliver label predictions, as well as class-probabilities.

many2oneRegressor

This is similar to many2oneClassifier, but instead of labels, it targets real numbers, as in sequence-to-number. It can also take multiple time series channels as input.

deepseries's People

Stargazers

Steven avatar tz ✨ avatar Maximilian Christ avatar

Watchers

Jesus Martinez Manso avatar Maximilian Christ 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.