Skip to content

Commit

Permalink
fix keras3 update issue
Browse files Browse the repository at this point in the history
  • Loading branch information
maotian06 committed Dec 27, 2024
1 parent 940af1e commit da5134f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/create.autoencoder.irf.matrix.R
Original file line number Diff line number Diff line change
Expand Up @@ -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]]));
Expand Down

0 comments on commit da5134f

Please sign in to comment.