predict data for input

조회 수: 7 (최근 30일)
Panayiotis Christodoulou
Panayiotis Christodoulou 2016년 11월 1일
답변: George 2016년 11월 1일
Hi there,
I have 2 numeric datasets:
traindata: 9000 x 6 testdata: 10000 x 5
I have used a Classification Learner on the traindata and trained a model for the last column that consists of 1 and 0.
I now want to give the 5 variables from the testdata as inputs and predict the 6th column if its 1 or 0.
Can you please help me ?
Thanks.

답변 (1개)

George
George 2016년 11월 1일
Have you tried predict()?
results = predict(mdl, testdata);

카테고리

Help CenterFile Exchange에서 Classification에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by