Description Usage Arguments Value
View source: R/Prepare_for_Keras.R
Provide the output needed for starting a deep learning model using keras
:
1 2 3 4 5 6 7 | Setup_For_Keras(path, outcome = NULL, ratio = 2/3, ROIname,
ROINameNorm = NULL, TrainTest = TRUE, per_patient_sampling = TRUE,
New_Pixel_Spacing = c(), ROIBitMask = TRUE, TargetSize = "auto",
VirtualBiopsy = FALSE, VirtualBiopsyRay = c(10, 10),
VirtualBiopsyMaxNum = 25, backgroud = c("zero", "min", "mean",
"runif", "rnorm"), bckwidth = 0.5, threshold_filter = 150,
ROImap = NULL)
|
path |
The |
outcome |
A |
ratio |
a number between 0 and 1 giving the ratio between training set and verification set (default 2/3) |
ROIname |
a |
ROINameNorm |
a |
TrainTest |
|
per_patient_sampling |
a |
New_Pixel_Spacing |
a |
ROIBitMask |
a |
TargetSize |
default value is |
VirtualBiopsy |
|
VirtualBiopsyRay |
a |
VirtualBiopsyMaxNum |
a |
backgroud |
the value of the pixel surrounding the ROI in the background: |
bckwidth |
a |
threshold_filter |
The threshold number of pixels per slice |
ROImap |
If available, the result of a map.ROI function, as an object of class ROImap given by moddicom package. |
ROIList
: The list of ROIs as achieved by moddicom geoLet$getROIVoxels( )
function.
cases_data.frame
: A data.frame
containing the patients IDs (pt_name
), each ROI_name
mapped in each patient and the pt_outcome
that reports the patient outcome.
images_array
: The final array
of selected images structured keras requires.
keras_outcome
: A numeric
vector as required by keras for the classification of outcome
df_outcome
: A data.frame
containing the labels of the outcome as provided by user and the corresponding labels (numeric values) used for modeling in keras.
cases_data.frame
: A data.frame
containing the patients IDs (pt_name
), each ROI_name
mapped in each patient and the pt_outcome
that reports the patient outcome.
images_array_train
: The final array
of selected images structured as keras requires. This is the training dataset. Available if TrainTest=TRUE
.
images_array_test
: The final array
of selected images structured as keras requires. This is the test dataset. Available if TrainTest=TRUE
.
keras_outcome_train
: A numeric
vector as required by keras for the classification of outcome. This is the outcome for the training dataset. Available if TrainTest=TRUE
.
keras_outcome_test
: A numeric
vector as required by keras for the classification of outcome. This is the outcome for the test dataset. Available if TrainTest=TRUE
.
df_outcome
: A data.frame
containing the labels of the outcome as provided by user and the corresponding labels (numeric values) used for modeling in keras.
total_data.frame_train
: The data.frame
with all cases and slices corresponding to the images in the images_array_train
array. Available if TrainTest=TRUE
.
total_data.frame_test
: The data.frame
with all cases and slices corresponding to the images in the images_array_test
array. Available if TrainTest=TRUE
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.