Replies: 1 comment 2 replies
-
Hey @jjkai, good question. This is possible in Ludwig using the CLI command https://github.com/ludwig-ai/ludwig/blob/master/tests/integration_tests/test_collect.py#L91 Let me know if you have any follow-up questions or suggestions for how we can improve the docs / features around this! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi I have question on how can I extract the embedding from my model for my other downstream tasks. Say for example, running k-means clustering.
Context: I am training a text classification model following the example here: https://ludwig.ai/latest/examples/text_classification/
However, instead of getting the prediction result for each of the records, I am also interested in extracting the embedding for each record: the output from the last fully connected layer before making the prediction. That way I can try to run some other analysis to see what information the model is capturing. As simple as running a k-means clustering to see if each cluster contains similar data records.
Any advise and feedback are appreciated. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions