Skip to main content

Installation

$ pip install eeg-dementia-classification-MNet

Pretrained Weights

Pretrained weights are available on our Google Drive.

  1. Download 'pretrained_weights.tar.gz'.
  2. Extract the file using the following command:
$ tar xvf pretrained_weights.tar.gz
  1. Locate the extradcted 'pretrained_weights' directory at the working directory. As an illustration, the weight files (.pth) should be organized as follows:
./pretrained_weights/
├── AD_vs_DLB
│   ├── model_fold#0_epoch#045.pth
│   ├── model_fold#1_epoch#031.pth
│   ├── model_fold#2_epoch#029.pth
│   ├── model_fold#3_epoch#031.pth
│   └── model_fold#4_epoch#028.pth
├── AD_vs_DLB_vs_NPH
│   ├── model_fold#0_epoch#024.pth
│   ├── model_fold#1_epoch#035.pth
...

Usage

from eeg_dementia_classification_MNet import MNet_1000
import torch

## Parameters
DISEASE_TYPES = ["HV", "AD", "DLB", "NPH"]

## MNet
model = MNet_1000(DISEASE_TYPES, is_ensemble=True)
model.load_weights(i_fold=0)

## Feeds data
bs, n_chs, seq_len = 16, 19, 1000
x = torch.rand(bs, n_chs, seq_len)
y = model(x)

Contact

Please feel free to contact the author.

Metadata

Release files for eeg-dementia-classification-MNet 1.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for eeg-dementia-classification-MNet 1.4.1
File Size Uploaded Provenance
eeg_dementia_classification_MNet-1.4.1.tar.gz 6.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for eeg-dementia-classification-MNet 1.4.1
File Interpreter ABI Platform
eeg_dementia_classification_MNet-1.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 14.7 kB

Release files / eeg_dementia_classification_MNet-1.4.1.tar.gz

Download URL eeg_dementia_classification_MNet-1.4.1.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9092781daa0fd03b52db0d98dfebe02f26708e00b3fff833cd36e7dc743f07a7
BLAKE2b-256 checksum
How to use checksums
e8b71cb66d7a4d98a0352f121ae145e117aa238b7cbb1e2b3a695c73a162decc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.13

Release files / eeg_dementia_classification_MNet-1.4.1-py3-none-any.whl

Download URL eeg_dementia_classification_MNet-1.4.1-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
38bc74b472e969049c3c230ae0b2136bf6d930a56eb41be83ce896cd310b305b
BLAKE2b-256 checksum
How to use checksums
1de1e4e819d4ddef7486a2bc8de7469e1d8863e0bbe5cd4c98a0035158bf8a5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.13

Security for eeg-dementia-classification-MNet 1.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page