Skip to content

Commit 3a048c7

Browse files
committed
fixed some notebooks
1 parent 00d8cac commit 3a048c7

7 files changed

+18
-5
lines changed

notebooks/BERT_vectors.ipynb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
"\n",
99
"(C) 2024 by [Damir Cavar](http://damir.cavar.me/)\n",
1010
"\n",
11+
"**Download:** This and various other Jupyter notebooks are available from my [GitHub repo](https://github.com/dcavar/python-tutorial-for-ipython).\n",
12+
"\n",
1113
"This code pulls embeddings for words or text from BERT.\n",
1214
"\n",
1315
"Prerequisites:\n",

notebooks/Perceptron Learning in Python.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@
414414
"name": "python",
415415
"nbconvert_exporter": "python",
416416
"pygments_lexer": "ipython3",
417-
"version": "3.12.3"
417+
"version": "3.12.7"
418418
},
419419
"latex_envs": {
420420
"LaTeX_envs_menu_present": true,

notebooks/Scikitlearn_logistic_regression.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@
925925
"name": "python",
926926
"nbconvert_exporter": "python",
927927
"pygments_lexer": "ipython3",
928-
"version": "3.12.3"
928+
"version": "3.12.7"
929929
}
930930
},
931931
"nbformat": 4,

notebooks/Transformers_example_simple_text_classification.ipynb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@
66
"source": [
77
"# Transformer Implementation Example for Text Classification\n",
88
"\n",
9-
"Based on [Transformer Text Classification by Eijaz Allibhai](https://github.com/jaz-alli/transformers-text-classification/blob/main/transformers_text_classification.ipynb).\n",
9+
"**(C) 2024 by [Damir Cavar](http://damir.cavar.me/)**\n",
1010
"\n",
11-
"by [Damir Cavar](http://damir.cavar.me/)\n"
11+
"\n",
12+
"**Download:** This and various other Jupyter notebooks are available from my [GitHub repo](https://github.com/dcavar/python-tutorial-for-ipython).\n",
13+
"\n",
14+
"\n",
15+
"Based on [Transformer Text Classification by Eijaz Allibhai](https://github.com/jaz-alli/transformers-text-classification/blob/main/transformers_text_classification.ipynb).\n"
1216
]
1317
},
1418
{

notebooks/anthropic_vectors.ipynb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
"\n",
99
"(C) 2024 by [Damir Cavar](http://damir.cavar.me/)\n",
1010
"\n",
11+
"**Download:** This and various other Jupyter notebooks are available from my [GitHub repo](https://github.com/dcavar/python-tutorial-for-ipython).\n",
12+
"\n",
1113
"The vectors from [VoyageAI](https://www.voyageai.com/) are recommended by [Anthropic](https://www.anthropic.com/). You will need to get an API key to use these vectors. \n",
1214
"\n",
1315
"The Python module `voyageai` is required."

notebooks/neo4j_query.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
"\n",
99
"(C) 2024 by [Damir Cavar](http://damir.cavar.me/)\n",
1010
"\n",
11-
"This code shows how to query the Neo4j endpoint graph. The code expects that you specify the neo4j URI for the BOLT interface, which could be localhost and port 7687 as in \"bolt://localhost:7687\". Specify the URL, login, and password in the file `secret.py`. Of course, it is necessary to have a running instance of Neo4j that serves to this port using the BOLT protocol, etc. Read the Neo4j configuration related to this."
11+
"**Download:** This and various other Jupyter notebooks are available from my [GitHub repo](https://github.com/dcavar/python-tutorial-for-ipython).\n",
12+
"\n",
13+
"This code shows how to query the Neo4j endpoint graph. The code expects that you specify the neo4j URI for the BOLT interface, which could be localhost and port 7687 as in `bolt://localhost:7687`. Specify the URL, login, and password in the file `secret.py`. Of course, it is necessary to have a running instance of Neo4j that serves to this port using the BOLT protocol, etc. Read the Neo4j configuration related to this."
1214
]
1315
},
1416
{

notebooks/openai_vectors.ipynb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
"\n",
99
"(C) 2024 by [Damir Cavar](http://damir.cavar.me/)\n",
1010
"\n",
11+
"**Download:** This and various other Jupyter notebooks are available from my [GitHub repo](https://github.com/dcavar/python-tutorial-for-ipython).\n",
12+
"\n",
13+
"\n",
1114
"Pulling embeddings for words and phrases from OpenAI's GPT.\n",
1215
"\n",
1316
" Model\t~ Pages per dollar\tPerformance on MTEB eval\tMax input\n",

0 commit comments

Comments
 (0)