Skip to main content

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


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 details)

Uploaded Source

Built Distribution

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

AdaptFTIR-0.1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file AdaptFTIR-0.1.0.tar.gz.

File metadata

  • Download URL: AdaptFTIR-0.1.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.0

File hashes

Hashes for AdaptFTIR-0.1.0.tar.gz
Algorithm Hash digest
SHA256 17f0c4d9f597d0a50b91df71d61d72636b78d1527a7ea3fd0a98ebea33996015
MD5 94077304b255837495adc5213ce6452d
BLAKE2b-256 31a75636b8fd6860ecc0a71b44016c72f84e9ddfed9fe08024f299b97826e6f4

See more details on using hashes here.

File details

Details for the file AdaptFTIR-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: AdaptFTIR-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.0

File hashes

Hashes for AdaptFTIR-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 04021124e0c912825fd4c7d89fdd1342b9ee1d66f422efc7c1a4ccc654d06c37
MD5 d5dec5134bb5884c77f70770bed5abef
BLAKE2b-256 5c430e0a445527777a808470920d9acf4f3292cd39a76a436ee842be0ad197cc

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