Matrix completion with column subset selection.
Project description
CSMC
CSMC is a Python library for performing column subset selection in matrix completion tasks. It provides an implementation of the CSSMC method, which aims to complete missing entries in a matrix using a subset of columns.
Columns Selected Matrix Completion (CSMC) is a two-stage approach for low-rank matrix recovery. In the first stage, CSMC samples columns of the input matrix and recovers a smaller column submatrix. In the second stage, it solves a least squares problem to reconstruct the whole matrix.
Installation
You can install CSMC using pip:
pip install -i https://test.pypi.org/simple/ csmc
Usage
from tests.data_generation import create_rank_k_dataset
from csmc import CSMC
n_rows = 300
n_cols = 1000
rank = 10
M, M_incomplete, omega, ok_mask = create_rank_k_dataset(n_rows=n_rows, n_cols=n_cols, k=rank,
gaussian=True,
fraction_missing=0.8)
solver = CSMC(M_incomplete, col_number=400)
M_filled = solver.fit_transform(M_incomplete)
Citation
Krajewska, A., Niewiadomska-Szynkiewicz E. (2023). Matrix Completion with Column Subset Selection.
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 csmc-0.1.6.tar.gz.
File metadata
- Download URL: csmc-0.1.6.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.12 Linux/6.5.0-15-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9483657cd903d83953a578f8d8f3219dc51a00447807ae3c420ce45ef932049
|
|
| MD5 |
2acde6df31a866edb32501fa18dc4c3e
|
|
| BLAKE2b-256 |
77ea14127625316f2946943814bcc3d86d32f1d552f054ed50b8f08dce895d2f
|
File details
Details for the file csmc-0.1.6-py3-none-any.whl.
File metadata
- Download URL: csmc-0.1.6-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.12 Linux/6.5.0-15-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b354f41200732d71a2919a5a6b2d5bdf43f8c02d45a1d89294218d263c2b2dec
|
|
| MD5 |
47bbdf1e123bd7952454a53765bf7c39
|
|
| BLAKE2b-256 |
a8e88362cd0781941bbc9994fb71ee8b7c0e18381c60eb708152ffe5ade34918
|