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

get_embeddings based on layer name #17

Merged
merged 1 commit into from
Sep 17, 2024
Merged

get_embeddings based on layer name #17

merged 1 commit into from
Sep 17, 2024

Conversation

LukasMahieu
Copy link
Collaborator

Adds a function to the Crested object to return the embeddings based on the model's layer name.
Useful for visualizing representations.

Example

evaluator = crested.tl.Crested(....)
evaluator.load_model(...)
embeddings = evaluator.get_embeddings(layer_name="global_average_pooling1d_3")

@LukasMahieu LukasMahieu merged commit 9f737da into main Sep 17, 2024
4 checks passed
@LukasMahieu LukasMahieu deleted the return_embeddings branch September 17, 2024 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant