Skip to main content

Table 4 Example of an unweighted term-document matrix (TDM) with outcomes

From: Machine learning in medicine: a practical introduction

   Features Outcome
documentID service a bad doctor great kind satisfied service unhappy Class
1 001312 1 0 0 1 0 1 1 0 1
2 001345 1 1 0 0 0 0 1 1 0
3 001312 0 0 1 1 0 0 0 0 1
.           
.           
.           
699 001345 1 1 0 0 0 1 0 0 0
\