Coder Social home page Coder Social logo

code_evnet_dmtev's Introduction

EVNet: An Explainable Deep Network for Dimension Reduction (EVNet)

The code includes the following modules:

  • Datasets (digits, coil20, coil100, Mnist, EMNIST, KMnsit, Colon, Activity, MCA, Gast10K, Samusik, HCL)
  • Training for EVNet
  • Evaluation metrics
  • Visualisation

Requirements

  • pytorch == 2.1.2
  • pytorch-lightning == 1.9.0
  • torchvision == 0.16.2
  • numpy == 1.26.2
  • scikit-learn == 1.3.2
  • wandb == 0.16.1

Description

  • ./EVNet_main.py -- End-to-end training of the EVNet model
  • ./eval
    • eval/eval_core.py -- The code for evaluate the embedding
  • ./Loss -- Calculate losses
    • ./Loss/dmt_loss_aug.py -- The EVNet loss
    • ./Loss/dmt_loss_source.py -- The template of loss function
  • ./eval -- The yaml file for gird search
  • ./dataloader -- the dataloader
    • ./dataloader/source.py -- The template of dataset
    • ./dataloader/data_base.py -- The EVNet dataset

Dataset

The datasets include six simple image datasets (Digits, Coil20, Coil100, Mnist, EMnist, KMnist) and six biological datasets (Colon, Activity, MCA, Gast10k, SAMUSIK, and HCL).

Running the code

bash main.sh

If you want to use your own dataset, you can use the following command:

CUDA_VISIBLE_DEVICES=-1 python EVNet_main.py --data_name CSV --num_fea_aim 64 --nu 5e-3 --epochs 90 --data_path=data/niu/

If you use 'data/niu/'. The data file should named as data/niu/data.csv, the label file file should named as data/niu/label.csv.

Cite the paper

@article{zang2023evnet,
  title={Evnet: An explainable deep network for dimension reduction},
  author={Zang, Zelin and Cheng, Shenghui and Lu, Linyan and Xia, Hanchen and Li, Liangyu and Sun, Yaoting and Xu, Yongjie and Shang, Lei and Sun, Baigui and Li, Stan Z},
  journal={IEEE Transactions on Visualization and Computer Graphics},
  year={2023},
  publisher={IEEE}
}

License

EVNet is released under the MIT license.

code_evnet_dmtev's People

Contributors

zangzelin avatar

Stargazers

 avatar Yongjie Xu avatar Hong Liu avatar Liangyu Li avatar  avatar  avatar BigCowPeking avatar Miner Song avatar  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.