Skip to content

Commit

Permalink
Updated SMOTE notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
SartajBhuvaji committed Feb 10, 2024
1 parent 26a48f4 commit 0d09401
Showing 1 changed file with 4 additions and 129 deletions.
133 changes: 4 additions & 129 deletions notebooks/SDGnE_SMOTE_Notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -37,27 +37,15 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "3TDy74VkBy_s",
"outputId": "49750806-846c-4b34-9804-fe52f97032cb"
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Collecting sdgne\n",
" Downloading sdgne-4.0.0-py3-none-any.whl (293 kB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m293.3/293.3 kB\u001b[0m \u001b[31m3.1 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25hInstalling collected packages: sdgne\n",
"Successfully installed sdgne-4.0.0\n"
]
}
],
"outputs": [],
"source": [
"!pip install sdgne"
]
Expand All @@ -73,128 +61,15 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "dGRBFhf4cX2O",
"outputId": "34957a77-5a29-41f4-fcf9-7431fa826dba"
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Collecting gretel-client\n",
" Downloading gretel_client-0.17.3-py3-none-any.whl (295 kB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m295.8/295.8 kB\u001b[0m \u001b[31m5.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25hCollecting backports.cached-property==1.0.0.post2 (from gretel-client)\n",
" Downloading backports.cached_property-1.0.0.post2-py3-none-any.whl (5.6 kB)\n",
"Requirement already satisfied: certifi>=2021.10.8 in /usr/local/lib/python3.10/dist-packages (from gretel-client) (2024.2.2)\n",
"Collecting click==8.1.3 (from gretel-client)\n",
" Downloading click-8.1.3-py3-none-any.whl (96 kB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m96.6/96.6 kB\u001b[0m \u001b[31m9.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25hCollecting docker==6.1.2 (from gretel-client)\n",
" Downloading docker-6.1.2-py3-none-any.whl (148 kB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m148.1/148.1 kB\u001b[0m \u001b[31m13.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25hCollecting kubernetes==28.1.0 (from gretel-client)\n",
" Downloading kubernetes-28.1.0-py2.py3-none-any.whl (1.6 MB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m1.6/1.6 MB\u001b[0m \u001b[31m26.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25hCollecting opentelemetry-distro==0.41b0 (from gretel-client)\n",
" Downloading opentelemetry_distro-0.41b0-py3-none-any.whl (3.3 kB)\n",
"Collecting opentelemetry-exporter-prometheus==0.41b0 (from gretel-client)\n",
" Downloading opentelemetry_exporter_prometheus-0.41b0-py3-none-any.whl (10 kB)\n",
"Collecting pydantic==1.10.13 (from gretel-client)\n",
" Downloading pydantic-1.10.13-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m3.1/3.1 MB\u001b[0m \u001b[31m66.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25hRequirement already satisfied: python-dateutil>=2.8.0 in /usr/local/lib/python3.10/dist-packages (from gretel-client) (2.8.2)\n",
"Requirement already satisfied: pyyaml==6.0.1 in /usr/local/lib/python3.10/dist-packages (from gretel-client) (6.0.1)\n",
"Requirement already satisfied: requests<3,>=2.25 in /usr/local/lib/python3.10/dist-packages (from gretel-client) (2.31.0)\n",
"Collecting smart-open<6.0,>=2.1.0 (from gretel-client)\n",
" Downloading smart_open-5.2.1-py3-none-any.whl (58 kB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m58.6/58.6 kB\u001b[0m \u001b[31m5.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25hCollecting tabulate==0.8.9 (from gretel-client)\n",
" Downloading tabulate-0.8.9-py3-none-any.whl (25 kB)\n",
"Collecting tenacity==8.2.2 (from gretel-client)\n",
" Downloading tenacity-8.2.2-py3-none-any.whl (24 kB)\n",
"Requirement already satisfied: tqdm<5.0 in /usr/local/lib/python3.10/dist-packages (from gretel-client) (4.66.1)\n",
"Collecting urllib3<2,>=1.26.5 (from gretel-client)\n",
" Downloading urllib3-1.26.18-py2.py3-none-any.whl (143 kB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m143.8/143.8 kB\u001b[0m \u001b[31m10.8 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25hRequirement already satisfied: packaging>=14.0 in /usr/local/lib/python3.10/dist-packages (from docker==6.1.2->gretel-client) (23.2)\n",
"Requirement already satisfied: websocket-client>=0.32.0 in /usr/local/lib/python3.10/dist-packages (from docker==6.1.2->gretel-client) (1.7.0)\n",
"Requirement already satisfied: six>=1.9.0 in /usr/local/lib/python3.10/dist-packages (from kubernetes==28.1.0->gretel-client) (1.16.0)\n",
"Requirement already satisfied: google-auth>=1.0.1 in /usr/local/lib/python3.10/dist-packages (from kubernetes==28.1.0->gretel-client) (2.17.3)\n",
"Requirement already satisfied: requests-oauthlib in /usr/local/lib/python3.10/dist-packages (from kubernetes==28.1.0->gretel-client) (1.3.1)\n",
"Requirement already satisfied: oauthlib>=3.2.2 in /usr/local/lib/python3.10/dist-packages (from kubernetes==28.1.0->gretel-client) (3.2.2)\n",
"Collecting opentelemetry-api~=1.12 (from opentelemetry-distro==0.41b0->gretel-client)\n",
" Downloading opentelemetry_api-1.22.0-py3-none-any.whl (57 kB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m57.9/57.9 kB\u001b[0m \u001b[31m5.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25hCollecting opentelemetry-instrumentation==0.41b0 (from opentelemetry-distro==0.41b0->gretel-client)\n",
" Downloading opentelemetry_instrumentation-0.41b0-py3-none-any.whl (25 kB)\n",
"Collecting opentelemetry-sdk~=1.13 (from opentelemetry-distro==0.41b0->gretel-client)\n",
" Downloading opentelemetry_sdk-1.22.0-py3-none-any.whl (105 kB)\n",
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m105.6/105.6 kB\u001b[0m \u001b[31m10.7 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25hRequirement already satisfied: prometheus-client<1.0.0,>=0.5.0 in /usr/local/lib/python3.10/dist-packages (from opentelemetry-exporter-prometheus==0.41b0->gretel-client) (0.19.0)\n",
"Requirement already satisfied: typing-extensions>=4.2.0 in /usr/local/lib/python3.10/dist-packages (from pydantic==1.10.13->gretel-client) (4.9.0)\n",
"Requirement already satisfied: setuptools>=16.0 in /usr/local/lib/python3.10/dist-packages (from opentelemetry-instrumentation==0.41b0->opentelemetry-distro==0.41b0->gretel-client) (67.7.2)\n",
"Requirement already satisfied: wrapt<2.0.0,>=1.0.0 in /usr/local/lib/python3.10/dist-packages (from opentelemetry-instrumentation==0.41b0->opentelemetry-distro==0.41b0->gretel-client) (1.14.1)\n",
"Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.10/dist-packages (from requests<3,>=2.25->gretel-client) (3.3.2)\n",
"Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.10/dist-packages (from requests<3,>=2.25->gretel-client) (3.6)\n",
"Requirement already satisfied: cachetools<6.0,>=2.0.0 in /usr/local/lib/python3.10/dist-packages (from google-auth>=1.0.1->kubernetes==28.1.0->gretel-client) (5.3.2)\n",
"Requirement already satisfied: pyasn1-modules>=0.2.1 in /usr/local/lib/python3.10/dist-packages (from google-auth>=1.0.1->kubernetes==28.1.0->gretel-client) (0.3.0)\n",
"Requirement already satisfied: rsa<5,>=3.1.4 in /usr/local/lib/python3.10/dist-packages (from google-auth>=1.0.1->kubernetes==28.1.0->gretel-client) (4.9)\n",
"Collecting deprecated>=1.2.6 (from opentelemetry-api~=1.12->opentelemetry-distro==0.41b0->gretel-client)\n",
" Downloading Deprecated-1.2.14-py2.py3-none-any.whl (9.6 kB)\n",
"Collecting importlib-metadata<7.0,>=6.0 (from opentelemetry-api~=1.12->opentelemetry-distro==0.41b0->gretel-client)\n",
" Downloading importlib_metadata-6.11.0-py3-none-any.whl (23 kB)\n",
"Collecting opentelemetry-semantic-conventions==0.43b0 (from opentelemetry-sdk~=1.13->opentelemetry-distro==0.41b0->gretel-client)\n",
" Downloading opentelemetry_semantic_conventions-0.43b0-py3-none-any.whl (36 kB)\n",
"Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.10/dist-packages (from importlib-metadata<7.0,>=6.0->opentelemetry-api~=1.12->opentelemetry-distro==0.41b0->gretel-client) (3.17.0)\n",
"Requirement already satisfied: pyasn1<0.6.0,>=0.4.6 in /usr/local/lib/python3.10/dist-packages (from pyasn1-modules>=0.2.1->google-auth>=1.0.1->kubernetes==28.1.0->gretel-client) (0.5.1)\n",
"Installing collected packages: tabulate, urllib3, tenacity, smart-open, pydantic, opentelemetry-semantic-conventions, importlib-metadata, deprecated, click, backports.cached-property, opentelemetry-api, opentelemetry-sdk, opentelemetry-instrumentation, docker, opentelemetry-exporter-prometheus, opentelemetry-distro, kubernetes, gretel-client\n",
" Attempting uninstall: tabulate\n",
" Found existing installation: tabulate 0.9.0\n",
" Uninstalling tabulate-0.9.0:\n",
" Successfully uninstalled tabulate-0.9.0\n",
" Attempting uninstall: urllib3\n",
" Found existing installation: urllib3 2.0.7\n",
" Uninstalling urllib3-2.0.7:\n",
" Successfully uninstalled urllib3-2.0.7\n",
" Attempting uninstall: tenacity\n",
" Found existing installation: tenacity 8.2.3\n",
" Uninstalling tenacity-8.2.3:\n",
" Successfully uninstalled tenacity-8.2.3\n",
" Attempting uninstall: smart-open\n",
" Found existing installation: smart-open 6.4.0\n",
" Uninstalling smart-open-6.4.0:\n",
" Successfully uninstalled smart-open-6.4.0\n",
" Attempting uninstall: pydantic\n",
" Found existing installation: pydantic 2.6.1\n",
" Uninstalling pydantic-2.6.1:\n",
" Successfully uninstalled pydantic-2.6.1\n",
" Attempting uninstall: importlib-metadata\n",
" Found existing installation: importlib-metadata 7.0.1\n",
" Uninstalling importlib-metadata-7.0.1:\n",
" Successfully uninstalled importlib-metadata-7.0.1\n",
" Attempting uninstall: click\n",
" Found existing installation: click 8.1.7\n",
" Uninstalling click-8.1.7:\n",
" Successfully uninstalled click-8.1.7\n",
"\u001b[31mERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.\n",
"lida 0.0.10 requires fastapi, which is not installed.\n",
"lida 0.0.10 requires kaleido, which is not installed.\n",
"lida 0.0.10 requires python-multipart, which is not installed.\n",
"lida 0.0.10 requires uvicorn, which is not installed.\n",
"llmx 0.0.15a0 requires cohere, which is not installed.\n",
"llmx 0.0.15a0 requires openai, which is not installed.\n",
"llmx 0.0.15a0 requires tiktoken, which is not installed.\n",
"bigframes 0.20.1 requires tabulate>=0.9, but you have tabulate 0.8.9 which is incompatible.\u001b[0m\u001b[31m\n",
"\u001b[0mSuccessfully installed backports.cached-property-1.0.0.post2 click-8.1.3 deprecated-1.2.14 docker-6.1.2 gretel-client-0.17.3 importlib-metadata-6.11.0 kubernetes-28.1.0 opentelemetry-api-1.22.0 opentelemetry-distro-0.41b0 opentelemetry-exporter-prometheus-0.41b0 opentelemetry-instrumentation-0.41b0 opentelemetry-sdk-1.22.0 opentelemetry-semantic-conventions-0.43b0 pydantic-1.10.13 smart-open-5.2.1 tabulate-0.8.9 tenacity-8.2.2 urllib3-1.26.18\n"
]
}
],
"outputs": [],
"source": [
"!pip install gretel-client"
]
Expand Down

0 comments on commit 0d09401

Please sign in to comment.