Comments (5)
Should have been fixed in master:
using Pkg
pkg"activate --temp"
pkg"add MLJBase, MLJModels, BetaML#master"
using MLJBase, MLJModels
import BetaML: GaussianMixtureRegressor, MultitargetGaussianMixtureRegressor
model = GaussianMixtureRegressor()
X, y = make_regression();
mach = machine(model, X, y) |> fit!
yhat = predict(mach, X);
l2(yhat, y) # ok
y2=hcat(y,y)
model2 = MultitargetGaussianMixtureRegressor()
mach2 = machine(model2, X, y2) |> fit!
yhat2 = predict(mach2, X);
l2(yhat2, y2) # ok
from betaml.jl.
Thanks, going check it...
from betaml.jl.
Hello, BetaMLGMMRegressor
(that I have now renamed GaussianMixtureRegressor
) is not predicting a row vector, but a matrix with a single column, as it can predict multiple targets, so currently always return matrices.
What do you suggest I change:
- the model registration metadata
- I automatically remove one dimension when y is a single variable
?
from betaml.jl.
For better or worse, the MLJ standard for returning multi-target predictions is to return a table. (This may not be actually documented but it is adopted in several places) . So there is a case distinction here. This means we generally have separate model types for regular and multitarget predictors. Which is not too bad, as it is not the main use-case.
I suppose you could have a single model that always predicts a table, but I think this will be totally unexpected for users. So, while I realize this is a pain, I think the best plan is a separate MultitargetGaussianMixtureRegressor
for the MLJ interface.
a row vector, but a matrix with a single column
Same thing, in my vernacular 😉
from betaml.jl.
And if y2
is a table instead of a matrix, is that allowed? Elswhere, y2
and yhat2
would both be tables. See eg https://github.com/JuliaAI/NearestNeighborModels.jl/blob/f4362b3967dc1e4874cd9875f428c4d13316b761/src/models.jl#L312
Sorry this isn't documented anywhere.
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
- MLJ Interface is not working anymore HOT 6
- 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.