Comments (6)
going to check, thanks to report....
from betaml.jl.
Hello, I can't reproduce... this script, where I used your code, works as expected...
using Pkg
Pkg.activate(temp=true)
Pkg.add("MLJ")
using DelimitedFiles,MLJ
# Iris dataset
X, y = @load_iris
# Your code...
modelType = @load RandomForestClassifier pkg = "BetaML" verbosity=1
mod = modelType(
n_trees = 2,
max_depth = 10
)
mach = machine(mod, X, y)
fit!(mach)
cat_est = predict(mach, X)
ŷ = MLJ.mode.(cat_est)
accuracy = sum(y .== ŷ) / length(y) # 0.95
Be sure you have the latest versions of both MLJ and BetaML (respectively v0.20.2 and v0.11.3)
from betaml.jl.
Hello, do you still have the issue after updating to latest versions?
from betaml.jl.
I found this issue because I was having a similar problem. Attempting to load the RandomForestClassifier
model directly was failing to resolve, but doing so with @load
worked. On further analysis, it appears that RandomForestClassifier
is in the sub-module Bmlj
, which needs to be explicitly included. For example:
# This Works
model = (MLJ.@load RandomForestClassifier pkg = "BetaML")()
# Also Works
model = BetaML.Bmlj.RandomForestClassifier()
# Doesn't Work
model = BetaML.RandomForestClassifier()
Moreover, the links to the MLJ models appear to be broken in the README.
I'm assuming this is a recent change? It would be nice to be able to access the MLJ
models directly from the BetaML
module. Alternatively, the documentation should be clearer to avoid confusion.
from betaml.jl.
Hi, model = BetaML.RandomForestClassifier()
is NOT supposed to work.
You can access RandomForestClassifier
and RandomForestRegressor
trought the MLJ @load
method, or the RandomForestEstimator
trought the BetaML interface (the first two are just wrappers to the third one).
While names are different in this case, sometimes the names of the models are the same, this is why BetaML does NOT export the MLJ-interface models.
If you want the MLJ interface models without using @load
, you can do:
using BetaML # or import
m = BetaML.Bmlj.RandomForestClassifier()
Thanks for the report on the links and let me know if I can close this issue...
from betaml.jl.
..closing... feel free to reopen if needed...
from betaml.jl.
Related Issues (20)
- Trouble interpolating feature names in a wrapped tree HOT 13
- MLJ model docstrings HOT 3
- GaussianMixtureModelClusterer docstring has formatting issues HOT 1
- Can we have floats rounded to 4 significant digits in decision tree displays? HOT 3
- Add PAM algorithm to fit KMedoidsClusterer
- `target_scitype` for MultitargetNeuralNetworkRegressor is too broad HOT 3
- Scaler() of Int matrix result in error
- Scaler() of vectors (instead of matrices) result in errors
- Deprecation warning from ProgressMeter.jl HOT 3
- Rename/Alias `GeneralImputer` to `MICE` HOT 5
- Separate into subpackages? HOT 1
- Iplement comments for AutoEncoderMLJ
- Bug in GMM caused by spelling mistake HOT 1
- Bug in Clustering_MLJ caused by spelling mistake HOT 3
- BetaML v11.0 Gaussian Mixture Model not compatible with MLJ HOT 7
- Problem with MLJ interface for KMedoidsClusterer HOT 1
- Correct the predict in AutoEncoder to consider non-vector layer outputs
- "`findall` is ambiguous" error HOT 3
- Cosine distance HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from betaml.jl.