Skip to main content

Latent Variable Modelling made easy

Project description

Build Status


Trendfitter is a latent variable modelling package made for multivariate statistical process control. Some of the methods implemented in this library are already available in other packages, but not with all the tools here available for investigation, exploration and prediction applied to industrial production processes. Additionally, the methods here follow an object-oriented approach similar to scikit-learn so that one can explore combining tools existing in that package without having the need to adapt the code.

This first version contains:

  • Principal Component Analysis (PCA)
  • Multi-Block Principal Component Analysis (MB-PCA)
  • Partial Least Squares or Projection to Latent Structures (PLS)
  • Multiblock PLS (MB-PLS)
  • Sequential MBPLS (SMB-PLS)
  • Dynamic PLS (DiPLS)

The models have methods implemented for the calculation of scores, loadings, weights, Hotelling's T², Squared Prediction Errors(SPEs), and contributions for both T²s and SPEs. Moreover, dealing with missing data in the matrix is available in multiple approaches, namely: Trimmed Score Regression (TSR), Conditional Mean Replacement (CMR), Trimmed Score Method (TMR), and Projection to Model Plane (PMP). All of these previously unavailable on the open-source python environment.

Trendfitter is installable via pip:

pip install trendfitter

Any information regarding usage of the methods and functions can be found using the help() function. Such as:


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

trendfitter-0.0.6-py3-none-any.whl (60.6 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page