Skip to content

Correct the predict in AutoEncoder to consider non-vector layer outputs  #68

Closed

Description

@sylvaticus

Change the loop order in cache/predict of the AutoEncoder to allow convolutional layers with non-array output in layers

Activity

  1. self-assigned this
    on Jan 30, 2024
  2. sylvaticus commented on Nov 3, 2026

    @sylvaticus
    OwnerAuthor

    Fixed in 17e9096: the AutoEncoder now computes the cached encodings, predict and inverse_predict on the whole batch through the network's own (batched) predict, instead of looping over the layers and the rows, so inner layers can have outputs of any shape (e.g. ConvLayer or PoolingLayer). A regression test with convolutional and pooling layers in both the encoder and the decoder has been added in 7665bfa.

    Note that the encoded data (the output of the last encoder layer) must still be one-dimensional for each record, as predict returns a (records × features) matrix: end the encoder with a ReshaperLayer if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions