Coder Social home page Coder Social logo

mqwfrog / mhccl Goto Github PK

View Code? Open in Web Editor NEW
30.0 30.0 10.0 5.18 MB

MHCCL: Masked Hierarchical Cluster-wise Contrastive Learning for Multivariate Time Series - a PyTorch Version (AAAI-2023)

Python 100.00%
contrastive-learning hierarchical-clustering representation-learning time-series time-series-classification

mhccl's People

Contributors

hangwei12358 avatar mqwfrog 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

Watchers

 avatar  avatar  avatar

mhccl's Issues

Good Jobs!

Good Jobs!
Hello, author.After reading your code, I have a question that the model designed specifically for multivariate time series? Does that mean can't run on a univariate time series.

Error: setting an array element with a sequence

Hi, I'm trying to replicate your algorithm, but I've found a value error when I try to run the wisdm dataset:

ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (3,) + inhomogeneous part.

This error is raised at:

augmentations.py, line 41, in permutation
    warp = np.concatenate(np.random.permutation(splits)).ravel()
  File "mtrand.pyx", line 4703, in numpy.random.mtrand.RandomState.permutation

Do you know how I can solve it?

Issues Encountered with Dataset Setup as Listed in the Paper

Hi,

I am attempting to set up the 7 datasets as listed in your paper, and I've encountered several issues. I was able to work with some datasets from UCI and UEA, but others presented challenges.

Successfully Accessed Datasets

PenDigits, EigenWorms, FingerMovements

  • For these UEA datasets, there were no issues.

HAR

  • The HAR dataset was downloaded from the UCI repository.
  • After preprocessing, the HAR dataset matches the number of features and time length as expected.
    HAR Dataset Preprocessing

Issues with Specific Datasets

Epilepsy

  • There seems to be a confusion whether the Epilepsy dataset belongs to UCI or UEA, as discussed in this issue.
  • When using the Epilepsy dataset from UEA, there is a mismatch in the number of features and the time length expected as per the paper. An illustration of the issue is shown below:
    Epilepsy Dataset Issue

WISDM

  • I encountered issues when trying to preprocess the dataset (downloaded from the UCI repository) with the provided code. The code references a specific file named WISDM_ar_v1.1_raw.txt, which was not available in the downloaded files.
  • In an attempt to locate the correct version of the dataset, I searched Google and found a potential match on Kaggle.
  • Despite finding this file and attempting to preprocess it, there remains a mismatch in the number of features and the time length compared to what is expected based on the information in the paper.
    WISDM Dataset Preprocessing Issue

SHAR

  • I am unable to locate the SHAR dataset. While I did find a related dataset on Kaggle, it does not contain a .mat file, which seems to be required for the preprocessing code provided.

I would appreciate any assistance or guidance on accessing and preprocessing these datasets correctly.

Thank you.

Cannot reproduce the reported results on wisdm

Hello, I cannot reproduce good results on wisdm with the following parameter settings, could you share the exact parameter setting for wisdm?

python main.py \
--dataset_name wisdm \
--lr 0.03 \
--batch_size 128 \
--mlp --cos \
--layers 3 \
--posi 2 \
--negi 100 \
--posp 3 \
--negp 4 \
--gpu 7 --epochs 150
--mask_layer0 \
--mask_mode 'mask_threshold'

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.