predict using a CompactRegressionGP object is much slower than using the full GP object

1 次查看(过去 30 天)
I have trained GP model for regression using fitrgp.
When using the model to make predictions on new data I use predict:
>> tic, [mu, sd]=predict(Mdl_full,Xtest);toc
Elapsed time is 0.070162 seconds.
Mdl_compact = compact(Mdl_full);
>> tic, [mu, sd]=predict(Mdl_compact,Xtest);toc
Elapsed time is 4.185938 seconds.
Why using the compact model is much slower than using the full model? Any way to make it faster?
Note that the compact model takes about 2000 times less memory, hence it is better to use especially as a member of an ensemble

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Gaussian Process Regression 的更多信息

产品


版本

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by