You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously the following worked to automatically load all models:
for (i, model) inenumerate(models())
load(model.name, pkg=model.package_name, verbosity=0)
end
Now I get an error message:
ERROR: The `load`function is no longer supported. Use the `@load`macro instead, as in`@load RandomForestRegressor pkg = DecisionTree`.
Then I try:
for (i, model) inenumerate(models())
@load model.name pkg = model.package_name
end
ERROR: ArgumentError: There is no model named "model.name"in the registry.
Run `models()` to view all registered models.
The text was updated successfully, but these errors were encountered:
using Pkg
Pkg.activate(temp=true)
Pkg.add("MLJ")
using MLJ
model_types = []
for model inmodels()
T =@eval@load$(model.name) pkg=$(model.package_name) add=truepush!(model_types, T)
end
model_instances =map(T ->T(), model_types)
Previously the following worked to automatically load all models:
Now I get an error message:
Then I try:
The text was updated successfully, but these errors were encountered: