predict data for input

1 visualización (últimos 30 días)
Panayiotis Christodoulou
Panayiotis Christodoulou el 1 de Nov. de 2016
Respondida: George el 1 de Nov. de 2016
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.

Respuestas (1)

George
George el 1 de Nov. de 2016
Have you tried predict()?
results = predict(mdl, testdata);

Categorías

Más información sobre Statistics and Machine Learning Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by