source(file.path(getwd(),"../00.global_dl.R"))
### Title: Reuters multi-class classification --- --- --- -- --- --- --- --- ----
# Deep Learning with R by François Chollet
# 3.5 Classifying newswires: a multiclass classification example
##1. Loading DATA -------------------------------------------------------
# classify Reuters newswires into 46 different mutually exclusive topics
# The dimensionality of the output space is much larger. (from 2 to 46)
#reuters <- dataset_reuters(num_words = 10000)
reuters <- readRDS("~/DATA/DL/reuters.RData")
c(c(trnData, trnLabels), c(tstData, tstLabels)) %<-% reuters
tf$keras$callbacks tf$keras로 training 중에 , 동작을 확장/수정하고자 모델로 전달하는 객체 그 중 유용한 callback. tf$keras$callbacks$ModelCheckpoint tf$keras$callbacks$LearningRateScheduler tf$keras$callbacks$EarlyStopping tf$keras$callbacks$TensorBoard model & weight 저장 tf$data$dataset