GithubHelp home page GithubHelp logo

benibaeumle / learning-shapelets Goto Github PK

View Code? Open in Web Editor NEW
44.0 44.0 7.0 73.75 MB

A PyTorch implementation of learning shapelets from the paper Grabocka et al., „Learning Time-Series Shapelets“.

License: MIT License

Python 39.94% Jupyter Notebook 60.06%

learning-shapelets's People

Contributors

benibaeumle 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

Watchers

 avatar

learning-shapelets's Issues

Hyperparameter Tuning

Hi! I had a question about your HP Tuning process:

we performed a hyperparameter search over 18 different shapelet configurations. For each of the 18 shapelet configurations, we trained three models

How do you select the best configuration? Do you utilize a fixed validation set or cross-validation?

Bug in regularization for data with >1 feature

Hi I am trying to run the demo model with regularization on a new dataset that is shape (1200,165,144), with samples being 1200 features being 165, and timepoints being 144. When I sub in my data for the demo code (without normalization), I get the following message: "t() expects a tensor with <= 2 dimensions, but self is 3D". I suspect this is due to the number of features being >1. To test this, I took 1 feature of my data (ie data[:,0:1,:]) and the code works (although not a great accuracy!).

Code block that yields the error:

losses_acc = []
losses_dist = []
losses_sim = []
train_acc_last_Lr = 0
for _ in range(n_epoch_steps):
    losses_acc_i, losses_dist_i, losses_sim_i = \
        learning_shapelets_Lr.fit(X_train, y_train, epochs=epochs, batch_size=batch_size,
                                  shuffle=shuffle, drop_last=drop_last)
    losses_acc += losses_acc_i
    losses_dist += losses_dist_i
    losses_sim += losses_sim_i
    train_acc_current_Lr = eval_accuracy(learning_shapelets_Lr, X_train, y_train)
    if train_acc_current_Lr - train_acc_last_Lr < 1e-3 or train_acc_current_Lr == 1.0:
        break
    train_acc_last_Lr = train_acc_current_Lr

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.