Giter Site home page Giter Site logo

hope multivariate version about hydra HOT 2 CLOSED

angus924 avatar angus924 commented on August 19, 2024
hope multivariate version

from hydra.

Comments (2)

angus924 avatar angus924 commented on August 19, 2024 1

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.

Presburger avatar Presburger commented on August 19, 2024

Thank You, @angus924 I will try to use this. minirocket is a excellent features extract tools. Thanks.

from hydra.

Related Issues (9)

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.