Macro interpolation and MLJ.jl

I’m trying to use the @load macro from MLJ.jl, which looks like this:

classifier = @load AdaBoostClassifier

I want to loop through multiple arguments, so I’d like to do something like

cname = "AdaBoostClassifier"
classifier = @load $cname

but as this is a macro, the string isn’t interpolated into the macro. Past posts talk about putting string interpolation into macro definitions, but I just want to use an already-provided macro.

I’d say the easiest route is to use load (i.e. MLJ.load(cname)) see also ?MLJ.load