Skip to content

Commit 69a0ac9

Browse files
authored
better format for div code blocks, add missing dependencies to requirements.txt(#28)
1 parent fd80d47 commit 69a0ac9

File tree

2 files changed

+17
-22
lines changed

2 files changed

+17
-22
lines changed

multilabel_classification/image_tagging.ipynb

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,20 @@
1515
"id": "adaefc8b-b639-4bdf-af0d-337519e37ffc",
1616
"metadata": {},
1717
"source": [
18-
"<div class=\"alert alert-info\">\n",
19-
"Quickstart\n",
20-
"<br/>\n",
21-
" \n",
22-
"cleanlab finds label issues based on two inputs: `labels` formatted as a list of lists of integer class indices that apply to each example in your dataset, and `pred_probs` from a trained multi-label classification model (which do not need to sum to 1 since the classes are not mutually exclusive). Once you have these, run the code below to find label issues in your dataset.\n",
23-
"\n",
24-
"<div class=markdown markdown=\"1\" style=\"background:white;margin:16px\"> \n",
25-
" \n",
26-
"```ipython3 \n",
27-
"from cleanlab.filter import find_label_issues\n",
28-
"\n",
29-
"ranked_label_issues = find_label_issues(\n",
30-
" labels=labels,\n",
31-
" pred_probs=pred_probs,\n",
32-
" multi_label=True,\n",
33-
" return_indices_ranked_by=\"self_confidence\",\n",
34-
")\n",
35-
"```\n",
36-
"\n",
37-
" \n",
38-
"</div>\n",
39-
"</div>"
18+
"> ## Quickstart\n",
19+
"> \n",
20+
"> cleanlab finds label issues based on two inputs: `labels` formatted as a list of lists of integer class indices that apply to each example in your dataset, and `pred_probs` from a trained multi-label classification model (which do not need to sum to 1 since the classes are not mutually exclusive). Once you have these, run the code below to find label issues in your dataset.\n",
21+
"> \n",
22+
"> ```ipython3 \n",
23+
"> from cleanlab.filter import find_label_issues\n",
24+
"> \n",
25+
"> ranked_label_issues = find_label_issues(\n",
26+
"> labels=labels,\n",
27+
"> pred_probs=pred_probs,\n",
28+
"> multi_label=True,\n",
29+
"> return_indices_ranked_by=\"self_confidence\",\n",
30+
"> )\n",
31+
"> ```"
4032
]
4133
},
4234
{

requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
cleanlab # Some examples may require you to instead install latest developer version of cleanlab from github: pip install git+https://github.com/cleanlab/cleanlab.git
22
annoy==1.17.1
33
autogluon.vision==0.5.2
4+
gdown==4.5.3
45
ipykernel==6.15.2
56
ipywidgets==8.0.2
67
jupyterlab
@@ -18,6 +19,8 @@ six==1.16.0
1819
statsmodels==0.13.2
1920
tensorflow==2.9.2 # for Macs with Apple silicon : tensorflow-macos==2.9.2 and tensorflow-metal==0.5.1
2021
tensorflow-datasets==4.6.0
22+
timm
23+
torch==1.12.1
2124
tqdm>=4.64.0
2225
transformers==4.22.0.dev0
2326
black[jupyter]

0 commit comments

Comments
 (0)