Summary

Refer to this manuscript for details about training and model backgrounds. You can also refer to the associated GitHub repo. The figure given here summarizes the models trained and their expected performance (error bars below are 1 standard deviation). Models in this repo are labeled by model{name}[metric].pkl
, where metric
refers to the performance metric used to evaluate and optimize the model (either total efficiency, teff
, or accuracy, acc
). In the figure at the right, the performance metric is reported in parentheses. These performances and uncertainties are intended to reflect the expected performance on new data.
Warnings
These models were generated as part of an academic exercise and are not intended for a production environment. These are provided "as-is" with no warranty of any kind. Refer to the license for more information.
Inputs
The inputs are stable isotope and trace element measurements in the following order:
SITE | Units |
---|---|
18O | per mille |
13C | per mille |
15N | per mille |
34S | per mille |
Na | micrograms/gram |
Mg | milligrams/gram |
P | milligrams/gram |
S | milligrams/gram |
K | milligrams/gram |
Ca | milligrams/gram |
Mn | micrograms/gram |
Fe | micrograms/gram |
Co | nanograms/gram |
Ni | nanograms/gram |
Cu | micrograms/gram |
Zn | micrograms/gram |
As | nanograms/gram |
Se | nanograms/gram |
Rb | micrograms/gram |
Sr | micrograms/gram |
Mo | nanograms/gram |
Cd | nanograms/gram |
Ba | micrograms/gram |
These units should follow the convention of the models' training set, datasets/mahynski/slovenian-site-garlic.
Usage
import joblib
from huggingface_hub import hf_hub_download
model = joblib.load(
hf_hub_download(
repo_id="mahynski/slovenian-site-garlic",
filename="model-dt-stump[acc].pkl", # Select one of the models in this repo
)
)
model.predict(X)
Or you can use the PyChemAuth library.
import pychemauth
model = pychemauth.utils.HuggingFace.from_pretrained(
model_id="mahynski/slovenian-site-garlic",
filename="model-dt-stump[acc].pkl",
)
model.predict(X)