Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zeller Group
SIAMCAT
Commits
8abe6239
Commit
8abe6239
authored
Dec 01, 2017
by
Konrad Zych
Browse files
renaming eval.results -> eval.predictions
parent
d6eb9db9
Pipeline
#2602
failed with stage
in 3 minutes and 15 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
R/eval_predictions.r
View file @
8abe6239
...
...
@@ -33,7 +33,7 @@
#' \item \code{$aucspr} vector of AUC values for the PR curves for every repeat;
#' \item \code{$auc.all} vector of AUC values for the ROC curves for every repeat
#'}
eval.re
sult
<-
function
(
label
,
pred
){
eval.
p
re
dictions
<-
function
(
label
,
pred
){
# TODO compare header to label
### make sure that label and prediction are in the same order
...
...
Rscript_flavor/11_evaluate_predictions.r
View file @
8abe6239
...
...
@@ -47,8 +47,8 @@ label <- read.labels(opt$label)
pred
<-
read.table
(
file
=
opt
$
pred
,
sep
=
'\t'
,
header
=
TRUE
,
row.names
=
1
,
check.names
=
FALSE
,
comment.char
=
"#"
)
pred
<-
as.matrix
(
pred
)
eval.data
<-
eval.re
sult
(
label
=
label
,
pred
=
pred
)
eval.data
<-
eval.
p
re
dictions
(
label
=
label
,
pred
=
pred
)
evaluation.model.plot
(
label
=
label
,
pred
=
pred
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment