Skip to content

Commit

Permalink
sample fraction
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulaKramer committed Feb 1, 2025
1 parent 762f24f commit a56aefc
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions notebooks/custom_kinfraglib/2_2_custom_filters_analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@
"source": [
"fragment_library_orig = utils.read_fragment_library(PATH_DATA / \"fragment_library\")\n",
"fragment_library = filters.prefilters.pre_filters(fragment_library_orig)\n",
"pd.concat(fragment_library).shape"
"pd.concat(fragment_library).shape\n",
"# NBVAL_CHECK_OUTPUT"
]
},
{
Expand Down Expand Up @@ -398,8 +399,7 @@
}
],
"source": [
"HTML(fragment_library[\"AP\"].head().to_html(notebook=True))\n",
"# NBVAL_CHECK_OUTPUT"
"HTML(fragment_library[\"AP\"].head().to_html(notebook=True))"
]
},
{
Expand Down Expand Up @@ -432,7 +432,8 @@
],
"source": [
"fragment_library_reduced = utils.read_fragment_library(PATH_DATA / \"fragment_library_reduced\")\n",
"pd.concat(fragment_library_reduced).shape"
"pd.concat(fragment_library_reduced).shape\n",
"# NBVAL_CHECK_OUTPUT"
]
},
{
Expand Down Expand Up @@ -584,8 +585,7 @@
}
],
"source": [
"HTML(fragment_library_reduced[\"AP\"].head().to_html(notebook=True))\n",
"# NBVAL_CHECK_OUTPUT"
"HTML(fragment_library_reduced[\"AP\"].head().to_html(notebook=True))"
]
},
{
Expand Down Expand Up @@ -1471,16 +1471,6 @@
" return tsne_df"
]
},
{
"cell_type": "code",
"execution_count": 17,
"id": "bf4ef6ef",
"metadata": {},
"outputs": [],
"source": [
"#debug_tsne(fragment_library, 0.3)"
]
},
{
"cell_type": "code",
"execution_count": 18,
Expand Down Expand Up @@ -1510,7 +1500,7 @@
}
],
"source": [
"fragment_library_subset = filters.plots.sample_subset(fragment_library, 0.3)\n",
"fragment_library_subset = filters.plots.sample_subset(fragment_library, 0.4)\n",
"crds_embedded = filters.plots.create_tsne_embeddings(fragment_library_subset)\n",
"tsne_df = filters.plots.create_tsne_plots(crds_embedded, fragment_library_subset)"
]
Expand Down

0 comments on commit a56aefc

Please sign in to comment.