Click here to Skip to main content
15,895,777 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi all ,
i have a ralational table .
user-item
i want to compute the coisne similarity of the users using vector space.
what i need how can i reprent the table in two dimenstinal array .

to look like
item1 item2 item3 item4 item n

user1 1 1 0 0
user2 0 0 1 1

so the vector for user1 ( 1 1 0 0) 1 means have it , 0 others
thanks for your time . hope i find a help !!
Posted

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900