Skip to content

Commit

Permalink
Update cnn.R
Browse files Browse the repository at this point in the history
  • Loading branch information
D-Maar authored Oct 24, 2024
1 parent a2ab8c5 commit c14e2ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/cnn.R
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ cnn<-function (X = NULL, Y = NULL, architecture, loss = c("mse", "mae",
early_stopping = NULL, lr_scheduler = NULL, custom_parameters = NULL,
device = c("cpu", "cuda", "mps"), plot = TRUE, verbose = TRUE, train_data_loader=NULL, valid_data_loader=NULL)
{
use_custom_dl<-!is.null(dataloader)
use_custom_dl<-!is.null(train_data_loader)
if(use_custom_dl){
sample_batch = train_data_loader$.iter()$.next()
X<- as.array(sample_batch$X)
Expand Down

0 comments on commit c14e2ef

Please sign in to comment.