mtrain1 = size(Xtrain1,1);
nw = size(Xtrain1,2);
when i run the above code , i face the following error:
Not enough input arguments.
Error in movie_kernel (line 28)
mtrain1 = size(Xtrain1,1);
What is this error, and how to solve this error, thanks

댓글 수: 3

Allen
Allen 2022년 5월 24일
@Waseem Abbas What type of data is being stored in your Xtrain variable?
jessupj
jessupj 2022년 5월 24일
huh? why is size executing movie_kernel? I don't see that happening in those lines of code unless Xtrain1 executes a script or something like that
Waseem Abbas
Waseem Abbas 2022년 5월 25일
@Allen data from the data set that i am using to train the model

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

 채택된 답변

Walter Roberson
Walter Roberson 2022년 5월 24일

0 개 추천

You have a function named movie_kernel that expects to be passed one or more parameters, including a parameter it refers to as Xtrain1. However when you invoked the function you did so without providing enough input parameters.
A common cause for these kinds of problems is trying to execute a function by pressing the green Run button. When you press the Run button, the current script or function is executed without any input parameters.

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

제품

릴리스

R2022a

태그

질문:

2022년 5월 24일

댓글:

2022년 5월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by