-
Notifications
You must be signed in to change notification settings - Fork 58
Add SingleStore AI Bootcamp : AI/ML Enablement template notebooks #149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| - id: requirements-txt-fixer | ||
| - repo: https://github.com/PyCQA/flake8 | ||
| rev: 5.0.4 | ||
| rev: 7.1.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated this to get past local config error
| [meta] | ||
| authors=["bharath-swamy"] | ||
| title="Demonstrate ML function Anomaly Detect" | ||
| description="""\ | ||
| Learn how to train an ML Anomaly Detect \ | ||
| model and run it to predict the class of a set of time series inputs. | ||
| """ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a new example for anomaly detect
| "# Install and Import Required Libraries\n", | ||
| "!pip install -q langchain==0.3.27 langchain-openai==0.2.10 langchain-community==0.3.25 langchain-core==0.3.72 pillow==10.4.0 aiofiles==24.1.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pinned the all install libraries for consistency
| "async def download_image_from_url(image_url: str, max_size: int = 1024) -> str:\n", | ||
| " \"\"\"\n", | ||
| " Download image from URL and encode to base64 for GPT-4o Vision API.\n", | ||
| "\n", | ||
| " Parameters\n", | ||
| " ----------\n", | ||
| " image_url : str\n", | ||
| " URL of the image to download\n", | ||
| " max_size : int, optional\n", | ||
| " Maximum size to resize image to save on API costs, by default 1024\n", | ||
| "\n", | ||
| " Returns\n", | ||
| " -------\n", | ||
| " str\n", | ||
| " Base64 encoded image string\n", | ||
| "\n", | ||
| " Raises\n", | ||
| " ------\n", | ||
| " Exception\n", | ||
| " If image download fails or processing encounters an error\n", | ||
| " \"\"\"\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated function to Use numpy style docstrings
mgiannakopoulos
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢 Ship IT!
| } | ||
| ], | ||
| "source": [ | ||
| "pip install -q kagglehub" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be pinned to a version
| ], | ||
| "source": [ | ||
| "%%sql\n", | ||
| "USE \"temp\";\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you are going to do this instead of selecting the database in the UI, you should at least use {{ db_name }} so that if that variable is changed earlier in the notebook, this still matches.
WHAT
WHY
Need to demo the possibilities to Sales / Solution engineers