Kenneth Leung, Author at Towards Data Science https://towardsdatascience.com Publish AI, ML & data-science insights to a global community of data professionals. Thu, 11 Dec 2025 16:07:19 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.3 https://towardsdatascience.com/wp-content/uploads/2025/02/cropped-Favicon-32x32.png Kenneth Leung, Author at Towards Data Science https://towardsdatascience.com 32 32 How Agent Handoffs Work in Multi-Agent Systems https://towardsdatascience.com/how-agent-handoffs-work-in-multi-agent-systems/ Thu, 11 Dec 2025 12:00:00 +0000 https://towardsdatascience.com/?p=607875 Understanding how LLM agents transfer control to each other in a multi-agent system with LangGraph

The post How Agent Handoffs Work in Multi-Agent Systems appeared first on Towards Data Science.

]]>
Using Google’s LangExtract and Gemma for Structured Data Extraction https://towardsdatascience.com/using-googles-langextract-and-gemma-for-structured-data-extraction/ Tue, 26 Aug 2025 15:10:00 +0000 https://towardsdatascience.com/?p=606950 Extracting structured information effectively and accurately from long unstructured text with LangExtract and LLMs

The post Using Google’s LangExtract and Gemma for Structured Data Extraction appeared first on Towards Data Science.

]]>
How to Benchmark DeepSeek-R1 Distilled Models on GPQA Using Ollama and OpenAI’s simple-evals https://towardsdatascience.com/how-to-benchmark-deepseek-r1-distilled-models-on-gpqa-using-ollama-and-openais-simple-evals/ Thu, 24 Apr 2025 01:31:13 +0000 https://towardsdatascience.com/?p=605790 Set up and run the GPQA-Diamond benchmark on DeepSeek-R1's distilled models locally to evaluate its reasoning capabilities.

The post How to Benchmark DeepSeek-R1 Distilled Models on GPQA Using Ollama and OpenAI’s simple-evals appeared first on Towards Data Science.

]]>
Exposing Jailbreak Vulnerabilities in LLM Applications with ARTKIT https://towardsdatascience.com/exposing-jailbreak-vulnerabilities-in-llm-applications-with-artkit-d2df5f56ece8/ Wed, 25 Sep 2024 17:21:52 +0000 https://towardsdatascience.com/exposing-jailbreak-vulnerabilities-in-llm-applications-with-artkit-d2df5f56ece8/ Automated prompt-based testing to extract hidden passwords in the popular Gandalf challenge

The post Exposing Jailbreak Vulnerabilities in LLM Applications with ARTKIT appeared first on Towards Data Science.

]]>
Guide to ChatGPT’s Advanced Settings – Top P, Frequency Penalties, Temperature, and More https://towardsdatascience.com/guide-to-chatgpts-advanced-settings-top-p-frequency-penalties-temperature-and-more-b70bae848069/ Tue, 07 Nov 2023 08:00:22 +0000 https://towardsdatascience.com/guide-to-chatgpts-advanced-settings-top-p-frequency-penalties-temperature-and-more-b70bae848069/ Unlock the full potential of ChatGPT by optimizing extended configurations like Top P, frequency and presence penalties, stop sequences...

The post Guide to ChatGPT’s Advanced Settings – Top P, Frequency Penalties, Temperature, and More appeared first on Towards Data Science.

]]>
When AI Goes Astray: High-Profile Machine Learning Mishaps in the Real World https://towardsdatascience.com/when-ai-goes-astray-high-profile-machine-learning-mishaps-in-the-real-world-26bd58692195/ Sat, 19 Aug 2023 14:52:51 +0000 https://towardsdatascience.com/when-ai-goes-astray-high-profile-machine-learning-mishaps-in-the-real-world-26bd58692195/ A tour of infamous machine learning blunders and failures that caught the world's attention

The post When AI Goes Astray: High-Profile Machine Learning Mishaps in the Real World appeared first on Towards Data Science.

]]>
Running Llama 2 on CPU Inference Locally for Document Q&A https://towardsdatascience.com/running-llama-2-on-cpu-inference-for-document-q-a-3d636037a3d8/ Tue, 18 Jul 2023 19:46:45 +0000 https://towardsdatascience.com/running-llama-2-on-cpu-inference-for-document-q-a-3d636037a3d8/ Clearly explained guide for running quantized open-source LLM applications on CPUs using LLama 2, C Transformers, GGML, and LangChain

