API Reference¶
This is not an exhaustive list of classes and functions, but rather those most likely to be of interest to users and developer. See Index and Module Index for a full list.
pymcr.condition
: Functions to condition / preprocess data¶
Functions to condition / preprocess data
Functions¶
|
Standardization of data |
pymcr.constraints
: Built-in constraints¶
Built-in constraints
All classes need a transform class. Note, unlike sklearn, transform can copy or overwrite input depending on copy attribute.
Classes¶
Non-negativity constraint. |
|
Cumulative-Summation non-negativity constraint. All negative |
|
Enforce the endpoints (or the mean over a range) is zero |
|
Enforce the endpoints of the cumsum (or the mean over a range) is near-zero. |
|
|
Normalization constraint. |
Samples that sum-to-zero across axis are replaced with a vector of 0’s except for a 1 at feature if a single value. |
|
Cut values below (and not-equal to) a certain threshold. |
|
Compress values below (and not-equal to) a certain threshold (set to value) |
|
Cut values above (and not-equal to) a certain threshold |
|
Compress values above (and not-equal to) a certain threshold (set to value) |
|
Set a particular target to a plane |
pymcr.mcr
: MCR Main Class for Computation¶
MCR Main Class for Computation
Classes¶
|
Multivariate Curve Resolution - Alternating Regression |
pymcr.metrics
: Metrics used in pyMCR¶
Metrics used in pyMCR
All functions must take C, ST, D_actual, D_calculated
Functions¶
|
Mean square error |
pymcr.regressors
: Built-in regression methods¶
Built-in least squares / regression methods.
All models will follow the formalism, AX = B, solve for X.
NOTE: coef_ will be X.T, which is the formalism that scikit-learn follows
Classes¶
Abstract class for linear regression methods |
|
|
Ordinary least squares regression |
|
Non-negative constrained least squares regression |