Skip to main content

Python package for domain adaptation in multivariate regression

Project description

Domain-invariant partial least squares regression (di-PLS)

Python implementation of (m)di-PLS for domain adaptation in multivariate regression problems.

Installation

pip install diPLSlib

Usage

How to apply di-PLS

Train regression model

from diPLSlib import dipals as ml

m = ml.model(X, y, X_source, X_target, 2)
l = [100000] #  Regularization
m.fit(l)

# Typically X=X_source and y are the corresponding response values

Apply the model

yhat_dipls, err = m.predict(X_test, y_test=[])

How to apply mdi-PLS

from diPLSlib import dipals as ml

# Training
m = ml.model(X, y, X_source, X_target, 2)
l = [100000] #  Regularization
m.fit(l, target_domain=2)

# Testing
yhat_dipls, err = m.predict(X_test, y_test=[])


# X_target = [X1, X2, ... , Xk] is a list of target domain data
# The parameter target_domain specifies for which domain the model should be trained (here X2).

Acknowledgements

The first version of di-PLS was developed by Ramin Nikzad-Langerodi, Werner Zellinger, Edwin Lughofer, Bernhard Moser and Susanne Saminger-Platz and published in:

Further refinements to the initial algorithm were published in:

  • R. Nikzad-Langerodi, W. Zellinger, S. Saminger-Platz and B. Moser, "Domain-Invariant Regression Under Beer-Lambert's Law," 2019 18th IEEE International Conference On Machine Learning And Applications (ICMLA), Boca Raton, FL, USA, 2019, pp. 581-586, https://doi.org/10.1109/ICMLA.2019.00108.

  • Ramin Nikzad-Langerodi, Werner Zellinger, Susanne Saminger-Platz, Bernhard A. Moser, Domain adaptation for regression under Beer–Lambert’s law, Knowledge-Based Systems, Volume 210, 2020, https://doi.org/10.1016/j.knosys.2020.106447.

  • Bianca Mikulasek, Valeria Fonseca Diaz, David Gabauer, Christoph Herwig, Ramin Nikzad-Langerodi, Partial least squares regression with multiple domains, J. Chemometrics, 2023 (to appear), https://doi.org/10.13140/RG.2.2.23750.75845

Contact us

Bottleneck Analytics GmbH
info@bottleneck-analytics.com

Project details


Download files

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

Source Distribution

diplslib-1.0.2.tar.gz (21.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

diPLSlib-1.0.2-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file diplslib-1.0.2.tar.gz.

File metadata

  • Download URL: diplslib-1.0.2.tar.gz
  • Upload date:
  • Size: 21.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for diplslib-1.0.2.tar.gz
Algorithm Hash digest
SHA256 e66df8a85f1383706f78bb3fbbb29fe141f8f69d2a7e0bf7b1a7d3fcea36babe
MD5 4f15d263d400d4da030d1387b62748e5
BLAKE2b-256 44434b8bac0da9968db39483b7e2ab84f0af1591aaf138f8dc4b5828e748c9d1

See more details on using hashes here.

File details

Details for the file diPLSlib-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: diPLSlib-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 21.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for diPLSlib-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3d229520efa6b66afb415c6b52df91a8559afc141eee1bea7d9a61c1f475be25
MD5 43be1087b0c45626bafa66701abbfdeb
BLAKE2b-256 31b33f901c4a2aa4e9224c698d390de13a56b8c84e739f3e4d1d3aaff83b98a5

See more details on using hashes here.

Supported by

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