Learn R Programming

SELF (version 0.1.1)

indicators: Calculate the f1,precision,recall score of the graph

Description

Calculate the f1,precision,recall score of the graph

Usage

indicators(pred, real)

Arguments

pred

Predicted graph

real

Real graph

Value

f1,precision,recall score.

Examples

Run this code
# NOT RUN {
pred<-matrix(c(0,0,0,0,1,0,1,1,0),nrow=3,ncol=3)
real<-matrix(c(0,0,0,0,1,0,1,0,0),nrow=3,ncol=3)
indicators(pred,real)
# }

Run the code above in your browser using DataLab