benibaeumle / learning-shapelets Goto Github PK
View Code? Open in Web Editor NEWA PyTorch implementation of learning shapelets from the paper Grabocka et al., „Learning Time-Series Shapelets“.
License: MIT License
A PyTorch implementation of learning shapelets from the paper Grabocka et al., „Learning Time-Series Shapelets“.
License: MIT License
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?
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.