ICPOptimize
The Iterative Constrained Pathways Optimizer
ICP is a constrained linear model optimizer built with a focus on memory efficiency, flexibility, and solution interpretability.
Description
This repository contains implementations of the Iterative Constrained Pathways (ICP) optimization method, the ICP Rule Ensemble (ICPRE), linear classifier, regressor, and other methods. Currently, hinge, least-squares, and absolute-value loss modes are supported, with support for other loss functions planned. Coefficients can be constrained by sign or by arbitrary intervals. L1 & L2 norm constraints are also supported.
Further discussion about and motivation for the methods can be found on my blog:
nicholastsmith.wordpress.com/2021/05/18/the-iterative-constrained-pathways-optimizer/
Features
- Linear Classification using Hinge Loss
- Regression Support using L1 and L2 Penalties
- Arbitrary Interval Constraints
- L1 and L2 Coefficient Norm Constraints
- Useful Default Settings
- Support for DataFrames and Sparse Matrices
Installation
Install via PyPi:
pip install ICPOptimize
PyPi Project:
https://pypi.org/project/ICPOptimize/
Examples
Rule Ensemble Classifier
from ICP.Models import ICPRuleEnsemble
...
IRE = ICPRuleEnsemble().fit(A[trn], Y[trn])
YP = IRE.predict_proba(A)
Linear Model
from ICP.Models import ICPLinearRegressor
...
# Fit linear regressor with absolute loss and L_1 norm <= 10
ILR = ICPLinearRegressor(p='l1', L1=10.0).fit(A[trn], Y[trn])
YP = ILR.predict(A)
Further examples are available on the ICPExamples GitHub page:
Metadata
Release files for ICPOptimize 2.4
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 |
|---|---|---|---|---|
| ICPOptimize-2.4.tar.gz | 241.2 kB | Without provenance | Details for ICPOptimize-2.4.tar.gz |
Release files / ICPOptimize-2.4.tar.gz
| Download URL | ICPOptimize-2.4.tar.gz |
|---|---|
| Size | 241.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
464d1fdb8094a45ea27b0c2882617991a7f8806af62a4a046daa61682d505636
|
|
BLAKE2b-256 checksum How to use checksums |
b2cf8a798b4697ce12f5f8d61772c5000119edd9c2f4f00034a03e9d3b98a45a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.9.12
|
Security for ICPOptimize 2.4
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.