Skip to content

Commit

Permalink
Fix summary for cases where performance metrics contains NAs
Browse files Browse the repository at this point in the history
  • Loading branch information
jmaspons committed Apr 28, 2022
1 parent 233e6b3 commit f7373f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/results-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ summary.pipe_result.keras<- function(object, ...){

## performance
perf.summary<- lapply(object$performance, function(x){
x<- summary(coda::mcmc(x))
x<- summary(coda::mcmc(na.omit(x)))
data.frame(t(c(x$statistics[c("Mean", "SD", "Naive SE")], x$quantiles)), check.names=FALSE)
})

Expand Down

0 comments on commit f7373f2

Please sign in to comment.