View source: R/fuction_plotmodel.R
p.model | R Documentation |
Plot Model
p.model(t, m, title = "title", crh_leght = 16)
t |
A dataset with calculated Chemical Descriptors like testing or training or whole dataset |
m |
A trained model |
title |
A title for the plot. Example: FiehnHilic Xgboost |
crh_leght |
the chromatographic lengths in minutes |
Returns two plots of the selected model
# db_rt is the dataset with calculated chemical descriptors
# and RT information coming from function getCD
set.seed(101)
inTraining <- createDataPartition(db_rt$XLogP, p = .8, list = FALSE)
training <- db_rt[ inTraining,]
testing <- db_rt[-inTraining,]
model_xgb <- fit.xgboost(training)
p.model(testing,model_xgb)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.