Domain adaptation for FTIR spectra
Project description
AdaptFTIR
Description
This repository contains a Python implementation of the AdaptFTIR method described in the paper entitled "Title" (doi url).
Installation
The package is available via PyPI:
pip install AdaptFTIR
Usage
For detailed information on how to initialize the AdaptFTIR method and configure its parameters, please refer to the example_usage.ipynb Jupyter Notebook and the code documentation in the AdaptFTIR.py file. The basic usage format is as follows:
from AdaptFTIR import AdaptFTIR
# Initialize an instance of AdaptFTIR with a calibration set
adapter = AdaptFTIR(spectra=<your_spectra_to_augment>,
subject_ids=<your_subject_ids_for_spectra_to_augment>,
calibration_set=<your_calibration_set>,
calibration_ids=<your_calibration_set_subject_ids>)
# Create synthetic samples based on an input set of training samples X and associated sample labels y
X_gen, y_gen = AdaptFTIR.run(n_per_subject_id=<your_n_per_subject_id>)
Citation
Citation goes here
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
AdaptFTIR-0.1.0.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for AdaptFTIR-0.1.0-py3-none-any.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 04021124e0c912825fd4c7d89fdd1342b9ee1d66f422efc7c1a4ccc654d06c37 |
|
| MD5 | d5dec5134bb5884c77f70770bed5abef |
|
| BLAKE2b-256 | 5c430e0a445527777a808470920d9acf4f3292cd39a76a436ee842be0ad197cc |