Description Usage Arguments Details Value Note Author(s) See Also Examples

View source: R/camel.tiger.roc.R

Draws ROC curve for a graph path according to the true graph structure.

1 | ```
camel.tiger.roc(path, theta, verbose = TRUE)
``` |

`path` |
A graph path. |

`theta` |
The true graph structure. |

`verbose` |
If |

To avoid the horizontal oscillation, false positive rates is automatically sorted in the ascent oder and true positive rates also follow the same order.

An object with S3 class "roc" is returned:

`F1` |
The F1 scores along the graph path. |

`tp` |
The true positive rates along the graph path |

`fp` |
The false positive rates along the graph paths |

`AUC` |
Area under the ROC curve |

For a lasso regression, the number of nonzero coefficients is at most `n-1`

. If `d>>n`

, even when regularization parameter is very small, the estimated graph may still be sparse. In this case, the AUC may not be a good choice to evaluate the performance.

Xingguo Li, Tuo Zhao, and Han Liu

Maintainer: Xingguo Li <xingguo.leo@gmail.com>

1 2 3 4 5 6 7 8 9 | ```
#generate data
L = camel.tiger.generator(d = 50, graph = "random", prob = 0.1)
out1 = camel.tiger(L$data, lambda=10^(seq(log10(.4), log10(0.03), length.out=20)))
#draw ROC curve
Z1 = camel.tiger.roc(out1$path,L$theta)
#Maximum F1 score
max(Z1$F1)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.