This release is a pre-release and may not be stable for production use.
ncvx-sparse
ncvx-sparse is a Python library for learning high-dimensional linear regresion models (single- and -multi-task) with nonconvex sparsity (e.g. SCAD, MCP, l1-group SCAD). Solvers are written in Cython and implementation follows the Scikit-learn API.
Why imposing sparsity with nonconvex penalties (e.g. LASSO) ? Because…
Currently, the ncvx-sparse solves the following problems:
Single-task linear regression,
\arg \min_{\beta \in \mathbb{R}^p} \frac{1}{2n} \sum_i (y_i - x_i^{\top} \beta)^2 + \lambda \rho P(\beta) + \frac{1-\rho}{2} ||\beta||_2^2
where P stands for:
SCAD (SCADnet estimator), with parameter $gamma > 2$.
Multi-task linear regression,
\arg \min_{\beta = (\beta_1 \dots \beta_k) \in \mathbb{R}^{K \times p}} \frac{1}{2} \sum_j^K \sum_i^n (y_{ik} - x_{ik}^{\top} \beta_j)^2
where P stands for:
SCAD-l1 i.e. SCAD on the l1-norm of p-th feature vector accross the K tasks,
SCAD-l2, same as SCAD-l1 but with respect to the l2-norm (not squared).
Install the released version
Create a Python=3.6 environment (e.g. Anaconda), and install ncvx-sparse from pip. with the following command line in your Anaconda prompt:
pip install -U ncvx-sparse
Example
References
Metadata
Release files for ncvx-sparse 0.0.1.dev3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ncvx-sparse-0.0.1.dev3.tar.gz | 195.4 kB | Without provenance | Details for ncvx-sparse-0.0.1.dev3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ncvx_sparse-0.0.1.dev3-cp39-cp39-win_amd64.whl | CPython 3.9 | CPython 3.9 | Windows x86-64 | Details for ncvx_sparse-0.0.1.dev3-cp39-cp39-win_amd64.whl |
Total release size: 308.3 kB
Release files / ncvx-sparse-0.0.1.dev3.tar.gz
| Download URL | ncvx-sparse-0.0.1.dev3.tar.gz |
|---|---|
| Size | 195.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
956588a31b18e2225cc22ebfccf1a9519ed0edf0f8142d32dfa9c32f261eacc1
|
|
BLAKE2b-256 checksum How to use checksums |
41331d2dff9ecd2e4c357200e47cc1df533874bcdc8fdf8f358bc9867fc78dfe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.6.13
|
Release files / ncvx_sparse-0.0.1.dev3-cp39-cp39-win_amd64.whl
| Download URL | ncvx_sparse-0.0.1.dev3-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 113.0 kB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
44a3dd0c55b4c05a9c257d206137c7b9c38b5c1c2db09ebe414c70da09b0152c
|
|
BLAKE2b-256 checksum How to use checksums |
d403187b0a9563634c27cfd5147d1bff51b66d23deae2e92bd8bea434497d914
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.6.13
|
Security for ncvx-sparse 0.0.1.dev3
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.