Cannot access the function predict() in R2020b with statistics toolbox

조회 수: 1 (최근 30일)
Pistachio
Pistachio 2020년 10월 6일
편집: Ameer Hamza 2020년 10월 7일
I cannot access the function predict() that is introduced in R2018a.,
whereas 'Statistics and Machine Learning Toolbox' is installed.
Details are as follows:
>> ver
---------------------------------------------------------------------------------------------------
MATLAB version: 9.9.0.1467703 (R2020b)
MATLAB license number: ********
Operating system: Mac OS X Version: 10.15.7 Build: 19H2
Java version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
---------------------------------------------------------------------------------------------------
MATLAB version 9.9 (R2020b)
Curve Fitting Toolbox version 3.5.12 (R2020b)
Signal Processing Toolbox version 8.5 (R2020b)
Statistics and Machine Learning Toolbox version 12.0 (R2020b)
Wavelet Toolbox version 5.5 (R2020b)
>> license('checkout','statistics_toolbox')
ans =
1
However, '>> which predict -all' returns negative.
Who can tell me why I cannot use predict() function?
'predict.m' file is found in MATLAB_R2020b.app > toolbox > stats > classreg > +classreg > +learning > +svmutils > +gpu,
and the code is shown as '% GPU entry point for the SVM predict mex function.'.

답변 (3개)

Ameer Hamza
Ameer Hamza 2020년 10월 6일
편집: Ameer Hamza 2020년 10월 7일
How are you calling the predict()? Note that in statistical and ML toolbox, predict() is defined as a method, rather than an independent function. So it will not automatically be shown by which -all (It will be shown if the object containing this method is loaded in the workspace). It will only be called if the first input is a model object, e.g., linear model from the toolbox.
  댓글 수: 1
Pistachio
Pistachio 2020년 10월 7일
Thank you for your quick response.
I tried to use predict() function as an independent function.
I understood it's a reason.
Thank you.

댓글을 달려면 로그인하십시오.


Raymond Norris
Raymond Norris 2020년 10월 6일
Hi Pistachio,
predict ships in the System Identification Toolbox.
Thanks,
Raymond

Walter Roberson
Walter Roberson 2020년 10월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by