Group Abstract Group Abstract

Message Boards Message Boards

0
|
3.3K Views
|
3 Replies
|
3 Total Likes
View groups...
Share
Share this post:

Classify function with matrix

Posted 6 years ago

I wonder if someone could help with the function Classify with matrix, If X is a 3X2 input matrix x= ( 1 3; 4 7; 5 9) and y is a 3X1 output matrix Y = (0 ; 0; 1) meaning (1,3)->0 (4,7)->0 (5,9)->1 How can I train the function Classify in this case? Thanks.

POSTED BY: ivanildo Lima
3 Replies
Posted 6 years ago

Hi Ivanildo,

x = {{1, 3}, {4, 7}, {5, 9}};
y = {0, 0, 1};
data = Thread[x -> y]
classifier = Classify[data]
POSTED BY: Rohit Namjoshi
Posted 6 years ago

Thanks

POSTED BY: ivanildo Lima
Posted 6 years ago

If I have a huge matrix X with 500 columns and 1000 lines as input anda an output matrix Y, how can I use them with this commmand?

POSTED BY: ivanildo Lima
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard