GithubHelp home page GithubHelp logo

time-vq-vae's Introduction

time-VQ-VAE-2 ECG5000

本项目实现了 time-VQ-VAE-2 模型,并应用于 ECG5000 数据集。项目包含数据集加载、模型训练、特征提取和可视化等功能。

项目结构

  • dataset.py:包含数据集类 ECGDataset 的定义。
  • model.py:包含模型架构,基本结构参考自 rosinality/vq-vae-2-pytorch
  • train.ipynb:用于模型训练的 Jupyter Notebook,可以根据需要调整参数。
  • plot.py:包含特征提取和绘图的方法。
  • plot.ipynb:用于测试特征提取和绘图的 Jupyter Notebook。
  • data:包含原始数据文件 ECG5000_TRAIN.txtECG5000_TEST.txt
  • pca_sampletsne_sample:每100个epoch保存一次的特征可视化绘图结果。
  • tsne_progress.gifpca_progress.gif:特征变化的 GIF 动图。

数据集

使用的原始数据集为 ECG5000,包括:

  • 500 个训练样本 (ECG5000_TRAIN.txt)
  • 4500 个测试样本 (ECG5000_TEST.txt)

运行环境

请确保已经安装以下依赖项:

pip install torch torchvision tqdm matplotlib seaborn scikit-learn umap-learn imageio

time-vq-vae's People

Contributors

marrythetoilet avatar

Watchers

 avatar

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.