Data from: Machine learning models identify compounds that mimic alcoholic flavor perception in alcohol-free beverages
收藏资源简介:
Figure S4: High resolution version of the Supplemental Figure S4. FINAL DATASET.CSV: The complete beer dataset of this work (chemical + sensory), except for the RateBeer scores (these are proprietary data owned by RateBeer - contact the authors and RateBeer to gain full access). Model predictions vs actuals XGBR.CSV: A table with the predicted and actual scores of all beers, for the attributes modeled by our XGBR model. my_nested_cv_regressor_XGBR.pkl: Python joblib pickle file containing the best performing model trained with nested cross-validation on the "FINAL DATASET.CSV". R Figure Generator.Rmd: The R script used to generate all main and supplemental figures of this work. This script was written in R version 4.4.1 and executed with RStudio version 2023.06.1. This script uses the "FINAL_DATASET.CSV", the "Validation tastings.xlsx", "SHAP XGBR for Body fullness.CSV", "SHAP XGBR for alcohol.CSV" and "Model predictions vs actuals XGBR.CSV" to calculate statistics and generate all figures available in the manuscript.This script can be run in any standard R environment, but will also require the appropriate R-tools to be installed for all functionalities.Running the code using the supplied datasets serves as a demo for all the analyses and figure generations. Running the entire script may take a handful of hours to complete (on a 16-core device). run_models.py: The Python script used to train, evaluate and interpret (explainable AI) the machine learning models discussed in this paper. This model was run on Python version 3.9.0. The BorutaShap package had slight issues from version incompatibility that were manually edited in the package code. This script uses the "FINAL_DATASET.CSV" dataset to generate "my_nested_cv_regressor_XGBR.pkl", "SHAP XGBR for Body fullness.CSV", "SHAP XGBR for alcohol.CSV" and "Model predictions vs actuals XGBR.CSV". It can easily be customized to train similar machine learning models for different intents and purposes.This script can be run in any standard python environment.Running the model on the "FINAL_DATASET.CSV" file should recreate all models from this work, and serves as a demo for how the code functions. Running the entire script for all models may take a couple of hours to complete (on a 72-core device). SHAP XGBR for Body fullness.CSV: The results from a SHAP analysis used to explain the predictions of our best performing model for beer body. SHAP XGBR for alcohol.CSV: The results from a SHAP analysis used to explain the predictions of our best performing model for alcoholic impression. Tables.xlsx: All the main, supplemental and additional supporting tables of the manuscript. Validation tastings.xlsx: Microsoft Excel file with the results from follow-up tastings performed to test the effectiveness of our mixture of compounds in various beverages.



