refining MultiLineFitterTest

This commit is contained in:
frankknoll
2023-11-17 21:13:27 +01:00
parent ee524ef036
commit 36492ae88b
4 changed files with 37 additions and 13 deletions

View File

@@ -669,8 +669,8 @@
"metadata": {},
"outputs": [],
"source": [
"symptomX = 'Immunosuppression'\n",
"symptomY = 'Infection' # 'Immunoglobulin therapy'"
"symptomX = 'HIV test' # 'Immunosuppression'\n",
"symptomY = 'Immunoglobulin therapy' # 'Infection' # 'Immunoglobulin therapy'"
]
},
{
@@ -723,7 +723,7 @@
" s = 100,\n",
" label = \"Dots\")\n",
"for cluster, line in zip(clusters, lines):\n",
" if(len(cluster) > 2):\n",
" if len(cluster) >= 3:\n",
" coords = line.transform_points(cluster)\n",
" magnitude = line.direction.norm()\n",
" line.plot_2d(ax, t_1 = min(coords) / magnitude, t_2 = max(coords) / magnitude)\n",