Skip to main content

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:

https://github.com/nicholastoddsmith/ICPExamples

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)

Source distribution for ICPOptimize 2.4
File Size Uploaded
ICPOptimize-2.4.tar.gz 241.2 kB Details

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

Release history Release notifications | RSS feed

This release

2.4 This release

1 release file

2.3

1 release file

2.2

1 release file

2.1

1 release file

2.0

1 release file

1.9

1 release file

1.8

1 release file

1.7

1 release file

1.6

1 release file

1.5

1 release file

1.4

1 release file

1.3

1 release file

1.2

1 release file

1.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page