From 22364dc6d15b1dff199e5d32ff7eeb8965902147 Mon Sep 17 00:00:00 2001 From: Ankan Ghosh <79740115+0xSynapse@users.noreply.github.com> Date: Sun, 11 Feb 2024 17:28:57 +0530 Subject: [PATCH] Updated SQL Query Plot Code (#8120) Co-authored-by: Ayush Chaurasia Co-authored-by: Glenn Jocher --- .github/workflows/publish.yml | 1 - docs/en/datasets/explorer/api.md | 4 ++-- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e87a3da4..ca2980f4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -33,7 +33,6 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip wheel build twine - pip install "git+https://github.com/squidfunk/mkdocs-material@master" pip install -e ".[dev]" --extra-index-url https://download.pytorch.org/whl/cpu - name: Check PyPI version shell: python diff --git a/docs/en/datasets/explorer/api.md b/docs/en/datasets/explorer/api.md index 7f0fe22b..a6b93004 100644 --- a/docs/en/datasets/explorer/api.md +++ b/docs/en/datasets/explorer/api.md @@ -192,8 +192,8 @@ You can also plot the results of a SQL query using the `plot_sql_query` method. exp = Explorer(data='coco128.yaml', model='yolov8n.pt') exp.create_embeddings_table() - df = exp.sql_query("WHERE labels LIKE '%person%' AND labels LIKE '%dog%'") - print(df.head()) + # plot the SQL Query + exp.plot_sql_query("WHERE labels LIKE '%person%' AND labels LIKE '%dog%' LIMIT 10") ``` ## 4. Advanced - Working with Embeddings Table diff --git a/pyproject.toml b/pyproject.toml index d0dd99fb..aefb6099 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -89,7 +89,7 @@ dev = [ "pytest", "pytest-cov", "coverage[toml]", - "mkdocs-material", + "mkdocs-material>=9.5.9", "mkdocstrings[python]", "mkdocs-jupyter", # for notebooks "mkdocs-redirects", # for 301 redirects