The post Running Llama 2 on CPU Inference Locally for Document Q&A appeared first on Towards Data Science.

]]>
arXiv Keyword Extraction and Analysis Pipeline with KeyBERT and Taipy https://towardsdatascience.com/arxiv-keyword-extraction-and-analysis-pipeline-with-keybert-and-taipy-2972e81d9fa4/ Tue, 18 Apr 2023 17:55:00 +0000 https://towardsdatascience.com/arxiv-keyword-extraction-and-analysis-pipeline-with-keybert-and-taipy-2972e81d9fa4/ Build a keyword analysis application in Python comprising a frontend user interface and backend pipeline

The post arXiv Keyword Extraction and Analysis Pipeline with KeyBERT and Taipy appeared first on Towards Data Science.

]]>
Practical Guide to Transfer Learning in TensorFlow for Multiclass Image Classification https://towardsdatascience.com/practical-guide-to-transfer-learning-in-tensorflow-for-multiclass-image-classification-d35fab7b28c0/ Tue, 27 Dec 2022 21:19:57 +0000 https://towardsdatascience.com/practical-guide-to-transfer-learning-in-tensorflow-for-multiclass-image-classification-d35fab7b28c0/ Clearly-explained step-by-step tutorial for implementing transfer learning in image classification

The post Practical Guide to Transfer Learning in TensorFlow for Multiclass Image Classification appeared first on Towards Data Science.

]]>
PyMySQL – Connecting Python and SQL for Data Science https://towardsdatascience.com/pymysql-connecting-python-and-sql-for-data-science-91e7582d21d7/ Tue, 13 Sep 2022 06:33:32 +0000 https://towardsdatascience.com/pymysql-connecting-python-and-sql-for-data-science-91e7582d21d7/ Easily access MySQL databases and execute SQL queries in Python

The post PyMySQL – Connecting Python and SQL for Data Science appeared first on Towards Data Science.

]]>
Imputation of Missing Data in Tables with DataWig https://towardsdatascience.com/imputation-of-missing-data-in-tables-with-datawig-2d7ab327ece2/ Wed, 24 Aug 2022 17:01:03 +0000 https://towardsdatascience.com/imputation-of-missing-data-in-tables-with-datawig-2d7ab327ece2/ Implementing Amazon's DataWig in Python to impute missing values in tabular data

The post Imputation of Missing Data in Tables with DataWig appeared first on Towards Data Science.

]]>
Feature Selection with Simulated Annealing in Python, Clearly Explained https://towardsdatascience.com/feature-selection-with-simulated-annealing-in-python-clearly-explained-1808db14f8fa/ Tue, 09 Aug 2022 19:40:08 +0000 https://towardsdatascience.com/feature-selection-with-simulated-annealing-in-python-clearly-explained-1808db14f8fa/ Concept and implementation of the global search algorithm to select the best features for machine learning

The post Feature Selection with Simulated Annealing in Python, Clearly Explained appeared first on Towards Data Science.

]]>
How to Dockerize Machine Learning Applications Built with H2O, MLflow, FastAPI, and Streamlit https://towardsdatascience.com/how-to-dockerize-machine-learning-applications-built-with-h2o-mlflow-fastapi-and-streamlit-a56221035eb5/ Tue, 07 Jun 2022 19:27:13 +0000 https://towardsdatascience.com/how-to-dockerize-machine-learning-applications-built-with-h2o-mlflow-fastapi-and-streamlit-a56221035eb5/ An easy-to-follow guide to containerizing multi-service ML applications with Docker

The post How to Dockerize Machine Learning Applications Built with H2O, MLflow, FastAPI, and Streamlit appeared first on Towards Data Science.

]]>
Key Learning Points from MLOps Specialization – Course 4 https://towardsdatascience.com/key-learning-points-from-mlops-specialization-course-4-ee39bbd2864b/ Mon, 23 May 2022 18:34:24 +0000 https://towardsdatascience.com/key-learning-points-from-mlops-specialization-course-4-ee39bbd2864b/ Main insights (with lecture notes) from the Machine Learning Engineering for Production (MLOps) Course by DeepLearning.AI & Andrew Ng

