score_slice_data: Score a data frame of image slices with a Keras model

Description Usage Arguments Value

Description

Score a data frame of image slices with a Keras model

Usage

1
2
3
score_slice_data(slice_data, model_params, scoring_model,
  score_outpath = NULL, compress_score_rds = FALSE,
  return_score = TRUE, keep_array = FALSE, verbose = FALSE)

Arguments

slice_data

Data frame containing image slice data

model_params

Model parameters object created during model training

scoring_model

Trained keras model object

score_outpath

Path to save results of image scoring as .rds file

compress_score_rds

Should saved score results be compressed

return_score

Should score results be returned as an R object by the function

verbose

Should messages about current step being processes be printed to screen?

Value

List containing model parameters and input 'img_data' data frame with additional column containing model predicted probabilities for each slice

If score outpath != NULL returned data frame will be saved to outpath as an RDS file, compressed if compress_score_rds == TRUE.


treysp/coolit documentation built on June 5, 2019, 5:16 p.m.