Skip to content

Commit

Permalink
save dev database name and schema in trainDetails
Browse files Browse the repository at this point in the history
  • Loading branch information
egillax committed Feb 29, 2024
1 parent 6233377 commit 331b1fa
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion R/CyclopsModels.R
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ fitCyclopsModel <- function(
trainDetails = list(
analysisId = analysisId,
analysisSource = '', #TODO add from model
developmentDatabase = attr(trainData, "metaData")$cdmDatabaseSchema,
developmentDatabase = attr(trainData, "metaData")$cdmDatabaseName,
developmentDatabaseSchema = attr(trainData, "metaData")$cdmDatabaseSchema,
attrition = attr(trainData, "metaData")$attrition,
trainingTime = paste(as.character(abs(comp)), attr(comp,'units')),
trainingDate = Sys.Date(),
Expand Down
3 changes: 2 additions & 1 deletion R/KNN.R
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ fitKNN <- function(trainData, modelSettings, search = 'none', analysisId, ...){

trainDetails = list(
analysisId = analysisId,
developmentDatabase = attr(trainData, "metaData")$cdmDatabaseSchema,
developmentDatabase = attr(trainData, "metaData")$cdmDatabaseName,
developmentDatabaseSchema = attr(trainData, "metaData")$cdmDatabaseSchema,
attrition = attr(trainData, "metaData")$attrition,
trainingTime = paste(as.character(abs(comp)), attr(comp,'units')),
trainingDate = Sys.Date(),
Expand Down
3 changes: 2 additions & 1 deletion R/RClassifier.R
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ fitRclassifier <- function(
trainDetails = list(
analysisId = analysisId,
analysisSource = '', #TODO add from model
developmentDatabase = attr(trainData, "metaData")$cdmDatabaseSchema,
developmentDatabase = attr(trainData, "metaData")$cdmDatabaseName,
developmentDatabaseSchema = attr(trainData, "metaData")$cdmDatabaseSchema,
attrition = attr(trainData, "metaData")$attrition,
trainingTime = paste(as.character(abs(comp)), attr(comp,'units')),
trainingDate = Sys.Date(),
Expand Down
3 changes: 2 additions & 1 deletion R/SklearnClassifier.R
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ fitSklearn <- function(
trainDetails = list(
analysisId = analysisId,
analysisSource = '', #TODO add from model
developmentDatabase = attr(trainData, "metaData")$cdmDatabaseSchema,
developmentDatabase = attr(trainData, "metaData")$cdmDatabaseName,
developmentDatabaseSchema = attr(trainData, "metaData")$cdmDatabaseSchema,
attrition = attr(trainData, "metaData")$attrition,
trainingTime = paste(as.character(abs(comp)), attr(comp,'units')),
trainingDate = Sys.Date(),
Expand Down

0 comments on commit 331b1fa

Please sign in to comment.