The post Key Learning Points from MLOps Specialization – Course 4 appeared first on Towards Data Science.

]]>
Build an Anomaly Detection Pipeline with Isolation Forest and Kedro https://towardsdatascience.com/build-an-anomaly-detection-pipeline-with-isolation-forest-and-kedro-db5f4437bfab/ Mon, 18 Apr 2022 17:23:33 +0000 https://towardsdatascience.com/build-an-anomaly-detection-pipeline-with-isolation-forest-and-kedro-db5f4437bfab/ Developing and managing a data science pipeline for detecting fraudulent credit card transactions

The post Build an Anomaly Detection Pipeline with Isolation Forest and Kedro appeared first on Towards Data Science.

]]>
Principal Component Regression – Clearly Explained and Implemented https://towardsdatascience.com/principal-component-regression-clearly-explained-and-implemented-608471530a2f/ Wed, 06 Apr 2022 18:09:51 +0000 https://towardsdatascience.com/principal-component-regression-clearly-explained-and-implemented-608471530a2f/ Concepts and Python implementation of the regression analysis technique based on principal component analysis (PCA)

The post Principal Component Regression – Clearly Explained and Implemented appeared first on Towards Data Science.

]]>
No-Frills Guide to Passing the AWS Certified Machine Learning Specialty Exam https://towardsdatascience.com/no-frills-guide-to-passing-the-aws-certified-machine-learning-specialty-exam-55624579353f/ Tue, 15 Mar 2022 05:11:00 +0000 https://towardsdatascience.com/no-frills-guide-to-passing-the-aws-certified-machine-learning-specialty-exam-55624579353f/ A highly efficient approach to attaining the Amazon Web Services (AWS) machine learning specialty certification

The post No-Frills Guide to Passing the AWS Certified Machine Learning Specialty Exam appeared first on Towards Data Science.

]]>
Definitive Guide to Creating a SQL Database on Cloud with AWS and Python https://towardsdatascience.com/definitive-guide-to-create-an-sql-database-on-cloud-with-aws-and-python-c818c7270af2/ Wed, 09 Feb 2022 12:20:21 +0000 https://towardsdatascience.com/definitive-guide-to-create-an-sql-database-on-cloud-with-aws-and-python-c818c7270af2/ Definitive Guide to Creating an SQL Database on Cloud with AWS and Python An easy-to-follow comprehensive guide on using Amazon RDS, MySQL Workbench, and PyMySQL to build and deploy a database in the cloud for Python applications We will often generate and collect valuable data from the Python applications we build in our data science […]

The post Definitive Guide to Creating a SQL Database on Cloud with AWS and Python appeared first on Towards Data Science.

]]>
Key Learning Points from MLOps Specialization – Course 3 https://towardsdatascience.com/key-learning-points-from-mlops-specialization-course-3-9e67558212ee/ Thu, 03 Feb 2022 21:01:05 +0000 https://towardsdatascience.com/key-learning-points-from-mlops-specialization-course-3-9e67558212ee/ Main insights (with lecture notes) from the Machine Learning Engineering for Production (MLOps) Course by DeepLearning.AI & Andrew Ng

The post Key Learning Points from MLOps Specialization – Course 3 appeared first on Towards Data Science.

]]>
Top Tips to Google Search Like a Seasoned Data Scientist https://towardsdatascience.com/top-tips-to-google-search-like-a-data-science-pro-897599f4d9ae/ Mon, 24 Jan 2022 20:24:48 +0000 https://towardsdatascience.com/top-tips-to-google-search-like-a-data-science-pro-897599f4d9ae/ Of the many skills that a seasoned data practitioner should possess, the ability to Google search for answers accurately and efficiently is right there amongst the top. In this article, discover the top Google search tips that will help you search for data science solutions and ideas better and faster. Contents (1) Exact (2) Exclude […]

The post Top Tips to Google Search Like a Seasoned Data Scientist appeared first on Towards Data Science.

]]>