Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Implement Encode/Decode Methods #17

Open
DiogenesAnalytics opened this issue Dec 16, 2023 · 1 comment
Open

Feature: Implement Encode/Decode Methods #17

DiogenesAnalytics opened this issue Dec 16, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@DiogenesAnalytics
Copy link
Owner

Problem

Currently there are no "sub-models" being created for the encoder and decoder. This is due to the complexity involved in determining which layers to use as input/output for each model. Regardless of the eventual implementation strategy chosen, the BaseAutoencoder class should have both encode() and decode() methods.

References

@DiogenesAnalytics
Copy link
Owner Author

DiogenesAnalytics commented Dec 17, 2023

Class: MetaLayer

Might make sense to refactor code to use a MetaLayer class to store layer type/params:

from dataclasses import dataclass
from collections.abc import Sequence
from typing import Any
from typing import Dict

from keras.layers import Layer
from typing_extensions import override

@dataclass
class MetaLayer(Sequence):
    
    layer: Layer
    params: Dict[str, Any]

class Encode(MetaLayer):
    pass

class Decode(MetaLayer):
    pass

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant