The library for ICANN 2025 Paper 'Stochastic Covariance Regularization for Imbalanced Datasets'
Project description
Stochastic Covariance Regularization for Imbalanced Datasets - ICANN 2025
The repository of the paper "Stochastic Covariance Regularization for Imbalanced Datasets", accepted into ICANN 2025. Conference papers are not yet published. When published, a link to the Springer page of the paper will be provided here.
pip install scor
"scor" package
The "scor" package is organized as a library that could easily be imported and used in applications. It includes all utility functions, measurement functions, model classes and data loaders used in the paper, organized into modules.
scor.data
This module includes data utilities and data loader functions for datasets that were used in the paper. Data loading functions for MNIST, CIFAR-10, Flower102, Oxford IIIT Pets, DTD, STL-10 and LFW People are given. For LFW People, you need to download it then extract it first, because the link that PyTorch provides within its own data loader is broken.
scor.losses
This module includes the SCoR loss function alongside other that were used in the paper.
scor.metrics
This module has utility functions that calculate ranks and singular values of weight matrices of models, that were interpreted as indicators of matrix perturbations in the paper.
scor.models
This module hosts model classes used in tests. It does not include ResNet32 and ResNet50 classes, because respective tests in the paper were adopted from other sources. Several options for ConvNeXt is supported, but in the paper only ConvNeXt-Tiny is used.
scor.training
This module hosts several training functions for several tests in the paper. These functions cover first phase of experiments in the paper, where MNIST and CIFAR-10 is artificially imbalanced by imbalancing a random class, or 9 random classes multiplicatively by a reduction factor.
Examples
Example notebooks that use the "scor" package for training on given datasets are provided under the "examples" directory.
imagenet.py
This file is for training models with various loss functions on the ImageNet dataset. Code from here is adapted to be used with loss functions defined in this repository.
A "loss" option is included to the adapted code. Run python imagenet.py --help
for a proper description.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scor-0.2.2.tar.gz.
File metadata
- Download URL: scor-0.2.2.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.10 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d90cae6eeb9f05d07ba896896172b758bc226236e962338ee4ccc07319573cc
|
|
| MD5 |
73193eb53ed7eea30d30ac11f5ac957b
|
|
| BLAKE2b-256 |
28a9880329118ff57de2fc498e74e957eec69bbbc6ce0c9dcc3da61cfd344d84
|
File details
Details for the file scor-0.2.2-py3-none-any.whl.
File metadata
- Download URL: scor-0.2.2-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.10 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5448e127d07c8c91add219d0944f086d5a3c62e1a445c2fb68bcd84e2900ee98
|
|
| MD5 |
e530a9fcd524891a62787c79bcc51a9c
|
|
| BLAKE2b-256 |
2837d0a554d69ce58f46691c9d3ad26364ce6811ac9be0d4c25929a191a84d6b
|