Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upUnnamed vector returned by mnLogLoss breaks model selection in training #514
Comments
|
In case it's useful, here's the output using the minimal model code in the issue template:
|
|
I am unable to reproduce the error.
Can you share your |
|
I think we can close this now |
The latest CRAN version 6.0-72 has a bug in the summary function
mnLogLossthat preventslogLossfrom being used as a metric in training resampling.The previous version (6.0-71) returned a named vector where the computed logloss values are assigned the name
logLoss.The new version in 6.0-72 that uses
ModelMetrics::mlogLossreturns an unnamed vector.In addition to that,
train.defaultis not robust to all of the non-parameter columns inperformancebeing unnamed. Since the column for logLoss is unnamed, it trips up when trying to extract that column fromperformanceand triggers theerror.