Giter Site home page Giter Site logo

ml-stars's People

Contributors

sarahmish avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

boom90lb

ml-stars's Issues

'mlstars.custom.timeseries_preprocessing.rolling_window_sequences' target_size = 0

  • ml-stars version: 0.1.1
  • Python version: 3.8
  • Operating System: MacOS

Description

I am trying to create rolling window sequences to feed as input to a reconstruction model (LSTM-AE). Since it's not prediction, you want target_size = 0 so that the last window contains the last point, i.e. all points are captured in the window sequences. However, setting target_size = 0 raises an indexing error at line 108 aka

y_index.append(index[end + offset])

in mlstars/custom/timeseries_preprocessing.py.

What I Did

sample = 'E-10'
train_data = load_signal('multivariate/' + sample)
train_data.head()

window = 100
primitive = load_primitive('mlstars.custom.timeseries_preprocessing.rolling_window_sequences',
                           arguments = {
                               'index': train_data.index,
                               'window_size': window, 
                               'target_size': 0,
                               'step_size': 1,
                               'target_column': None
                           })

X, y, index, target_index = primitive.produce(X=train_data.drop('timestamp', axis=1).to_numpy())

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.