Skip to content

Commit

Permalink
filter notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
cbbcbail committed Jul 19, 2024
1 parent 511fe13 commit 8b0d47d
Show file tree
Hide file tree
Showing 9 changed files with 105 additions and 314,496 deletions.
1 change: 0 additions & 1 deletion flexibleSubsetSelection/objective.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def preserveMetric(subset: np.ndarray, metric: Callable,

# If the metric results are scalars, use the absolute difference
if np.isscalar(datasetMetric):
print(datasetMetric, subsetMetric)
return np.abs(datasetMetric - subsetMetric)

# Otherwise, use np.linalg.norm for array-like metric results
Expand Down
26 changes: 4 additions & 22 deletions jupyter/Fig1-designProcess.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -69,12 +69,8 @@
"### Convex Hull Objective\n",
"\n",
"Applying this objective allows us to select the smallest subset that covers the convex hull of the original dataset.\n",
"$$\n",
" \\min_{S \\in \\mathbb{S}}\\space \\|S\\|\n",
"$$\n",
"$$\n",
" \\text{s.t.} \\space \\text{Hull}(S) = 0\n",
"$$"
"$$\\min_{S \\in \\mathbb{S}} \\space \\|S\\|$$\n",
"$$\\text{s.t.} \\space \\text{Hull}(S) = 0$$"
]
},
{
Expand Down Expand Up @@ -395,22 +391,8 @@
}
],
"metadata": {
"kernelspec": {
"display_name": ".venv",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.4"
"name": "python"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit 8b0d47d

Please sign in to comment.