Updated SQL Query Plot Code (#8120)

Co-authored-by: Ayush Chaurasia <ayush.chaurarsia@gmail.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
Ankan Ghosh 2024-02-11 17:28:57 +05:30 committed by GitHub
parent bcd4225680
commit 22364dc6d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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