From da5134f0c319e428e9535a1481119c1ea4d15210 Mon Sep 17 00:00:00 2001 From: Mao Tian Date: Thu, 26 Dec 2024 17:29:10 -0800 Subject: [PATCH] fix keras3 update issue --- R/create.autoencoder.irf.matrix.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/create.autoencoder.irf.matrix.R b/R/create.autoencoder.irf.matrix.R index d78b9a9..42b8126 100644 --- a/R/create.autoencoder.irf.matrix.R +++ b/R/create.autoencoder.irf.matrix.R @@ -43,7 +43,7 @@ create.autoencoder.irf.matrix <- function( } # create the autoencoder encoding layers from input to the bottleneck layer - intermediate.layer.model <- keras_model(inputs = model$input, outputs = get_layer(model, 'bottleneck')$output); + intermediate.layer.model <- keras_model(inputs = model$inputs, outputs = get_layer(model, 'bottleneck')$output); # get the bottleneck values from the autoencoder bottleneck.values <- predict(intermediate.layer.model,x = t(data.matrices[[data.type]]));