Skip to content

Commit

Permalink
Include clustering in the walkthrough
Browse files Browse the repository at this point in the history
  • Loading branch information
woodthom2 committed Jan 22, 2025
1 parent fdd72f1 commit 6364794
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Harmony_example_walkthrough.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2006,6 +2006,25 @@
"# From version 1.0.2, you can adjust the crosswalk function's behaviour\n",
"df_crosswalk_table = generate_crosswalk_table(questions, similarity, threshold, is_allow_within_instrument_matches=True, is_enforce_one_to_one: bool = True)\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"## Cluster the questions - from version 1.0.2"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from harmony.matching.cluster import cluster_questions\n",
"cluster_questions(instruments[0], 2, False)"
]
}
],
"metadata": {
Expand Down

0 comments on commit 6364794

Please sign in to comment.