フィルターのクリア

Error using lassoglm>glmProcessData

5 ビュー (過去 30 日間)
Yinggang
Yinggang 2024 年 4 月 22 日
回答済み: Walter Roberson 2024 年 4 月 22 日
The error said:
[After stripping NaNs and Infs, either 'X' has too few rows or 'Weights' has too few positive values.
Error in lassoglm (line 328)
glmProcessData(x, y, distr, 'off', offset, pwts); ]
The error code in lassoglm:
[X, Y, offset, pwts, dataClass, nTrials, binomialTwoColumn] = ...
glmProcessData(x, y, distr, 'off', offset, pwts);
I checked that size of input x is normal size. Even all weights equal to 0, I eed these output.
How to sovle this problem?

回答 (1 件)

Walter Roberson
Walter Roberson 2024 年 4 月 22 日
If you are passing in Weights, at least one weight must be positive.
Otherwise: you need at least one row of X to contain finite values. You probably have missing data in X (or possibly X is empty)

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by