How to run regression in GPU?

2 ビュー (過去 30 日間)
Vitaly
Vitaly 2013 年 2 月 14 日
Hellow everyone,
Does anybody know how to run a multiple linear regression in GPU? I've tried regress and regstats from statics toolbox, but keep getting error messages:
For regress: Error using gpuArray/qr QR on the GPU requires exactly two outputs.
For regstats: The following error occurred converting from gpuArray to double: Conversion to double from gpuArray is not possible
Error in x2fx (line 173) D(:,cols) = C;
Error in regstats (line 121) X = x2fx(data,model);
Can anyone suggest a solution for this problem? I am interested in getting R^2, betas, p-values, and y-hats as my outputs from the regression model.
Thank you.

回答 (1 件)

Shashank Prasanna
Shashank Prasanna 2013 年 2 月 14 日
These are all the supported functions for GPU computing:
I am sorry to say none of the statistics toolbox functions as of now support GPUs.
That said you can make use of built-in to write your own code that is compatible with GPUs using \ operator.

カテゴリ

Help Center および File ExchangeGaussian Process Regression についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by