great-ai/docs/examples/scibert/data.ipynb
Andras Schmelczer cf61b38b45
All checks were successful
Publish documentation to great-ai.schmelczer.dev / publish (push) Successful in 1m10s
Check / Lint, format & type checks (push) Successful in 1m55s
Check / Test on Python 3.12 (push) Successful in 3m8s
Check / Test on Python 3.13 (push) Successful in 2m32s
Check / Notebooks on Python 3.12 (push) Successful in 8m49s
Check / Notebooks on Python 3.13 (push) Successful in 7m53s
Rerender
2026-10-28 22:53:24 +00:00

2314 lines
132 KiB
Text

{
"cells": [
{
"cell_type": "markdown",
"id": "cell-0",
"metadata": {},
"source": [
"# Explore data and feasibility of approach\n",
"\n",
"The original annotations are proprietary. This notebook defaults to 60\n",
"clearly synthetic sentences with two simulated annotators so the entire\n",
"training/deployment workflow can run locally without credentials.\n",
"These data and their scores demonstrate execution only.\n",
"\n",
"To use your own JSON annotation files (each maps sentences to binary\n",
"labels), set `GREAT_AI_ANNOTATIONS_DIR` to their directory before starting\n",
"Jupyter. No private data or cloud configuration is included in this repo."
]
},
{
"cell_type": "markdown",
"id": "6da6bb8a",
"metadata": {},
"source": [
"## Local setup\n",
"\n",
"Use Python 3.12 or 3.13 and install this checkout with `uv pip install --editable '.[notebooks]'`.\n",
"See **Run notebooks locally** in the repository README for the kernel, execution order,\n",
"and full-data options. Run related notebooks from the same working directory\n",
"to share the default `.cache/` model store and `tracing_database.json` database.\n"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "cell-3",
"metadata": {
"execution": {
"iopub.execute_input": "2026-10-28T22:47:59.684612Z",
"iopub.status.busy": "2026-10-28T22:47:59.684455Z",
"iopub.status.idle": "2026-10-28T22:47:59.694166Z",
"shell.execute_reply": "2026-10-28T22:47:59.693485Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Using synthetic demo annotations; scores are not research results.\n"
]
}
],
"source": [
"import json\n",
"import os\n",
"from pathlib import Path\n",
"\n",
"from docs.notebook_support import demo_annotations\n",
"\n",
"annotation_dir = os.environ.get(\"GREAT_AI_ANNOTATIONS_DIR\")\n",
"if annotation_dir:\n",
" annotations = [\n",
" json.loads(p.read_text(encoding=\"utf-8\"))\n",
" for p in sorted(Path(annotation_dir).expanduser().glob(\"*.json\"))\n",
" ]\n",
" if not annotations:\n",
" raise ValueError(f\"No annotation JSON files found in {annotation_dir}\")\n",
"else:\n",
" annotations = demo_annotations()\n",
" print(\"Using synthetic demo annotations; scores are not research results.\")\n",
"\n",
"evaluations = {\n",
" sentence: [\n",
" annotation[sentence] for annotation in annotations if sentence in annotation\n",
" ]\n",
" for sentence in sorted(\n",
" {sentence for annotation in annotations for sentence in annotation}\n",
" )\n",
"}\n",
"X = list(evaluations)\n",
"y = [int(sum(e) > 0) for e in evaluations.values()]"
]
},
{
"cell_type": "markdown",
"id": "cell-4",
"metadata": {},
"source": [
"Save the processed dataset using local versioned storage for the training notebook."
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "cell-5",
"metadata": {
"execution": {
"iopub.execute_input": "2026-10-28T22:47:59.695771Z",
"iopub.status.busy": "2026-10-28T22:47:59.695589Z",
"iopub.status.idle": "2026-10-28T22:48:00.795320Z",
"shell.execute_reply": "2026-10-28T22:48:00.795003Z"
}
},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"\u001b[38;5;39mFetching cached versions of summary-train-dataset-small\u001b[0m\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"\u001b[38;5;39mFetching cached versions of summary-train-dataset-small\u001b[0m\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"\u001b[38;5;39mFetching cached versions of summary-train-dataset-small\u001b[0m\n"
]
}
],
"source": [
"from great_ai.large_file import LargeFileLocal\n",
"\n",
"with LargeFileLocal(\"summary-train-dataset-small\", \"w\", encoding=\"utf-8\") as f:\n",
" json.dump((X, y), f)"
]
},
{
"cell_type": "markdown",
"id": "cell-6",
"metadata": {},
"source": [
"Filter out sentences which don't have enough annotations."
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "cell-7",
"metadata": {
"execution": {
"iopub.execute_input": "2026-10-28T22:48:00.796420Z",
"iopub.status.busy": "2026-10-28T22:48:00.796263Z",
"iopub.status.idle": "2026-10-28T22:48:00.798035Z",
"shell.execute_reply": "2026-10-28T22:48:00.797684Z"
}
},
"outputs": [],
"source": [
"y1 = [e[0] for e in evaluations.values() if len(e) == 2]\n",
"y2 = [e[1] for e in evaluations.values() if len(e) == 2]"
]
},
{
"cell_type": "markdown",
"id": "cell-8",
"metadata": {},
"source": [
"Calculate [Cohen's kappa](https://en.wikipedia.org/wiki/Cohen%27s_kappa).\n",
"\n",
"It's a bit low but the task itself is pretty subjective so it's not all that surprising."
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "cell-9",
"metadata": {
"execution": {
"iopub.execute_input": "2026-10-28T22:48:00.798711Z",
"iopub.status.busy": "2026-10-28T22:48:00.798654Z",
"iopub.status.idle": "2026-10-28T22:48:00.806309Z",
"shell.execute_reply": "2026-10-28T22:48:00.806045Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"0.8\n"
]
}
],
"source": [
"import sklearn.metrics\n",
"\n",
"if y1:\n",
" print(sklearn.metrics.cohen_kappa_score(y1, y2))\n",
"else:\n",
" print(\"No sentences have exactly two annotations; kappa is unavailable.\")"
]
},
{
"cell_type": "markdown",
"id": "cell-10",
"metadata": {},
"source": [
"Can we train anything on this data?\n",
"\n",
"Let's try with a trivial SVM."
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "cell-11",
"metadata": {
"execution": {
"iopub.execute_input": "2026-10-28T22:48:00.807045Z",
"iopub.status.busy": "2026-10-28T22:48:00.806983Z",
"iopub.status.idle": "2026-10-28T22:48:00.808468Z",
"shell.execute_reply": "2026-10-28T22:48:00.808132Z"
}
},
"outputs": [],
"source": [
"X = [s for s in evaluations.keys()]\n",
"y = [int(sum(e) > 0) for e in evaluations.values()]"
]
},
{
"cell_type": "code",
"execution_count": 6,
"id": "cell-12",
"metadata": {
"execution": {
"iopub.execute_input": "2026-10-28T22:48:00.809082Z",
"iopub.status.busy": "2026-10-28T22:48:00.809029Z",
"iopub.status.idle": "2026-10-28T22:48:00.861903Z",
"shell.execute_reply": "2026-10-28T22:48:00.861397Z"
}
},
"outputs": [
{
"data": {
"text/plain": [
"array([0.41666667, 0.25 , 0.16666667, 0.41666667, 0.5 ])"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from sklearn.model_selection import train_test_split\n",
"from sklearn.svm import LinearSVC\n",
"from sklearn.pipeline import Pipeline\n",
"from sklearn.feature_extraction.text import TfidfVectorizer\n",
"from sklearn.model_selection import cross_val_score\n",
"\n",
"model = Pipeline(\n",
" steps=[\n",
" (\"vectorizer\", TfidfVectorizer(sublinear_tf=True, min_df=3, max_df=0.3)),\n",
" (\"classifier\", LinearSVC(random_state=42)),\n",
" ]\n",
") # baseline model\n",
"\n",
"cross_val_score(model, X, y, cv=5)"
]
},
{
"cell_type": "markdown",
"id": "cell-13",
"metadata": {},
"source": [
"The cross-validation shows promising accuracies. But accuracy isn't everything, therefore, we should investigate the accuracy metrics."
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "cell-14",
"metadata": {
"execution": {
"iopub.execute_input": "2026-10-28T22:48:00.862626Z",
"iopub.status.busy": "2026-10-28T22:48:00.862564Z",
"iopub.status.idle": "2026-10-28T22:48:00.873305Z",
"shell.execute_reply": "2026-10-28T22:48:00.872879Z"
}
},
"outputs": [
{
"data": {
"text/html": [
"<style>.sk-global {\n",
" /* Definition of color scheme common for light and dark mode */\n",
" --sklearn-color-text: #000;\n",
" --sklearn-color-text-muted: #666;\n",
" --sklearn-color-line: gray;\n",
" /* Definition of color scheme for unfitted estimators */\n",
" --sklearn-color-unfitted-level-0: #fff5e6;\n",
" --sklearn-color-unfitted-level-1: #f6e4d2;\n",
" --sklearn-color-unfitted-level-2: #ffe0b3;\n",
" --sklearn-color-unfitted-level-3: chocolate;\n",
" /* Definition of color scheme for fitted estimators */\n",
" --sklearn-color-fitted-level-0: #f0f8ff;\n",
" --sklearn-color-fitted-level-1: #d4ebff;\n",
" --sklearn-color-fitted-level-2: #b3dbfd;\n",
" --sklearn-color-fitted-level-3: cornflowerblue;\n",
"}\n",
"\n",
".sk-global.light {\n",
" /* Specific color for light theme */\n",
" --sklearn-color-text-on-default-background: black;\n",
" --sklearn-color-background: white;\n",
" --sklearn-color-border-box: black;\n",
" --sklearn-color-icon: #696969;\n",
"}\n",
"\n",
".sk-global.dark {\n",
" --sklearn-color-text-on-default-background: white;\n",
" --sklearn-color-background: #111;\n",
" --sklearn-color-border-box: white;\n",
" --sklearn-color-icon: #878787;\n",
"}\n",
"\n",
".sk-global {\n",
" color: var(--sklearn-color-text);\n",
"}\n",
"\n",
".sk-global pre {\n",
" padding: 0;\n",
"}\n",
"\n",
".sk-global input.sk-hidden--visually {\n",
" border: 0;\n",
" clip-path: inset(100%);\n",
" height: 1px;\n",
" margin: -1px;\n",
" overflow: hidden;\n",
" padding: 0;\n",
" position: absolute;\n",
" width: 1px;\n",
"}\n",
"\n",
".sk-global div.sk-dashed-wrapped {\n",
" border: 1px dashed var(--sklearn-color-line);\n",
" margin: 0 0.4em 0.5em 0.4em;\n",
" box-sizing: border-box;\n",
" padding-bottom: 0.4em;\n",
" background-color: var(--sklearn-color-background);\n",
"}\n",
"\n",
".sk-global div.sk-container {\n",
" /* jupyter's `normalize.less` sets `[hidden] { display: none; }`\n",
" but bootstrap.min.css set `[hidden] { display: none !important; }`\n",
" so we also need the `!important` here to be able to override the\n",
" default hidden behavior on the sphinx rendered scikit-learn.org.\n",
" See: https://github.com/scikit-learn/scikit-learn/issues/21755 */\n",
" display: inline-block !important;\n",
" position: relative;\n",
"}\n",
"\n",
".sk-global div.sk-text-repr-fallback {\n",
" display: none;\n",
"}\n",
"\n",
"div.sk-parallel-item,\n",
"div.sk-serial,\n",
"div.sk-item {\n",
" /* draw centered vertical line to link estimators */\n",
" background-image: linear-gradient(var(--sklearn-color-text-on-default-background), var(--sklearn-color-text-on-default-background));\n",
" background-size: 2px 100%;\n",
" background-repeat: no-repeat;\n",
" background-position: center center;\n",
"}\n",
"\n",
"/* Parallel-specific style estimator block */\n",
"\n",
".sk-global div.sk-parallel-item::after {\n",
" content: \"\";\n",
" width: 100%;\n",
" border-bottom: 2px solid var(--sklearn-color-text-on-default-background);\n",
" flex-grow: 1;\n",
"}\n",
"\n",
".sk-global div.sk-parallel {\n",
" display: flex;\n",
" align-items: stretch;\n",
" justify-content: center;\n",
" background-color: var(--sklearn-color-background);\n",
" position: relative;\n",
"}\n",
"\n",
".sk-global div.sk-parallel-item {\n",
" display: flex;\n",
" flex-direction: column;\n",
"}\n",
"\n",
".sk-global div.sk-parallel-item:first-child::after {\n",
" align-self: flex-end;\n",
" width: 50%;\n",
"}\n",
"\n",
".sk-global div.sk-parallel-item:last-child::after {\n",
" align-self: flex-start;\n",
" width: 50%;\n",
"}\n",
"\n",
".sk-global div.sk-parallel-item:only-child::after {\n",
" width: 0;\n",
"}\n",
"\n",
"/* Serial-specific style estimator block */\n",
"\n",
".sk-global div.sk-serial {\n",
" display: flex;\n",
" flex-direction: column;\n",
" align-items: center;\n",
" background-color: var(--sklearn-color-background);\n",
" padding-right: 1em;\n",
" padding-left: 1em;\n",
"}\n",
"\n",
"\n",
"/* Toggleable style: style used for estimator/Pipeline/ColumnTransformer box that is\n",
"clickable and can be expanded/collapsed.\n",
"- Pipeline and ColumnTransformer use this feature and define the default style\n",
"- Estimators will overwrite some part of the style using the `sk-estimator` class\n",
"*/\n",
"\n",
"/* Pipeline and ColumnTransformer style (default) */\n",
"\n",
".sk-global div.sk-toggleable {\n",
" /* Default theme specific background. It is overwritten whether we have a\n",
" specific estimator or a Pipeline/ColumnTransformer */\n",
" background-color: var(--sklearn-color-background);\n",
"}\n",
"\n",
"/* Toggleable label */\n",
".sk-global label.sk-toggleable__label {\n",
" cursor: pointer;\n",
" display: flex;\n",
" width: 100%;\n",
" margin-bottom: 0;\n",
" padding: 0.5em;\n",
" box-sizing: border-box;\n",
" text-align: center;\n",
" align-items: center;\n",
" justify-content: center;\n",
" gap: 0.5em;\n",
"}\n",
"\n",
".sk-global label.sk-toggleable__label .caption {\n",
" font-size: 0.6rem;\n",
" font-weight: lighter;\n",
" color: var(--sklearn-color-text-muted);\n",
"}\n",
"\n",
".sk-global label.sk-toggleable__label-arrow:before {\n",
" /* Arrow on the left of the label */\n",
" content: \"▸\";\n",
" float: left;\n",
" margin-right: 0.25em;\n",
" color: var(--sklearn-color-icon);\n",
"}\n",
"\n",
".sk-global label.sk-toggleable__label-arrow:hover:before {\n",
" color: var(--sklearn-color-text);\n",
"}\n",
"\n",
"/* Toggleable content - dropdown */\n",
"\n",
".sk-global div.sk-toggleable__content {\n",
" display: none;\n",
" text-align: left;\n",
" /* unfitted */\n",
" background-color: var(--sklearn-color-unfitted-level-0);\n",
"}\n",
"\n",
".sk-global div.sk-toggleable__content.fitted {\n",
" /* fitted */\n",
" background-color: var(--sklearn-color-fitted-level-0);\n",
"}\n",
"\n",
".sk-global div.sk-toggleable__content pre {\n",
" margin: 0.2em;\n",
" border-radius: 0.25em;\n",
" color: var(--sklearn-color-text);\n",
" /* unfitted */\n",
" background-color: var(--sklearn-color-unfitted-level-0);\n",
"}\n",
"\n",
".sk-global div.sk-toggleable__content.fitted pre {\n",
" /* unfitted */\n",
" background-color: var(--sklearn-color-fitted-level-0);\n",
"}\n",
"\n",
".sk-global input.sk-toggleable__control:checked~div.sk-toggleable__content {\n",
" /* Expand drop-down */\n",
" display: block;\n",
" width: 100%;\n",
" overflow: visible;\n",
"}\n",
"\n",
".sk-global input.sk-toggleable__control:checked~label.sk-toggleable__label-arrow:before {\n",
" content: \"▾\";\n",
"}\n",
"\n",
"/* Pipeline/ColumnTransformer-specific style */\n",
"\n",
".sk-global div.sk-label input.sk-toggleable__control:checked~label.sk-toggleable__label {\n",
" color: var(--sklearn-color-text);\n",
" background-color: var(--sklearn-color-unfitted-level-2);\n",
"}\n",
"\n",
".sk-global div.sk-label.fitted input.sk-toggleable__control:checked~label.sk-toggleable__label {\n",
" background-color: var(--sklearn-color-fitted-level-2);\n",
"}\n",
"\n",
"/* Estimator-specific style */\n",
"\n",
"/* Colorize estimator box */\n",
".sk-global div.sk-estimator input.sk-toggleable__control:checked~label.sk-toggleable__label {\n",
" /* unfitted */\n",
" background-color: var(--sklearn-color-unfitted-level-2);\n",
"}\n",
"\n",
".sk-global div.sk-estimator.fitted input.sk-toggleable__control:checked~label.sk-toggleable__label {\n",
" /* fitted */\n",
" background-color: var(--sklearn-color-fitted-level-2);\n",
"}\n",
"\n",
".sk-global div.sk-label label.sk-toggleable__label,\n",
".sk-global div.sk-label label {\n",
" /* The background is the default theme color */\n",
" color: var(--sklearn-color-text-on-default-background);\n",
"}\n",
"\n",
"/* On hover, darken the color of the background */\n",
".sk-global div.sk-label:hover label.sk-toggleable__label {\n",
" color: var(--sklearn-color-text);\n",
" background-color: var(--sklearn-color-unfitted-level-2);\n",
"}\n",
"\n",
"/* Label box, darken color on hover, fitted */\n",
".sk-global div.sk-label.fitted:hover label.sk-toggleable__label.fitted {\n",
" color: var(--sklearn-color-text);\n",
" background-color: var(--sklearn-color-fitted-level-2);\n",
"}\n",
"\n",
"/* Estimator label */\n",
"\n",
".sk-global div.sk-label label {\n",
" font-family: monospace;\n",
" font-weight: bold;\n",
" line-height: 1.2em;\n",
"}\n",
"\n",
".sk-global div.sk-label-container {\n",
" text-align: center;\n",
"}\n",
"\n",
"/* Estimator-specific */\n",
".sk-global div.sk-estimator {\n",
" font-family: monospace;\n",
" border: 1px dotted var(--sklearn-color-border-box);\n",
" border-radius: 0.25em;\n",
" box-sizing: border-box;\n",
" margin-bottom: 0.5em;\n",
" /* unfitted */\n",
" background-color: var(--sklearn-color-unfitted-level-0);\n",
"}\n",
"\n",
".sk-global div.sk-estimator.fitted {\n",
" /* fitted */\n",
" background-color: var(--sklearn-color-fitted-level-0);\n",
"}\n",
"\n",
"/* on hover */\n",
".sk-global div.sk-estimator:hover {\n",
" /* unfitted */\n",
" background-color: var(--sklearn-color-unfitted-level-2);\n",
"}\n",
"\n",
".sk-global div.sk-estimator.fitted:hover {\n",
" /* fitted */\n",
" background-color: var(--sklearn-color-fitted-level-2);\n",
"}\n",
"\n",
"/* Specification for estimator info (e.g. \"i\" and \"?\") */\n",
"\n",
"/* Common style for \"i\" and \"?\" */\n",
"\n",
".sk-estimator-doc-link,\n",
"a:link.sk-estimator-doc-link,\n",
"a:visited.sk-estimator-doc-link {\n",
" float: right;\n",
" font-size: smaller;\n",
" line-height: 1em;\n",
" font-family: monospace;\n",
" background-color: var(--sklearn-color-unfitted-level-0);\n",
" border-radius: 1em;\n",
" height: 1em;\n",
" width: 1em;\n",
" text-decoration: none !important;\n",
" margin-left: 0.5em;\n",
" text-align: center;\n",
" /* unfitted */\n",
" border: var(--sklearn-color-unfitted-level-3) 1pt solid;\n",
" color: var(--sklearn-color-unfitted-level-3);\n",
"}\n",
"\n",
".sk-estimator-doc-link.fitted,\n",
"a:link.sk-estimator-doc-link.fitted,\n",
"a:visited.sk-estimator-doc-link.fitted {\n",
" /* fitted */\n",
" background-color: var(--sklearn-color-fitted-level-0);\n",
" border: var(--sklearn-color-fitted-level-3) 1pt solid;\n",
" color: var(--sklearn-color-fitted-level-3);\n",
"}\n",
"\n",
"/* On hover */\n",
"div.sk-estimator:hover .sk-estimator-doc-link:hover,\n",
".sk-estimator-doc-link:hover,\n",
"div.sk-label-container:hover .sk-estimator-doc-link:hover,\n",
".sk-estimator-doc-link:hover {\n",
" /* unfitted */\n",
" background-color: var(--sklearn-color-unfitted-level-3);\n",
" border: var(--sklearn-color-fitted-level-0) 1pt solid;\n",
" color: var(--sklearn-color-unfitted-level-0);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"div.sk-estimator.fitted:hover .sk-estimator-doc-link.fitted:hover,\n",
".sk-estimator-doc-link.fitted:hover,\n",
"div.sk-label-container:hover .sk-estimator-doc-link.fitted:hover,\n",
".sk-estimator-doc-link.fitted:hover {\n",
" /* fitted */\n",
" background-color: var(--sklearn-color-fitted-level-3);\n",
" border: var(--sklearn-color-fitted-level-0) 1pt solid;\n",
" color: var(--sklearn-color-fitted-level-0);\n",
" text-decoration: none;\n",
"}\n",
"\n",
"/* Span, style for the box shown on hovering the info icon */\n",
".sk-estimator-doc-link span {\n",
" display: none;\n",
" z-index: 9999;\n",
" position: relative;\n",
" font-weight: normal;\n",
" right: .2ex;\n",
" padding: .5ex;\n",
" margin: .5ex;\n",
" width: min-content;\n",
" min-width: 20ex;\n",
" max-width: 50ex;\n",
" color: var(--sklearn-color-text);\n",
" box-shadow: 2pt 2pt 4pt #999;\n",
" /* unfitted */\n",
" background: var(--sklearn-color-unfitted-level-0);\n",
" border: .5pt solid var(--sklearn-color-unfitted-level-3);\n",
"}\n",
"\n",
".sk-estimator-doc-link.fitted span {\n",
" /* fitted */\n",
" background: var(--sklearn-color-fitted-level-0);\n",
" border: var(--sklearn-color-fitted-level-3);\n",
"}\n",
"\n",
".sk-estimator-doc-link:hover span {\n",
" display: block;\n",
"}\n",
"\n",
"/* \"?\"-specific style due to the `<a>` HTML tag */\n",
"\n",
".sk-global a.estimator_doc_link {\n",
" float: right;\n",
" font-size: 1rem;\n",
" line-height: 1em;\n",
" font-family: monospace;\n",
" background-color: var(--sklearn-color-unfitted-level-0);\n",
" border-radius: 1rem;\n",
" height: 1rem;\n",
" width: 1rem;\n",
" text-decoration: none;\n",
" /* unfitted */\n",
" color: var(--sklearn-color-unfitted-level-1);\n",
" border: var(--sklearn-color-unfitted-level-1) 1pt solid;\n",
"}\n",
"\n",
".sk-global a.estimator_doc_link.fitted {\n",
" /* fitted */\n",
" background-color: var(--sklearn-color-fitted-level-0);\n",
" border: var(--sklearn-color-fitted-level-1) 1pt solid;\n",
" color: var(--sklearn-color-fitted-level-1);\n",
"}\n",
"\n",
"/* On hover */\n",
".sk-global a.estimator_doc_link:hover {\n",
" /* unfitted */\n",
" background-color: var(--sklearn-color-unfitted-level-3);\n",
" color: var(--sklearn-color-background);\n",
" text-decoration: none;\n",
"}\n",
"\n",
".sk-global a.estimator_doc_link.fitted:hover {\n",
" /* fitted */\n",
" background-color: var(--sklearn-color-fitted-level-3);\n",
"}\n",
"\n",
".sk-top-container.sk-global {\n",
" /* pydata-sphinx-theme hides overflow, so scrolling is disabled.\n",
" We need to set it to !important and add tabindex=\"0\" in the HTML\n",
" to allow keyboard-only users to navigate the display. */\n",
" overflow-x: scroll !important;\n",
" max-width: 100%;\n",
"}\n",
"\n",
".estimator-table {\n",
" font-family: monospace;\n",
"}\n",
"\n",
".estimator-table summary {\n",
" padding: .5rem;\n",
" cursor: pointer;\n",
"}\n",
"\n",
".estimator-table summary::marker {\n",
" font-size: 0.7rem;\n",
"}\n",
"\n",
".estimator-table details[open] {\n",
" padding-left: 0.1rem;\n",
" padding-right: 0.1rem;\n",
" padding-bottom: 0.3rem;\n",
"}\n",
"\n",
".estimator-table .parameters-table {\n",
" margin-left: auto !important;\n",
" margin-right: auto !important;\n",
" margin-top: 0;\n",
"}\n",
"\n",
".estimator-table .parameters-table tr:nth-child(odd) {\n",
" background-color: #fff;\n",
"}\n",
"\n",
".estimator-table .parameters-table tr:nth-child(even) {\n",
" background-color: #f6f6f6;\n",
"}\n",
"\n",
".estimator-table .parameters-table tr:hover td {\n",
" background-color: #e0e0e0;\n",
"}\n",
"\n",
".estimator-table table :is(td, th) {\n",
" border: 1px solid rgba(106, 105, 104, 0.232);\n",
"}\n",
"\n",
"/*\n",
" `table td`is set in notebook with right text-align.\n",
" We need to overwrite it.\n",
"*/\n",
".estimator-table table td.param {\n",
" text-align: left;\n",
" position: relative;\n",
" padding: 0;\n",
"}\n",
"\n",
".user-set td {\n",
" color:rgb(255, 94, 0);\n",
" text-align: left !important;\n",
"}\n",
"\n",
".user-set td.value {\n",
" color:rgb(255, 94, 0);\n",
" background-color: transparent;\n",
"}\n",
"\n",
".default td, .estimator-table th {\n",
" color: black;\n",
" text-align: left !important;\n",
"}\n",
"\n",
".user-set td i,\n",
".default td i {\n",
" color: black;\n",
"}\n",
"\n",
"td.fitted-att-type {\n",
" white-space: preserve nowrap;\n",
"}\n",
"\n",
"/*\n",
" Styles for parameter documentation links\n",
" We need styling for visited so jupyter doesn't overwrite it\n",
"*/\n",
"a.param-doc-link,\n",
"a.param-doc-link:link,\n",
"a.param-doc-link:visited {\n",
" text-decoration: underline dashed;\n",
" text-underline-offset: .3em;\n",
" color: inherit;\n",
" display: block;\n",
" padding: .5em;\n",
"}\n",
"\n",
"@supports(anchor-name: --doc-link) {\n",
" a.param-doc-link,\n",
" a.param-doc-link:link,\n",
" a.param-doc-link:visited {\n",
" anchor-name: --doc-link;\n",
" }\n",
"}\n",
"\n",
"/* \"hack\" to make the entire area of the cell containing the link clickable */\n",
"a.param-doc-link::before {\n",
" position: absolute;\n",
" content: \"\";\n",
" inset: 0;\n",
"}\n",
"\n",
".param-doc-description {\n",
" display: none;\n",
" position: absolute;\n",
" z-index: 9999;\n",
" left: 0;\n",
" padding: .5ex;\n",
" margin-left: 1.5em;\n",
" color: var(--sklearn-color-text);\n",
" box-shadow: .3em .3em .4em #999;\n",
" width: max-content;\n",
" text-align: left;\n",
" max-height: 10em;\n",
" overflow-y: auto;\n",
"\n",
" /* unfitted */\n",
" background: var(--sklearn-color-unfitted-level-0);\n",
" border: thin solid var(--sklearn-color-unfitted-level-3);\n",
"}\n",
"\n",
"@supports(position-area: center right) {\n",
" .param-doc-description {\n",
" position-area: center right;\n",
" position: fixed;\n",
" margin-left: 0;\n",
" }\n",
"}\n",
"\n",
"/* Fitted state for parameter tooltips */\n",
".fitted .param-doc-description {\n",
" /* fitted */\n",
" background: var(--sklearn-color-fitted-level-0);\n",
" border: thin solid var(--sklearn-color-fitted-level-3);\n",
"}\n",
"\n",
".param-doc-link:hover .param-doc-description {\n",
" display: block;\n",
"}\n",
"\n",
".copy-paste-icon {\n",
" background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0NDggNTEyIj48IS0tIUZvbnQgQXdlc29tZSBGcmVlIDYuNy4yIGJ5IEBmb250YXdlc29tZSAtIGh0dHBzOi8vZm9udGF3ZXNvbWUuY29tIExpY2Vuc2UgLSBodHRwczovL2ZvbnRhd2Vzb21lLmNvbS9saWNlbnNlL2ZyZWUgQ29weXJpZ2h0IDIwMjUgRm9udGljb25zLCBJbmMuLS0+PHBhdGggZD0iTTIwOCAwTDMzMi4xIDBjMTIuNyAwIDI0LjkgNS4xIDMzLjkgMTQuMWw2Ny45IDY3LjljOSA5IDE0LjEgMjEuMiAxNC4xIDMzLjlMNDQ4IDMzNmMwIDI2LjUtMjEuNSA0OC00OCA0OGwtMTkyIDBjLTI2LjUgMC00OC0yMS41LTQ4LTQ4bDAtMjg4YzAtMjYuNSAyMS41LTQ4IDQ4LTQ4ek00OCAxMjhsODAgMCAwIDY0LTY0IDAgMCAyNTYgMTkyIDAgMC0zMiA2NCAwIDAgNDhjMCAyNi41LTIxLjUgNDgtNDggNDhMNDggNTEyYy0yNi41IDAtNDgtMjEuNS00OC00OEwwIDE3NmMwLTI2LjUgMjEuNS00OCA0OC00OHoiLz48L3N2Zz4=);\n",
" background-repeat: no-repeat;\n",
" background-size: 14px 14px;\n",
" background-position: 0;\n",
" display: inline-block;\n",
" width: 14px;\n",
" height: 14px;\n",
" cursor: pointer;\n",
" border: none;\n",
" padding: 0;\n",
" background-color: transparent;\n",
"}\n",
"\n",
".copy-paste-icon:focus-visible {\n",
" outline: 1px solid currentColor;\n",
" outline-offset: 1px;\n",
"}\n",
"\n",
".features {\n",
" font-family: monospace;\n",
" cursor: pointer;\n",
" background-color: var(--sklearn-color-unfitted-level-0);\n",
" border: 1px dotted var(--sklearn-color-border-box);\n",
" border-radius: .20em;\n",
" margin-bottom: 0.5em;\n",
" font-size: inherit; /* Needed for jupyter */\n",
"}\n",
"\n",
".features.fitted {\n",
" background-color: var(--sklearn-color-fitted-level-0);\n",
"}\n",
"\n",
".features summary {\n",
" cursor: pointer;\n",
" display: flex;\n",
" margin-bottom: 0;\n",
" text-align: center;\n",
" align-items: center;\n",
" justify-content: center;\n",
" gap: 0.5em;\n",
" padding: .25em;\n",
"}\n",
"\n",
".features details[open] > summary {\n",
" color: var(--sklearn-color-text);\n",
" background-color: var(--sklearn-color-unfitted-level-2);\n",
" border-radius: .20em 0 0 0;\n",
"}\n",
"\n",
".features.fitted details[open] > summary {\n",
" background-color: var(--sklearn-color-fitted-level-2);\n",
" border-radius: .20em 0 0 0;\n",
"}\n",
"\n",
".features details > summary .arrow::before {\n",
" content: \"▸\";\n",
" color: grey;\n",
"}\n",
"\n",
".features details[open] > summary .arrow::before {\n",
" content: \"▾\";\n",
"}\n",
"\n",
".features details:hover > summary {\n",
" margin: 0;\n",
" background-color: var(--sklearn-color-unfitted-level-2);\n",
"}\n",
"\n",
".features.fitted details:hover > summary {\n",
" margin: 0;\n",
" background-color: var(--sklearn-color-fitted-level-2);\n",
"}\n",
"\n",
".features .features-container {\n",
" max-height: 10em;\n",
" overflow: auto;\n",
" scrollbar-width: thin;\n",
" padding: .25em 0.1rem;\n",
" background-color: var(--sklearn-color-unfitted-level-0);\n",
" border-radius: 0 0 .5em .5em;\n",
"}\n",
"\n",
".features.fitted .features-container {\n",
" background-color: var(--sklearn-color-fitted-level-0);\n",
"}\n",
"\n",
".features .image-container {\n",
" block-size: 1em;\n",
" inline-size: 1em;\n",
" padding: 0;\n",
" margin: 0%;\n",
" display: flex;\n",
" justify-content: center;\n",
" align-items: center;\n",
"}\n",
"\n",
".features .copy-paste-icon {\n",
" background-size: 1em 1em;\n",
" width: 1em;\n",
" height: 1em;\n",
" filter: grayscale(100%) opacity(60%);\n",
"}\n",
"\n",
".features .features-container table {\n",
" width: 100%;\n",
" margin: 0.01em;\n",
"}\n",
"\n",
".features .features-container table tr:nth-child(odd) {\n",
" background-color: #fff;\n",
"}\n",
"\n",
".features .features-container table tr:nth-child(even) {\n",
" background-color: #f6f6f6;\n",
"}\n",
"\n",
".features .features-container table tr:hover {\n",
" background-color: #e0e0e0;\n",
"}\n",
"\n",
".features .features-container table {\n",
" table-layout: inherit;\n",
"}\n",
"\n",
".features .features-container table td {\n",
" text-align: left;\n",
" padding: 0 0.5em;\n",
" border: 1px solid rgba(106, 105, 104, 0.232);\n",
" white-space: nowrap;\n",
" color: var(--sklearn-color-text);\n",
"}\n",
"\n",
".total_features {\n",
" display: flex;\n",
" justify-content: center;\n",
" margin-top: 0.5em;\n",
"}\n",
"</style><body><div id=\"sk-container-id-1\" tabindex=\"0\" class=\"sk-top-container sk-global\"><div class=\"sk-text-repr-fallback\"><pre>Pipeline(steps=[(&#x27;vectorizer&#x27;,\n",
" TfidfVectorizer(max_df=0.3, min_df=3, sublinear_tf=True)),\n",
" (&#x27;classifier&#x27;, LinearSVC(random_state=42))])</pre><b>In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook. <br />On GitHub, the HTML representation is unable to render, please try loading this page with nbviewer.org.</b></div><div class=\"sk-container\" hidden><div class=\"sk-item sk-dashed-wrapped\"><div class=\"sk-label-container\"><div class=\"sk-label fitted sk-toggleable\"><input class=\"sk-toggleable__control sk-hidden--visually sk-global\" id=\"sk-estimator-id-1\" type=\"checkbox\" ><label for=\"sk-estimator-id-1\" class=\"sk-toggleable__label fitted sk-toggleable__label-arrow\"><div><div>Pipeline</div></div><div><a class=\"sk-estimator-doc-link fitted\" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.pipeline.Pipeline.html\">?<span>Documentation for Pipeline</span></a><span class=\"sk-estimator-doc-link fitted\">i<span>Fitted</span></span></div></label><div class=\"sk-toggleable__content fitted\" data-param-prefix=\"\">\n",
" <div class=\"estimator-table\">\n",
" <details>\n",
" <summary>Parameters</summary>\n",
" <table class=\"parameters-table\">\n",
" <tbody>\n",
" \n",
" <tr class=\"user-set\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy steps to clipboard\"\n",
" onclick=\"copyToClipboard('steps',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-steps;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.pipeline.Pipeline.html#:~:text=steps,-list%20of%20tuples\">\n",
" steps\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-steps;\">\n",
" steps: list of tuples<br><br>List of (name of step, estimator) tuples that are to be chained in<br>sequential order. To be compatible with the scikit-learn API, all steps<br>must define `fit`. All non-last steps must also define `transform`. See<br>:ref:`Combining Estimators &lt;combining_estimators&gt;` for more details.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">[(&#x27;vectorizer&#x27;, ...), (&#x27;classifier&#x27;, ...)]</td>\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy transform_input to clipboard\"\n",
" onclick=\"copyToClipboard('transform_input',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-transform_input;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.pipeline.Pipeline.html#:~:text=transform_input,-list%20of%20str%2C%20default%3DNone\">\n",
" transform_input\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-transform_input;\">\n",
" transform_input: list of str, default=None<br><br>The names of the :term:`metadata` parameters that should be transformed by the<br>pipeline before passing it to the step consuming it.<br><br>This enables transforming some input arguments to ``fit`` (other than ``X``)<br>to be transformed by the steps of the pipeline up to the step which requires<br>them. Requirement is defined via :ref:`metadata routing &lt;metadata_routing&gt;`.<br>For instance, this can be used to pass a validation set through the pipeline.<br><br>You can only set this if metadata routing is enabled, which you<br>can enable using ``sklearn.set_config(enable_metadata_routing=True)``.<br><br>.. versionadded:: 1.6</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">None</td>\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy memory to clipboard\"\n",
" onclick=\"copyToClipboard('memory',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-memory;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.pipeline.Pipeline.html#:~:text=memory,-str%20or%20object%20with%20the%20joblib.Memory%20interface%2C%20default%3DNone\">\n",
" memory\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-memory;\">\n",
" memory: str or object with the joblib.Memory interface, default=None<br><br>Used to cache the fitted transformers of the pipeline. The last step<br>will never be cached, even if it is a transformer. By default, no<br>caching is performed. If a string is given, it is the path to the<br>caching directory. Enabling caching triggers a clone of the transformers<br>before fitting. Therefore, the transformer instance given to the<br>pipeline cannot be inspected directly. Use the attribute ``named_steps``<br>or ``steps`` to inspect estimators within the pipeline. Caching the<br>transformers is advantageous when fitting is time consuming. See<br>:ref:`sphx_glr_auto_examples_neighbors_plot_caching_nearest_neighbors.py`<br>for an example on how to enable caching.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">None</td>\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy verbose to clipboard\"\n",
" onclick=\"copyToClipboard('verbose',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-verbose;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.pipeline.Pipeline.html#:~:text=verbose,-bool%2C%20default%3DFalse\">\n",
" verbose\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-verbose;\">\n",
" verbose: bool, default=False<br><br>If True, the time elapsed while fitting each step will be printed as it<br>is completed.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">False</td>\n",
" </tr>\n",
" \n",
" </tbody>\n",
" </table>\n",
" </details>\n",
" </div>\n",
" \n",
" <div class=\"estimator-table\">\n",
" <details>\n",
" <summary>Fitted attributes</summary>\n",
" <table class=\"parameters-table\">\n",
" <tbody>\n",
" <tr>\n",
" <th>Name</th>\n",
" <th>Type</th>\n",
" <th>Value</th>\n",
" </tr>\n",
" \n",
" <tr class=\"default\">\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-classes_;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.pipeline.Pipeline.html#:~:text=classes_,-ndarray%20of%20shape%20%28n_classes%2C%29\">\n",
" classes_\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-classes_;\">\n",
" classes_: ndarray of shape (n_classes,)<br><br>The classes labels. Only exist if the last step of the pipeline is a<br>classifier.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"fitted-att-type\">ndarray[int64](2,)</td>\n",
" <td>[0,1]</td>\n",
"\n",
"\n",
" </tr>\n",
" \n",
" </tbody>\n",
" </table>\n",
" </details>\n",
" </div>\n",
" </div></div></div><div class=\"sk-serial\"><div class=\"sk-item\"><div class=\"sk-estimator fitted sk-toggleable\"><input class=\"sk-toggleable__control sk-hidden--visually sk-global\" id=\"sk-estimator-id-2\" type=\"checkbox\" ><label for=\"sk-estimator-id-2\" class=\"sk-toggleable__label fitted sk-toggleable__label-arrow\"><div><div>TfidfVectorizer</div></div><div><a class=\"sk-estimator-doc-link fitted\" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.feature_extraction.text.TfidfVectorizer.html\">?<span>Documentation for TfidfVectorizer</span></a></div></label><div class=\"sk-toggleable__content fitted\" data-param-prefix=\"vectorizer__\">\n",
" <div class=\"estimator-table\">\n",
" <details>\n",
" <summary>Parameters</summary>\n",
" <table class=\"parameters-table\">\n",
" <tbody>\n",
" \n",
" <tr class=\"user-set\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy max_df to clipboard\"\n",
" onclick=\"copyToClipboard('max_df',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-max_df;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.feature_extraction.text.TfidfVectorizer.html#:~:text=max_df,-float%20or%20int%2C%20default%3D1.0\">\n",
" max_df\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-max_df;\">\n",
" max_df: float or int, default=1.0<br><br>When building the vocabulary ignore terms that have a document<br>frequency strictly higher than the given threshold (corpus-specific<br>stop words).<br>If float in range [0.0, 1.0], the parameter represents a proportion of<br>documents, integer absolute counts.<br>This parameter is ignored if vocabulary is not None.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">0.3</td>\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"user-set\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy min_df to clipboard\"\n",
" onclick=\"copyToClipboard('min_df',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-min_df;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.feature_extraction.text.TfidfVectorizer.html#:~:text=min_df,-float%20or%20int%2C%20default%3D1\">\n",
" min_df\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-min_df;\">\n",
" min_df: float or int, default=1<br><br>When building the vocabulary ignore terms that have a document<br>frequency strictly lower than the given threshold. This value is also<br>called cut-off in the literature.<br>If float in range of [0.0, 1.0], the parameter represents a proportion<br>of documents, integer absolute counts.<br>This parameter is ignored if vocabulary is not None.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">3</td>\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"user-set\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy sublinear_tf to clipboard\"\n",
" onclick=\"copyToClipboard('sublinear_tf',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-sublinear_tf;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.feature_extraction.text.TfidfVectorizer.html#:~:text=sublinear_tf,-bool%2C%20default%3DFalse\">\n",
" sublinear_tf\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-sublinear_tf;\">\n",
" sublinear_tf: bool, default=False<br><br>Apply sublinear tf scaling, i.e. replace tf with 1 + log(tf).</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">True</td>\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy input to clipboard\"\n",
" onclick=\"copyToClipboard('input',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-input;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.feature_extraction.text.TfidfVectorizer.html#:~:text=input,-%7B%27filename%27%2C%20%27file%27%2C%20%27content%27%7D%2C%20default%3D%27content%27\">\n",
" input\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-input;\">\n",
" input: {&#x27;filename&#x27;, &#x27;file&#x27;, &#x27;content&#x27;}, default=&#x27;content&#x27;<br><br>- If `&#x27;filename&#x27;`, the sequence passed as an argument to fit is<br> expected to be a list of filenames that need reading to fetch<br> the raw content to analyze.<br><br>- If `&#x27;file&#x27;`, the sequence items must have a &#x27;read&#x27; method (file-like<br> object) that is called to fetch the bytes in memory.<br><br>- If `&#x27;content&#x27;`, the input is expected to be a sequence of items that<br> can be of type string or byte.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">&#x27;content&#x27;</td>\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy encoding to clipboard\"\n",
" onclick=\"copyToClipboard('encoding',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-encoding;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.feature_extraction.text.TfidfVectorizer.html#:~:text=encoding,-str%2C%20default%3D%27utf-8%27\">\n",
" encoding\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-encoding;\">\n",
" encoding: str, default=&#x27;utf-8&#x27;<br><br>If bytes or files are given to analyze, this encoding is used to<br>decode.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">&#x27;utf-8&#x27;</td>\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy decode_error to clipboard\"\n",
" onclick=\"copyToClipboard('decode_error',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-decode_error;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.feature_extraction.text.TfidfVectorizer.html#:~:text=decode_error,-%7B%27strict%27%2C%20%27ignore%27%2C%20%27replace%27%7D%2C%20default%3D%27strict%27\">\n",
" decode_error\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-decode_error;\">\n",
" decode_error: {&#x27;strict&#x27;, &#x27;ignore&#x27;, &#x27;replace&#x27;}, default=&#x27;strict&#x27;<br><br>Instruction on what to do if a byte sequence is given to analyze that<br>contains characters not of the given `encoding`. By default, it is<br>&#x27;strict&#x27;, meaning that a UnicodeDecodeError will be raised. Other<br>values are &#x27;ignore&#x27; and &#x27;replace&#x27;.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">&#x27;strict&#x27;</td>\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy strip_accents to clipboard\"\n",
" onclick=\"copyToClipboard('strip_accents',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-strip_accents;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.feature_extraction.text.TfidfVectorizer.html#:~:text=strip_accents,-%7B%27ascii%27%2C%20%27unicode%27%7D%20or%20callable%2C%20default%3DNone\">\n",
" strip_accents\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-strip_accents;\">\n",
" strip_accents: {&#x27;ascii&#x27;, &#x27;unicode&#x27;} or callable, default=None<br><br>Remove accents and perform other character normalization<br>during the preprocessing step.<br>&#x27;ascii&#x27; is a fast method that only works on characters that have<br>a direct ASCII mapping.<br>&#x27;unicode&#x27; is a slightly slower method that works on any characters.<br>None (default) means no character normalization is performed.<br><br>Both &#x27;ascii&#x27; and &#x27;unicode&#x27; use NFKD normalization from<br>:func:`unicodedata.normalize`.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">None</td>\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy lowercase to clipboard\"\n",
" onclick=\"copyToClipboard('lowercase',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-lowercase;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.feature_extraction.text.TfidfVectorizer.html#:~:text=lowercase,-bool%2C%20default%3DTrue\">\n",
" lowercase\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-lowercase;\">\n",
" lowercase: bool, default=True<br><br>Convert all characters to lowercase before tokenizing.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">True</td>\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy preprocessor to clipboard\"\n",
" onclick=\"copyToClipboard('preprocessor',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-preprocessor;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.feature_extraction.text.TfidfVectorizer.html#:~:text=preprocessor,-callable%2C%20default%3DNone\">\n",
" preprocessor\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-preprocessor;\">\n",
" preprocessor: callable, default=None<br><br>Override the preprocessing (string transformation) stage while<br>preserving the tokenizing and n-grams generation steps.<br>Only applies if ``analyzer`` is not callable.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">None</td>\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy tokenizer to clipboard\"\n",
" onclick=\"copyToClipboard('tokenizer',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-tokenizer;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.feature_extraction.text.TfidfVectorizer.html#:~:text=tokenizer,-callable%2C%20default%3DNone\">\n",
" tokenizer\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-tokenizer;\">\n",
" tokenizer: callable, default=None<br><br>Override the string tokenization step while preserving the<br>preprocessing and n-grams generation steps.<br>Only applies if ``analyzer == &#x27;word&#x27;``.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">None</td>\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy analyzer to clipboard\"\n",
" onclick=\"copyToClipboard('analyzer',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-analyzer;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.feature_extraction.text.TfidfVectorizer.html#:~:text=analyzer,-%7B%27word%27%2C%20%27char%27%2C%20%27char_wb%27%7D%20or%20callable%2C%20default%3D%27word%27\">\n",
" analyzer\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-analyzer;\">\n",
" analyzer: {&#x27;word&#x27;, &#x27;char&#x27;, &#x27;char_wb&#x27;} or callable, default=&#x27;word&#x27;<br><br>Whether the feature should be made of word or character n-grams.<br>Option &#x27;char_wb&#x27; creates character n-grams only from text inside<br>word boundaries; n-grams at the edges of words are padded with space.<br><br>If a callable is passed it is used to extract the sequence of features<br>out of the raw, unprocessed input.<br><br>.. versionchanged:: 0.21<br> Since v0.21, if ``input`` is ``&#x27;filename&#x27;`` or ``&#x27;file&#x27;``, the data<br> is first read from the file and then passed to the given callable<br> analyzer.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">&#x27;word&#x27;</td>\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy stop_words to clipboard\"\n",
" onclick=\"copyToClipboard('stop_words',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-stop_words;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.feature_extraction.text.TfidfVectorizer.html#:~:text=stop_words,-%7B%27english%27%7D%2C%20list%2C%20default%3DNone\">\n",
" stop_words\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-stop_words;\">\n",
" stop_words: {&#x27;english&#x27;}, list, default=None<br><br>If a string, it is passed to _check_stop_list and the appropriate stop<br>list is returned. &#x27;english&#x27; is currently the only supported string<br>value.<br>There are several known issues with &#x27;english&#x27; and you should<br>consider an alternative (see :ref:`stop_words`).<br><br>If a list, that list is assumed to contain stop words, all of which<br>will be removed from the resulting tokens.<br>Only applies if ``analyzer == &#x27;word&#x27;``.<br><br>If None, no stop words will be used. In this case, setting `max_df`<br>to a higher value, such as in the range (0.7, 1.0), can automatically detect<br>and filter stop words based on intra corpus document frequency of terms.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">None</td>\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy token_pattern to clipboard\"\n",
" onclick=\"copyToClipboard('token_pattern',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-token_pattern;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.feature_extraction.text.TfidfVectorizer.html#:~:text=token_pattern,-str%2C%20default%3Dr%22%28%3Fu%29%5C%5Cb%5C%5Cw%5C%5Cw%2B%5C%5Cb%22\">\n",
" token_pattern\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-token_pattern;\">\n",
" token_pattern: str, default=r&quot;(?u)\\\\b\\\\w\\\\w+\\\\b&quot;<br><br>Regular expression denoting what constitutes a &quot;token&quot;, only used<br>if ``analyzer == &#x27;word&#x27;``. The default regexp selects tokens of 2<br>or more alphanumeric characters (punctuation is completely ignored<br>and always treated as a token separator).<br><br>If there is a capturing group in token_pattern then the<br>captured group content, not the entire match, becomes the token.<br>At most one capturing group is permitted.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">&#x27;(?u)\\\\b\\\\w\\\\w+\\\\b&#x27;</td>\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy ngram_range to clipboard\"\n",
" onclick=\"copyToClipboard('ngram_range',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-ngram_range;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.feature_extraction.text.TfidfVectorizer.html#:~:text=ngram_range,-tuple%20%28min_n%2C%20max_n%29%2C%20default%3D%281%2C%201%29\">\n",
" ngram_range\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-ngram_range;\">\n",
" ngram_range: tuple (min_n, max_n), default=(1, 1)<br><br>The lower and upper boundary of the range of n-values for different<br>n-grams to be extracted. All values of n such that min_n &lt;= n &lt;= max_n<br>will be used. For example an ``ngram_range`` of ``(1, 1)`` means only<br>unigrams, ``(1, 2)`` means unigrams and bigrams, and ``(2, 2)`` means<br>only bigrams.<br>Only applies if ``analyzer`` is not callable.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">(1, ...)</td>\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy max_features to clipboard\"\n",
" onclick=\"copyToClipboard('max_features',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-max_features;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.feature_extraction.text.TfidfVectorizer.html#:~:text=max_features,-int%2C%20default%3DNone\">\n",
" max_features\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-max_features;\">\n",
" max_features: int, default=None<br><br>If not None, build a vocabulary that only consider the top<br>`max_features` ordered by term frequency across the corpus.<br>Otherwise, all features are used.<br><br>This parameter is ignored if vocabulary is not None.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">None</td>\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy vocabulary to clipboard\"\n",
" onclick=\"copyToClipboard('vocabulary',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-vocabulary;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.feature_extraction.text.TfidfVectorizer.html#:~:text=vocabulary,-Mapping%20or%20iterable%2C%20default%3DNone\">\n",
" vocabulary\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-vocabulary;\">\n",
" vocabulary: Mapping or iterable, default=None<br><br>Either a Mapping (e.g., a dict) where keys are terms and values are<br>indices in the feature matrix, or an iterable over terms. If not<br>given, a vocabulary is determined from the input documents.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">None</td>\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy binary to clipboard\"\n",
" onclick=\"copyToClipboard('binary',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-binary;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.feature_extraction.text.TfidfVectorizer.html#:~:text=binary,-bool%2C%20default%3DFalse\">\n",
" binary\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-binary;\">\n",
" binary: bool, default=False<br><br>If True, all non-zero term counts are set to 1. This does not mean<br>outputs will have only 0/1 values, only that the tf term in tf-idf<br>is binary. (Set `binary` to True, `use_idf` to False and<br>`norm` to None to get 0/1 outputs).</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">False</td>\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy dtype to clipboard\"\n",
" onclick=\"copyToClipboard('dtype',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-dtype;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.feature_extraction.text.TfidfVectorizer.html#:~:text=dtype,-dtype%2C%20default%3Dfloat64\">\n",
" dtype\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-dtype;\">\n",
" dtype: dtype, default=float64<br><br>Type of the matrix returned by fit_transform() or transform().</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">&lt;class &#x27;numpy.float64&#x27;&gt;</td>\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy norm to clipboard\"\n",
" onclick=\"copyToClipboard('norm',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-norm;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.feature_extraction.text.TfidfVectorizer.html#:~:text=norm,-%7B%27l1%27%2C%20%27l2%27%7D%20or%20None%2C%20default%3D%27l2%27\">\n",
" norm\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-norm;\">\n",
" norm: {&#x27;l1&#x27;, &#x27;l2&#x27;} or None, default=&#x27;l2&#x27;<br><br>Each output row will have unit norm, either:<br><br>- &#x27;l2&#x27;: Sum of squares of vector elements is 1. The cosine<br> similarity between two vectors is their dot product when l2 norm has<br> been applied.<br>- &#x27;l1&#x27;: Sum of absolute values of vector elements is 1.<br> See :func:`~sklearn.preprocessing.normalize`.<br>- None: No normalization.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">&#x27;l2&#x27;</td>\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy use_idf to clipboard\"\n",
" onclick=\"copyToClipboard('use_idf',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-use_idf;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.feature_extraction.text.TfidfVectorizer.html#:~:text=use_idf,-bool%2C%20default%3DTrue\">\n",
" use_idf\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-use_idf;\">\n",
" use_idf: bool, default=True<br><br>Enable inverse-document-frequency reweighting. If False, idf(t) = 1.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">True</td>\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy smooth_idf to clipboard\"\n",
" onclick=\"copyToClipboard('smooth_idf',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-smooth_idf;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.feature_extraction.text.TfidfVectorizer.html#:~:text=smooth_idf,-bool%2C%20default%3DTrue\">\n",
" smooth_idf\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-smooth_idf;\">\n",
" smooth_idf: bool, default=True<br><br>Smooth idf weights by adding one to document frequencies, as if an<br>extra document was seen containing every term in the collection<br>exactly once. Prevents zero divisions.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">True</td>\n",
" </tr>\n",
" \n",
" </tbody>\n",
" </table>\n",
" </details>\n",
" </div>\n",
" \n",
" <div class=\"estimator-table\">\n",
" <details>\n",
" <summary>Fitted attributes</summary>\n",
" <table class=\"parameters-table\">\n",
" <tbody>\n",
" <tr>\n",
" <th>Name</th>\n",
" <th>Type</th>\n",
" <th>Value</th>\n",
" </tr>\n",
" \n",
" <tr class=\"default\">\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-fixed_vocabulary_;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.feature_extraction.text.TfidfVectorizer.html#:~:text=fixed_vocabulary_,-bool\">\n",
" fixed_vocabulary_\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-fixed_vocabulary_;\">\n",
" fixed_vocabulary_: bool<br><br>True if a fixed vocabulary of term to indices mapping<br>is provided by the user.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"fitted-att-type\">bool</td>\n",
" <td>False</td>\n",
"\n",
"\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-idf_;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.feature_extraction.text.TfidfVectorizer.html#:~:text=idf_,-array%20of%20shape%20%28n_features%2C%29\">\n",
" idf_\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-idf_;\">\n",
" idf_: array of shape (n_features,)<br><br>The inverse document frequency (IDF) vector; only defined<br>if ``use_idf`` is True.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"fitted-att-type\">ndarray[float64](6,)</td>\n",
" <td>[2.49,2.81,2.69,2.81,2.69,2.69]</td>\n",
"\n",
"\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-vocabulary_;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.feature_extraction.text.TfidfVectorizer.html#:~:text=vocabulary_,-dict\">\n",
" vocabulary_\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-vocabulary_;\">\n",
" vocabulary_: dict<br><br>A mapping of terms to feature indices.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"fitted-att-type\">dict</td>\n",
" <td>{&#x27;cancer&#x27;: 0, &#x27;genome&#x27;: 1, &#x27;neural&#x27;: 2, &#x27;protein&#x27;: 3, ...}</td>\n",
"\n",
"\n",
" </tr>\n",
" \n",
" </tbody>\n",
" </table>\n",
" </details>\n",
" </div>\n",
" </div></div></div>\n",
" <div class=\"features fitted\">\n",
" <details>\n",
" <summary>\n",
" <div class=\"arrow\"></div>\n",
" <div>6 features</div>\n",
" <div class=\"image-container\">\n",
" <button type=\"button\" class=\"copy-paste-icon\"\n",
" title=\"Copy output features (max 100)\"\n",
" aria-label=\"Copy output features (max 100)\"\n",
" onclick=\"\n",
" event.stopPropagation();\n",
" event.preventDefault();\n",
" copyFeatureNamesToClipboard(this);\n",
" \"\n",
" >\n",
" </button>\n",
" </div>\n",
" </summary>\n",
" <div class=\"features-container\">\n",
" <table class=\"features-table\">\n",
" <tbody>\n",
" \n",
" <tr>\n",
" <td>cancer</td>\n",
" </tr>\n",
"\n",
" \n",
" <tr>\n",
" <td>genome</td>\n",
" </tr>\n",
"\n",
" \n",
" <tr>\n",
" <td>neural</td>\n",
" </tr>\n",
"\n",
" \n",
" <tr>\n",
" <td>protein</td>\n",
" </tr>\n",
"\n",
" \n",
" <tr>\n",
" <td>quantum</td>\n",
" </tr>\n",
"\n",
" \n",
" <tr>\n",
" <td>solar</td>\n",
" </tr>\n",
"\n",
" \n",
" </tbody>\n",
" </table>\n",
" </div>\n",
" </details>\n",
" </div>\n",
" <div class=\"sk-item\"><div class=\"sk-estimator fitted sk-toggleable\"><input class=\"sk-toggleable__control sk-hidden--visually sk-global\" id=\"sk-estimator-id-3\" type=\"checkbox\" ><label for=\"sk-estimator-id-3\" class=\"sk-toggleable__label fitted sk-toggleable__label-arrow\"><div><div>LinearSVC</div></div><div><a class=\"sk-estimator-doc-link fitted\" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.svm.LinearSVC.html\">?<span>Documentation for LinearSVC</span></a></div></label><div class=\"sk-toggleable__content fitted\" data-param-prefix=\"classifier__\">\n",
" <div class=\"estimator-table\">\n",
" <details>\n",
" <summary>Parameters</summary>\n",
" <table class=\"parameters-table\">\n",
" <tbody>\n",
" \n",
" <tr class=\"user-set\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy random_state to clipboard\"\n",
" onclick=\"copyToClipboard('random_state',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-random_state;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.svm.LinearSVC.html#:~:text=random_state,-int%2C%20RandomState%20instance%20or%20None%2C%20default%3DNone\">\n",
" random_state\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-random_state;\">\n",
" random_state: int, RandomState instance or None, default=None<br><br>Controls the pseudo random number generation for shuffling the data for<br>the dual coordinate descent (if ``dual=True``). When ``dual=False`` the<br>underlying implementation of :class:`LinearSVC` is not random and<br>``random_state`` has no effect on the results.<br>Pass an int for reproducible output across multiple function calls.<br>See :term:`Glossary &lt;random_state&gt;`.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">42</td>\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy penalty to clipboard\"\n",
" onclick=\"copyToClipboard('penalty',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-penalty;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.svm.LinearSVC.html#:~:text=penalty,-%7B%27l1%27%2C%20%27l2%27%7D%2C%20default%3D%27l2%27\">\n",
" penalty\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-penalty;\">\n",
" penalty: {&#x27;l1&#x27;, &#x27;l2&#x27;}, default=&#x27;l2&#x27;<br><br>Specifies the norm used in the penalization. The &#x27;l2&#x27;<br>penalty is the standard used in SVC. The &#x27;l1&#x27; leads to ``coef_``<br>vectors that are sparse.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">&#x27;l2&#x27;</td>\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy loss to clipboard\"\n",
" onclick=\"copyToClipboard('loss',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-loss;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.svm.LinearSVC.html#:~:text=loss,-%7B%27hinge%27%2C%20%27squared_hinge%27%7D%2C%20default%3D%27squared_hinge%27\">\n",
" loss\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-loss;\">\n",
" loss: {&#x27;hinge&#x27;, &#x27;squared_hinge&#x27;}, default=&#x27;squared_hinge&#x27;<br><br>Specifies the loss function. &#x27;hinge&#x27; is the standard SVM loss<br>(used e.g. by the SVC class) while &#x27;squared_hinge&#x27; is the<br>square of the hinge loss. The combination of ``penalty=&#x27;l1&#x27;``<br>and ``loss=&#x27;hinge&#x27;`` is not supported.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">&#x27;squared_hinge&#x27;</td>\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy dual to clipboard\"\n",
" onclick=\"copyToClipboard('dual',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-dual;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.svm.LinearSVC.html#:~:text=dual,-%22auto%22%20or%20bool%2C%20default%3D%22auto%22\">\n",
" dual\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-dual;\">\n",
" dual: &quot;auto&quot; or bool, default=&quot;auto&quot;<br><br>Select the algorithm to either solve the dual or primal<br>optimization problem. Prefer dual=False when n_samples &gt; n_features.<br>`dual=&quot;auto&quot;` will choose the value of the parameter automatically,<br>based on the values of `n_samples`, `n_features`, `loss`, `multi_class`<br>and `penalty`. If `n_samples` &lt; `n_features` and optimizer supports<br>chosen `loss`, `multi_class` and `penalty`, then dual will be set to True,<br>otherwise it will be set to False.<br><br>.. versionchanged:: 1.3<br> The `&quot;auto&quot;` option is added in version 1.3 and will be the default<br> in version 1.5.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">&#x27;auto&#x27;</td>\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy tol to clipboard\"\n",
" onclick=\"copyToClipboard('tol',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-tol;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.svm.LinearSVC.html#:~:text=tol,-float%2C%20default%3D1e-4\">\n",
" tol\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-tol;\">\n",
" tol: float, default=1e-4<br><br>Tolerance for stopping criteria.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">0.0001</td>\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy C to clipboard\"\n",
" onclick=\"copyToClipboard('C',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-C;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.svm.LinearSVC.html#:~:text=C,-float%2C%20default%3D1.0\">\n",
" C\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-C;\">\n",
" C: float, default=1.0<br><br>Regularization parameter. The strength of the regularization is<br>inversely proportional to C. Must be strictly positive.<br>For an intuitive visualization of the effects of scaling<br>the regularization parameter C, see<br>:ref:`sphx_glr_auto_examples_svm_plot_svm_scale_c.py`.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">1.0</td>\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy multi_class to clipboard\"\n",
" onclick=\"copyToClipboard('multi_class',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-multi_class;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.svm.LinearSVC.html#:~:text=multi_class,-%7B%27ovr%27%2C%20%27crammer_singer%27%7D%2C%20default%3D%27ovr%27\">\n",
" multi_class\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-multi_class;\">\n",
" multi_class: {&#x27;ovr&#x27;, &#x27;crammer_singer&#x27;}, default=&#x27;ovr&#x27;<br><br>Determines the multi-class strategy if `y` contains more than<br>two classes.<br>``&quot;ovr&quot;`` trains n_classes one-vs-rest classifiers, while<br>``&quot;crammer_singer&quot;`` optimizes a joint objective over all classes.<br>While `crammer_singer` is interesting from a theoretical perspective<br>as it is consistent, it is seldom used in practice as it rarely leads<br>to better accuracy and is more expensive to compute.<br>If ``&quot;crammer_singer&quot;`` is chosen, the options loss, penalty and dual<br>will be ignored.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">&#x27;ovr&#x27;</td>\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy fit_intercept to clipboard\"\n",
" onclick=\"copyToClipboard('fit_intercept',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-fit_intercept;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.svm.LinearSVC.html#:~:text=fit_intercept,-bool%2C%20default%3DTrue\">\n",
" fit_intercept\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-fit_intercept;\">\n",
" fit_intercept: bool, default=True<br><br>Whether or not to fit an intercept. If set to True, the feature vector<br>is extended to include an intercept term: `[x_1, ..., x_n, 1]`, where<br>1 corresponds to the intercept. If set to False, no intercept will be<br>used in calculations (i.e. data is expected to be already centered).</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">True</td>\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy intercept_scaling to clipboard\"\n",
" onclick=\"copyToClipboard('intercept_scaling',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-intercept_scaling;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.svm.LinearSVC.html#:~:text=intercept_scaling,-float%2C%20default%3D1.0\">\n",
" intercept_scaling\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-intercept_scaling;\">\n",
" intercept_scaling: float, default=1.0<br><br>When `fit_intercept` is True, the instance vector x becomes ``[x_1,<br>..., x_n, intercept_scaling]``, i.e. a &quot;synthetic&quot; feature with a<br>constant value equal to `intercept_scaling` is appended to the instance<br>vector. The intercept becomes intercept_scaling * synthetic feature<br>weight. Note that liblinear internally penalizes the intercept,<br>treating it like any other term in the feature vector. To reduce the<br>impact of the regularization on the intercept, the `intercept_scaling`<br>parameter can be set to a value greater than 1; the higher the value of<br>`intercept_scaling`, the lower the impact of regularization on it.<br>Then, the weights become `[w_x_1, ..., w_x_n,<br>w_intercept*intercept_scaling]`, where `w_x_1, ..., w_x_n` represent<br>the feature weights and the intercept weight is scaled by<br>`intercept_scaling`. This scaling allows the intercept term to have a<br>different regularization behavior compared to the other features.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">1</td>\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy class_weight to clipboard\"\n",
" onclick=\"copyToClipboard('class_weight',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-class_weight;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.svm.LinearSVC.html#:~:text=class_weight,-dict%20or%20%27balanced%27%2C%20default%3DNone\">\n",
" class_weight\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-class_weight;\">\n",
" class_weight: dict or &#x27;balanced&#x27;, default=None<br><br>Set the parameter C of class i to ``class_weight[i]*C`` for<br>SVC. If not given, all classes are supposed to have<br>weight one.<br>The &quot;balanced&quot; mode uses the values of y to automatically adjust<br>weights inversely proportional to class frequencies in the input data<br>as ``n_samples / (n_classes * np.bincount(y))``.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">None</td>\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy verbose to clipboard\"\n",
" onclick=\"copyToClipboard('verbose',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-verbose;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.svm.LinearSVC.html#:~:text=verbose,-int%2C%20default%3D0\">\n",
" verbose\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-verbose;\">\n",
" verbose: int, default=0<br><br>Enable verbose output. Note that this setting takes advantage of a<br>per-process runtime setting in liblinear that, if enabled, may not work<br>properly in a multithreaded context.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">0</td>\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td><button type=\"button\" class=\"copy-paste-icon\"\n",
" aria-label=\"Copy max_iter to clipboard\"\n",
" onclick=\"copyToClipboard('max_iter',\n",
" this.parentElement.nextElementSibling)\"\n",
" ></button></td>\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-max_iter;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.svm.LinearSVC.html#:~:text=max_iter,-int%2C%20default%3D1000\">\n",
" max_iter\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-max_iter;\">\n",
" max_iter: int, default=1000<br><br>The maximum number of iterations to be run.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"value\">1000</td>\n",
" </tr>\n",
" \n",
" </tbody>\n",
" </table>\n",
" </details>\n",
" </div>\n",
" \n",
" <div class=\"estimator-table\">\n",
" <details>\n",
" <summary>Fitted attributes</summary>\n",
" <table class=\"parameters-table\">\n",
" <tbody>\n",
" <tr>\n",
" <th>Name</th>\n",
" <th>Type</th>\n",
" <th>Value</th>\n",
" </tr>\n",
" \n",
" <tr class=\"default\">\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-classes_;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.svm.LinearSVC.html#:~:text=classes_,-ndarray%20of%20shape%20%28n_classes%2C%29\">\n",
" classes_\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-classes_;\">\n",
" classes_: ndarray of shape (n_classes,)<br><br>The unique classes labels.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"fitted-att-type\">ndarray[int64](2,)</td>\n",
" <td>[0,1]</td>\n",
"\n",
"\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-coef_;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.svm.LinearSVC.html#:~:text=coef_,-ndarray%20of%20shape%20%281%2C%20n_features%29%20if%20n_classes%20%3D%3D%202%20%20%20%20%20%20%20%20%20%20%20%20%20else%20%28n_classes%2C%20n_features%29\">\n",
" coef_\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-coef_;\">\n",
" coef_: ndarray of shape (1, n_features) if n_classes == 2 else (n_classes, n_features)<br><br>Weights assigned to the features (coefficients in the primal<br>problem).<br><br>``coef_`` is a readonly property derived from ``raw_coef_`` that<br>follows the internal memory layout of liblinear.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"fitted-att-type\">ndarray[float64](1, 6)</td>\n",
" <td>[[-0.07, 0.06, 0.16, 0.06,-0.07,-0.07]]</td>\n",
"\n",
"\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-intercept_;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.svm.LinearSVC.html#:~:text=intercept_,-ndarray%20of%20shape%20%281%2C%29%20if%20n_classes%20%3D%3D%202%20else%20%28n_classes%2C%29\">\n",
" intercept_\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-intercept_;\">\n",
" intercept_: ndarray of shape (1,) if n_classes == 2 else (n_classes,)<br><br>Constants in decision function.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"fitted-att-type\">ndarray[float64](1,)</td>\n",
" <td>[0.08]</td>\n",
"\n",
"\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-n_features_in_;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.svm.LinearSVC.html#:~:text=n_features_in_,-int\">\n",
" n_features_in_\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-n_features_in_;\">\n",
" n_features_in_: int<br><br>Number of features seen during :term:`fit`.<br><br>.. versionadded:: 0.24</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"fitted-att-type\">int</td>\n",
" <td>6</td>\n",
"\n",
"\n",
" </tr>\n",
" \n",
"\n",
" <tr class=\"default\">\n",
" <td class=\"param\">\n",
" <a class=\"param-doc-link\"\n",
" style=\"anchor-name: --doc-link-n_iter_;\"\n",
" rel=\"noreferrer\" target=\"_blank\" href=\"https://scikit-learn.org/1.9/modules/generated/sklearn.svm.LinearSVC.html#:~:text=n_iter_,-int\">\n",
" n_iter_\n",
" <span class=\"param-doc-description\"\n",
" style=\"position-anchor: --doc-link-n_iter_;\">\n",
" n_iter_: int<br><br>Maximum number of iterations run across all classes.</span>\n",
" </a>\n",
" </td>\n",
" <td class=\"fitted-att-type\">int</td>\n",
" <td>4</td>\n",
"\n",
"\n",
" </tr>\n",
" \n",
" </tbody>\n",
" </table>\n",
" </details>\n",
" </div>\n",
" </div></div></div></div></div></div></div><script>/* Authors: The scikit-learn developers\n",
" SPDX-License-Identifier: BSD-3-Clause\n",
"*/\n",
"\n",
"function copyToClipboard(text, element) {\n",
" // Get the parameter prefix from the closest toggleable content\n",
" const toggleableContent = element.closest('.sk-toggleable__content');\n",
" const paramPrefix = toggleableContent ? toggleableContent.dataset.paramPrefix : '';\n",
" const fullParamName = paramPrefix ? `${paramPrefix}${text}` : text;\n",
"\n",
" const originalStyle = element.style;\n",
" const computedStyle = window.getComputedStyle(element);\n",
" const originalWidth = computedStyle.width;\n",
" const originalHTML = element.innerHTML.replace('Copied!', '');\n",
"\n",
" navigator.clipboard.writeText(fullParamName)\n",
" .then(() => {\n",
" element.style.width = originalWidth;\n",
" element.style.color = 'green';\n",
" element.innerHTML = \"Copied!\";\n",
"\n",
" setTimeout(() => {\n",
" element.innerHTML = originalHTML;\n",
" element.style = originalStyle;\n",
" }, 2000);\n",
" })\n",
" .catch(err => {\n",
" console.error('Failed to copy:', err);\n",
" element.style.color = 'red';\n",
" element.innerHTML = \"Failed!\";\n",
" setTimeout(() => {\n",
" element.innerHTML = originalHTML;\n",
" element.style = originalStyle;\n",
" }, 2000);\n",
" });\n",
" return false;\n",
"}\n",
"\n",
"document.querySelectorAll('.copy-paste-icon').forEach(function(element) {\n",
" const toggleableContent = element.closest('.sk-toggleable__content');\n",
" const paramPrefix = toggleableContent ? toggleableContent.dataset.paramPrefix : '';\n",
"\n",
" const parent = element.parentElement;\n",
" if (!parent || !parent.nextElementSibling) {\n",
" console.warn('Expected copy-paste icon is missing from the DOM structure');\n",
" return;\n",
" }\n",
"\n",
" const paramName = element.parentElement.nextElementSibling\n",
" .textContent.trim().split(' ')[0];\n",
" const fullParamName = paramPrefix ? `${paramPrefix}${paramName}` : paramName;\n",
"\n",
" element.setAttribute('title', fullParamName);\n",
"});\n",
"\n",
"/**\n",
" * Copy the list of feature names formatted as a Python list.\n",
" *\n",
" * @param {HTMLElement} element - The copy button inside a `.features` block; its siblings\n",
" * contain a `details` element and a table containing feature named.\n",
" * @returns {boolean} Always returns `false` so callers can prevent the default click behavior.\n",
" */\n",
"function copyFeatureNamesToClipboard(element) {\n",
" var detailsElem = element.closest('.features').querySelector('details');\n",
" var wasOpen = detailsElem.open;\n",
" detailsElem.open = true;\n",
" var content = element.closest('.features').querySelector('tbody')\n",
" .innerText.trim();\n",
" if (!wasOpen) detailsElem.open = false;\n",
" const rows = content.split('\\n').map(row => ` \"${row}\"`);\n",
" const formattedText = `[\\n${rows.join(',\\n')},\\n]`;\n",
" const originalHTML = element.innerHTML.replace('✔', '');\n",
" const originalStyle = element.style;\n",
" const copyMark = document.createElement('span');\n",
" copyMark.innerHTML = '✔';\n",
" copyMark.style.color = 'blue';\n",
" copyMark.style.fontSize = '1em';\n",
"\n",
" navigator.clipboard.writeText(formattedText)\n",
" .then(() => {\n",
" element.style.display = 'none';\n",
" element.parentElement.appendChild(copyMark);\n",
"\n",
" setTimeout(() => {\n",
" copyMark.remove();\n",
" element.innerHTML = originalHTML;\n",
" element.style = originalStyle;\n",
" }, 1000);\n",
" })\n",
" .catch(err => {\n",
" console.error('Failed to copy:', err);\n",
" element.style.color = 'orange';\n",
" element.innerHTML = \"Failed!\";\n",
" setTimeout(() => {\n",
" element.innerHTML = originalHTML;\n",
" element.style = originalStyle;\n",
" }, 1000);\n",
" });\n",
" return false;\n",
"}\n",
"/**\n",
" * Adapted from Skrub\n",
" * https://github.com/skrub-data/skrub/blob/403466d1d5d4dc76a7ef569b3f8228db59a31dc3/skrub/_reporting/_data/templates/report.js#L789\n",
" * @returns \"light\" or \"dark\"\n",
" */\n",
"function detectTheme(element) {\n",
" const body = document.querySelector('body');\n",
"\n",
" // Check VSCode theme\n",
" const themeKindAttr = body.getAttribute('data-vscode-theme-kind');\n",
" const themeNameAttr = body.getAttribute('data-vscode-theme-name');\n",
"\n",
" if (themeKindAttr && themeNameAttr) {\n",
" const themeKind = themeKindAttr.toLowerCase();\n",
" const themeName = themeNameAttr.toLowerCase();\n",
"\n",
" if (themeKind.includes(\"dark\") || themeName.includes(\"dark\")) {\n",
" return \"dark\";\n",
" }\n",
" if (themeKind.includes(\"light\") || themeName.includes(\"light\")) {\n",
" return \"light\";\n",
" }\n",
" }\n",
"\n",
" // Check Jupyter theme\n",
" if (body.getAttribute('data-jp-theme-light') === 'false') {\n",
" return 'dark';\n",
" } else if (body.getAttribute('data-jp-theme-light') === 'true') {\n",
" return 'light';\n",
" }\n",
"\n",
" // Guess based on a parent element's color\n",
" const color = window.getComputedStyle(element.parentNode, null).getPropertyValue('color');\n",
" const match = color.match(/^rgb\\s*\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*\\)\\s*$/i);\n",
" if (match) {\n",
" const [r, g, b] = [\n",
" parseFloat(match[1]),\n",
" parseFloat(match[2]),\n",
" parseFloat(match[3])\n",
" ];\n",
"\n",
" // https://en.wikipedia.org/wiki/HSL_and_HSV#Lightness\n",
" const luma = 0.299 * r + 0.587 * g + 0.114 * b;\n",
"\n",
" if (luma > 180) {\n",
" // If the text is very bright we have a dark theme\n",
" return 'dark';\n",
" }\n",
" if (luma < 75) {\n",
" // If the text is very dark we have a light theme\n",
" return 'light';\n",
" }\n",
" // Otherwise fall back to the next heuristic.\n",
" }\n",
"\n",
" // Fallback to system preference\n",
" return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';\n",
"}\n",
"\n",
"\n",
"function forceTheme(elementId) {\n",
" const estimatorElement = document.querySelector(`#${elementId}`);\n",
" if (estimatorElement === null) {\n",
" console.error(`Element with id ${elementId} not found.`);\n",
" } else {\n",
" const theme = detectTheme(estimatorElement);\n",
" estimatorElement.classList.add(theme);\n",
" }\n",
"}\n",
"\n",
"forceTheme('sk-container-id-1');</script></body>"
],
"text/plain": [
"Pipeline(steps=[('vectorizer',\n",
" TfidfVectorizer(max_df=0.3, min_df=3, sublinear_tf=True)),\n",
" ('classifier', LinearSVC(random_state=42))])"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"X_train, X_test, y_train, y_test = train_test_split(\n",
" X, y, test_size=0.2, random_state=42, stratify=y\n",
")\n",
"model.fit(X_train, y_train)"
]
},
{
"cell_type": "code",
"execution_count": 8,
"id": "cell-15",
"metadata": {
"execution": {
"iopub.execute_input": "2026-10-28T22:48:00.874007Z",
"iopub.status.busy": "2026-10-28T22:48:00.873948Z",
"iopub.status.idle": "2026-10-28T22:48:00.920993Z",
"shell.execute_reply": "2026-10-28T22:48:00.920537Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" precision recall f1-score support\n",
"\n",
" False 0.00 0.00 0.00 5\n",
" True 0.58 1.00 0.74 7\n",
"\n",
" accuracy 0.58 12\n",
" macro avg 0.29 0.50 0.37 12\n",
"weighted avg 0.34 0.58 0.43 12\n",
"\n"
]
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAgQAAAHMCAYAAACqUbDSAAAAOnRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjExLjIsIGh0dHBzOi8vbWF0cGxvdGxpYi5vcmcvgI3uAAAAAAlwSFlzAAAPYQAAD2EBqD+naQAAMilJREFUeJzt3QucTeX++PHvmitmzBjjzrjkMrmekFQokaRSSo5LKJVOvaIkuv2Ukt9/TlJRLsURqX5CinJEJRyV0E3JiVQY9/sME+ay1//1PJrd7Lmw915rX9bM531e62X2mvWs/ZjmWN/9/T4XwzRNUwAAQJkWEeoOAACA0CMgAAAABAQAAICAAAAAEBAAAAACAgAAoDGoEAAAEBAAAAACAgAAICJR/BQAAHC2e++9V44fP17kfIcOHWT48OFe3YOAAAAAh+vRo4ecOnXK/Xr//v3y0EMP6YDAWwZ7GQAAULo899xz8vTTT8vevXslKSnJqzYEBAAAlDKpqalyySWXyJtvvul1G0oGXnK5XDrSqlixohiG4e9/IwBAiKjNfU+cOCG1atWSiIjAzbo/ffq0ZGdn29Lfws+b2NhYfZzL2rVrZdu2bfKv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27dvrun0+lbZXCympAXiLFy/Wn8Tt6kthBfumggg1BVOVC9R6BCog+fzzz4v87FQQoAKFW265RfdJDR5UQU3BzII3/fV1wSYAIoaaasAPAgCAso0MAQAAICAAAAAEBAAAgIAAAAAQEAAAAI1BhQAAgIAAAAAQEAAAAAICAABAQAAAADQGFQIAAAICAAAE8v8B1eJ3vj+I7jwAAAAASUVORK5CYII=",
"text/plain": [
"<Figure size 640x480 with 2 Axes>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"y_predicted = model.predict(X_test)\n",
"print(\n",
" sklearn.metrics.classification_report(\n",
" [y > 0 for y in y_test], [y > 0 for y in y_predicted], zero_division=0\n",
" )\n",
")\n",
"sklearn.metrics.ConfusionMatrixDisplay.from_predictions(\n",
" [y > 0 for y in y_test],\n",
" [y > 0 for y in y_predicted],\n",
" xticks_rotation=\"vertical\",\n",
" values_format=\".2f\",\n",
")\n",
"None"
]
},
{
"cell_type": "markdown",
"id": "cell-16",
"metadata": {},
"source": [
"The report above describes the active dataset. The synthetic demo cannot\n",
"establish the feasibility or quality of a real summarisation system.\n",
"\n",
"Next: [Part 2](train.ipynb)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": ".venv (3.13.5)",
"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.13.5"
}
},
"nbformat": 4,
"nbformat_minor": 5
}