1. Học hỏi
  2. /
  3. Khoa Học
  4. /
  5. Introduction to Anomaly Detection in R

Connected

Bài tập

Cross-tabulate binary scores

The table() function tallies the number of occurrences of combinations of values across one or more vectors. The orientation of the output table depends on the order that the input vectors are specified. For example in the table

table(currency, country)

        country
currency UK USA
       $  0   1
       £  1   0

the rows are indexed by currency because this appears first in the table() function.

Hướng dẫn 1/2

undefined XP
    1
    2
  • Use the function table() to tabulate the agreement between binary anomaly scores from isolation forest and LOF, and the true disease label.