Skip to main content

A Python library for kernels used in analytical chemistry

Project description

ackl

Publication

Analytical chemistry kernel library for spectroscopic profiling data, Food Chemistry Advances, Volume 3, 2023, 100342, ISSN 2772-753X, https://doi.org/10.1016/j.focha.2023.100342.

PyPI (Python Package Index) repository

https://pypi.org/project/ackl/

Reproducible Code-Ocean capsule

https://doi.org/10.24433/CO.4614220.v2

Install (Ubuntu Env Setup)

!apt-get install r-base r-base-dev ffmpeg libsm6 libxext6 

!pip install rpy2
!pip install qsi==0.3.9
!pip install ackl==1.0.2
!pip install cla==1.1.4
!pip install opencv-python

# Post-install script

#!/usr/bin/env bash
set -e

Rscript -e 'install.packages("ECoL")'

Compile

python -m build --wheel  
python -m pyc_wheel x.whl  [optional]

Use

Kernel Response Patterns

import ackl.metrics
ackl.metrics.linear_response_pattern(20)

Run Kernels on Target Dataset

_, dics, _ = ackl.metrics.classify_with_kernels(X, y,embed_title = False)

Show the result as HTML table and bar charts:

html_str = ackl.metrics.visualize_metric_dicts(dics, plot = True)
display(HTML( html_str ))

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

ackl-2.2.0.tar.gz (748.7 kB view details)

Uploaded Source

Built Distribution

ackl-2.2.0-py3-none-any.whl (749.5 kB view details)

Uploaded Python 3

File details

Details for the file ackl-2.2.0.tar.gz.

File metadata

  • Download URL: ackl-2.2.0.tar.gz
  • Upload date:
  • Size: 748.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for ackl-2.2.0.tar.gz
Algorithm Hash digest
SHA256 5b687f69f9ad4170ab9f49a98b080cc0ab1ba91d334dbdf81c6ce0988b5c5968
MD5 0f1a1966e361a5f0d4a9bf0a18f23532
BLAKE2b-256 5c7deb73ea7aee16d616ff9ff1feadc96125f55e6df9474d8ff7c817af4e6d71

See more details on using hashes here.

File details

Details for the file ackl-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: ackl-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 749.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for ackl-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c06dcea2968f21327efe1dcb19310fe1d942d4363af35e889b84f0f5ed35725a
MD5 8a13ddaff7d6c396854b22993c4e1ec4
BLAKE2b-256 cd62ddbf23df7353a5c92ba052ddc2d558d32bcf20d5712d4f8eea8d845bcd1a

See more details on using hashes here.

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