Laplacian Score-regularized Concrete Autoencoders
Requirements:
- torch >= 1.9
- scikit-learn >= 0.24
- omegaconf >= 2.0.6
- scipy >= 1.6.0
- matplotlib
How to use:
Install the package from pypi:
pip install lscae
Prepare your dataset by applying Standard Scaler on it
from sklearn.preprocessing import StandardScaler
scaler = StandardScaler()
dataset = scaler.fit_transform(dataset)
Then load it as torch.utils.data.Dataset and run feature selection
Please see an example here
import lscae
import torch
from omegaconf import OmegaConf
# define you cfg parameters
cfg = OmegaConf.create({"input_dim": 100})
# define you dataset (Torch based)
dataset = torch.utils.data.Dataset(...)
dataloader = torch.utils.data.DataLoader(dataset, batch_size=cfg.batch_size, shuffle=True, drop_last=True)
lscae.Lscae(kwargs=cfg).select_features(dataloader)
Metadata
Release files for lscae 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lscae-0.0.2.tar.gz | 6.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lscae-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.4 kB
Release files / lscae-0.0.2.tar.gz
| Download URL | lscae-0.0.2.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4c03c8857b41127dcea073a1ca47d79a706b899d90d3ff7d6b17334525b02e06
|
|
BLAKE2b-256 checksum How to use checksums |
fb3702055562c09a2f294c949b093684e54dcf3cb8921d08db2d624a3c375a73
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.7
|
Release files / lscae-0.0.2-py3-none-any.whl
| Download URL | lscae-0.0.2-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b18ca361cfe9cdd43a6406567634de711577aef7db9eabf3c2f3deaa190d1725
|
|
BLAKE2b-256 checksum How to use checksums |
f09da4a2057cd01fd2e94b7dcc8778ceb7f1e09030ecf70f6c1abef903a2d86a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.7
|