The recent addition of early stopping rounds broke the ability to pass watchlist as NamedTuple. Probably not narrowing the type in the first place was a mistake, and we should have picked one, but in the meantime it would be breaking to remove either. This PR restores the ability to pass watchlist as any iterable of pairs of which the keys can be converted to strings.
The recent addition of early stopping rounds broke the ability to pass
watchlist
asNamedTuple
. Probably not narrowing the type in the first place was a mistake, and we should have picked one, but in the meantime it would be breaking to remove either. This PR restores the ability to passwatchlist
as any iterable of pairs of which the keys can be converted to strings.See https://github.com/JuliaAI/MLJXGBoostInterface.jl/issues/46#issuecomment-1821235496