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
Add omnibus_embedding_pairwise to pipeline module #823
Conversation
❌ Deploy Preview for graspologic failed. 🔨 Explore the source changes: d1c2aab 🔍 Inspect the deploy log: https://app.netlify.com/sites/graspologic/deploys/611eaded4491d00007f4bc84 |
# create a graph that contains all nodes and edges across the entire corpus | ||
union_graph = graphs[0].copy() | ||
for graph in graphs[1:]: | ||
union_graph.add_edges_from(graph.edges()) | ||
|
||
union_graph_lcc = largest_connected_component(union_graph) | ||
union_graph_lcc_nodes = union_graph_lcc.nodes() | ||
union_node_ids = np.array(list(union_graph_lcc_nodes)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just wanted to mention that we have a util function for this here https://github.com/microsoft/graspologic/blob/07c78921491da596e9f438c740805c7a920aaa0d/graspologic/utils/utils.py#L584
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nyecarr maybe you can use this in #824 too?
Reference Issues/PRs
What does this implement/fix? Briefly explain your changes.
Add wrapper api to omnibus and add the pairwise omni technique used in
topologic
Any other comments?
Added a couple elbow cut tests for pipeline ase/lse just for peace of mind.