Comments (2)
Thanks @Presburger.
I've uploaded a makeshift multivariate version of Hydra in hydra_multivariate.py
. (Note that this is still experimental, I've only checked that it runs, I don't really know how well it works. It's probably also not particularly efficient at this stage. I will keep the univariate and multivariate code separate for the time being.)
The multivariate version works (at least, for the moment) by assigning a random subset of channels to each of the g groups (using groupwise/depthwise convolution with groups = g
). You have to pass num_channels
(i.e., the number of channels in the multivariate input) as an additional argument to the constructor. Otherwise its usage is the same as for the univariate version.
from hydra_multivariate import HydraMultivariate
[...] # load data
transform = HydraMultivariate(X_training.shape[-1], num_channels = X_training.shape[1])
[...]
A slight variation on this idea is to use multivariate/multichannel kernels. You just need to change torch.randn(divisor, k * _g, 1, 9)
to torch.randn(divisor, k * _g, num_channels_per, 9)
in __init__(...)
, and then change .sum(2)
to .reshape(num_examples, -1, length)
in forward(...)
.
from hydra.
Thank You, @angus924 I will try to use this. minirocket is a excellent features extract tools. Thanks.
from hydra.
Related Issues (9)
- is it possible to implement hydra with numpy? HOT 1
- how to use minirocket_multi and HydraMultivariate together? HOT 1
- Can I use it in a very large dataset, eg . million HOT 6
- Why use simple linear classifiers? HOT 6
- Add an example
- Randomness causes the model to be unstable and impractical! HOT 2
- what does it mean hydra_multivariate.py is experimental HOT 2
- Why use .clamp(0).sqrt() on transformed input? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hydra.