Skip to content

Commit

Permalink
Merge pull request pinecone-io#39 from pinecone-io/update/it-threat-d…
Browse files Browse the repository at this point in the history
…etection

Update it threat detection notebook
  • Loading branch information
rajat08 authored Oct 18, 2021
2 parents dbb46b4 + f3f8a6b commit d6b82e1
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions it_threat_detection/it_threat_detection.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
"import pandas as pd\n",
"import seaborn as sns\n",
"from tensorflow import keras\n",
"from keras.models import Model\n",
"from tensorflow.keras.models import Model\n",
"import tensorflow.keras.backend as K\n",
"from sklearn.metrics import accuracy_score, precision_score, recall_score\n",
"from sklearn.metrics import confusion_matrix"
Expand Down Expand Up @@ -847,7 +847,7 @@
"source": [
"NUMBER_OF_ITEMS = len(items_to_upload)\n",
"\n",
"for batch in chunks(items_to_upload[:NUMBER_OF_ITEMS], 100):\n",
"for batch in chunks(items_to_upload[:NUMBER_OF_ITEMS], 50):\n",
" index.upsert(vectors=batch)"
]
},
Expand Down Expand Up @@ -883,7 +883,7 @@
}
],
"source": [
"index.summarize()"
"index.describe_index_stats()"
]
},
{
Expand Down Expand Up @@ -1766,6 +1766,13 @@
"source": [
"pinecone.delete_index(index_name)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down Expand Up @@ -1796,7 +1803,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.9"
"version": "3.7.11"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
Expand Down

0 comments on commit d6b82e1

Please sign in to comment.