Author: Stephen Anthony Rose
Original paper: [https://arxiv.org/abs/1712.00484]
```
pip install plasso
```
Abstract
--------
We propose a generalization of the lasso that allows the model coefficients to vary as a function of a general set of modifying variables. These modifiers might be variables such as gender, age or time. The paradigm is quite general, with each lasso coefficient modified by a sparse linear function of the modifying variables Z. The model is estimated in a hierarchical fashion to control the degrees of freedom and avoid overfitting. The modifying variables may be observed, observed only in the training set, or unobserved overall. There are connections of our proposal to varying coefficient models and high-dimensional interaction models. We present a computationally efficient algorithm for its optimization, with exact screening rules to facilitate application to large numbers of predictors. The method is illustrated on a number of different simulated and real examples.
Example
-------
```python
from plasso import PliableLasso
# Input data looks just like sklearn except an extra matrix Z
y = target_data()
x = data() # Main effects data
z = modifying_data() # Data used to modify the estimate coefficients for X
# Fit model
model = PliableLasso()
model.fit(x, z, y)
# Cool things to do afterwards
y_hat = model.predict(x, z)
```
Check out the `example.py` file to see more ways to use it.
Installation / Usage
--------------------
To install use pip:
$ pip install plasso
Or clone the repo:
$ git clone https://github.com/arose13/PliableLasso.git
$ python setup.py install
Also for large data sets I recommend install `pytorch`
Contributing
------------
Me (Stephen Anthony Rose)
If you want to add and improve things be my guest.
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Metadata
Release files for plasso 1.20190329.1200
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 |
|---|---|---|---|---|
| plasso-1.20190329.1200.tar.gz | 12.7 kB | Without provenance | Details for plasso-1.20190329.1200.tar.gz |
Release files / plasso-1.20190329.1200.tar.gz
| Download URL | plasso-1.20190329.1200.tar.gz |
|---|---|
| Size | 12.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d346534fd041ceca7f1f594023e6400727695e642833f674c2ec3b6c06524a68
|
|
BLAKE2b-256 checksum How to use checksums |
2e90c0b41fc7c69b8f1a7b6d39e396090e0a6f267d41efc1a95e1a8248edb253
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.6.6
|
Security for plasso 1.20190329.1200
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.