Dhruv Matani, Author at Towards Data Science https://towardsdatascience.com Publish AI, ML & data-science insights to a global community of data professionals. Wed, 05 Mar 2025 12:20:27 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.3 https://towardsdatascience.com/wp-content/uploads/2025/02/cropped-Favicon-32x32.png Dhruv Matani, Author at Towards Data Science https://towardsdatascience.com 32 32 Interpreting Weight Regularization In Machine Learning https://towardsdatascience.com/interpreting-weight-regularization-in-machine-learning-99f2677f7ef5/ Fri, 23 Aug 2024 23:55:25 +0000 https://towardsdatascience.com/interpreting-weight-regularization-in-machine-learning-99f2677f7ef5/ Why do L1 and L2 regularization result in model sparsity and weight shrinkage? What about L3 regularization? Keep reading to find out more!

The post Interpreting Weight Regularization In Machine Learning appeared first on Towards Data Science.

]]>
Challenges of Detecting AI-Generated Text https://towardsdatascience.com/challenges-of-detecting-ai-generated-text-6d85bf779448/ Wed, 27 Sep 2023 04:35:18 +0000 https://towardsdatascience.com/challenges-of-detecting-ai-generated-text-6d85bf779448/ We'll take an in-depth look at the challenges of detecting AI-generated text, and the effectiveness of the techniques used in practice.

The post Challenges of Detecting AI-Generated Text appeared first on Towards Data Science.

]]>
Language Models for Sentence Completion https://towardsdatascience.com/language-models-for-sentence-completion-6a5298a85e43/ Fri, 15 Sep 2023 06:54:32 +0000 https://towardsdatascience.com/language-models-for-sentence-completion-6a5298a85e43/ A practical application of a language model that picks the most likely candidate word that extends an English sentence by a single word

The post Language Models for Sentence Completion appeared first on Towards Data Science.

]]>
Tensor Quantization: The Untold Story https://towardsdatascience.com/tensor-quantization-the-untold-story-d798c30e7646/ Fri, 08 Sep 2023 05:20:41 +0000 https://towardsdatascience.com/tensor-quantization-the-untold-story-d798c30e7646/ A close look at the implementation details of quantization in machine learning frameworks

The post Tensor Quantization: The Untold Story appeared first on Towards Data Science.

]]>
Efficient Image Segmentation Using PyTorch: Part 4 https://towardsdatascience.com/efficient-image-segmentation-using-pytorch-part-4-6c86da083432/ Tue, 27 Jun 2023 06:13:30 +0000 https://towardsdatascience.com/efficient-image-segmentation-using-pytorch-part-4-6c86da083432/ A Vision Transformer-based model

The post Efficient Image Segmentation Using PyTorch: Part 4 appeared first on Towards Data Science.

]]>
Efficient Image Segmentation Using PyTorch: Part 3 https://towardsdatascience.com/efficient-image-segmentation-using-pytorch-part-3-3534cf04fb89/ Tue, 27 Jun 2023 06:12:37 +0000 https://towardsdatascience.com/efficient-image-segmentation-using-pytorch-part-3-3534cf04fb89/ Depthwise separable convolutions

The post Efficient Image Segmentation Using PyTorch: Part 3 appeared first on Towards Data Science.

]]>
Efficient Image Segmentation Using PyTorch: Part 2 https://towardsdatascience.com/efficient-image-segmentation-using-pytorch-part-2-bed68cadd7c7/ Tue, 27 Jun 2023 06:11:46 +0000 https://towardsdatascience.com/efficient-image-segmentation-using-pytorch-part-2-bed68cadd7c7/ A CNN-based model

The post Efficient Image Segmentation Using PyTorch: Part 2 appeared first on Towards Data Science.

]]>
Efficient Image Segmentation Using PyTorch: Part 1 https://towardsdatascience.com/efficient-image-segmentation-using-pytorch-part-1-89e8297a0923/ Tue, 27 Jun 2023 06:10:37 +0000 https://towardsdatascience.com/efficient-image-segmentation-using-pytorch-part-1-89e8297a0923/ Concepts and Ideas

The post Efficient Image Segmentation Using PyTorch: Part 1 appeared first on Towards Data Science.

]]>
NT-Xent (Normalized Temperature-Scaled Cross-Entropy) Loss Explained and Implemented in PyTorch https://towardsdatascience.com/nt-xent-normalized-temperature-scaled-cross-entropy-loss-explained-and-implemented-in-pytorch-cc081f69848/ Tue, 13 Jun 2023 18:46:41 +0000 https://towardsdatascience.com/nt-xent-normalized-temperature-scaled-cross-entropy-loss-explained-and-implemented-in-pytorch-cc081f69848/ An intuitive explanation of the NT-Xent loss with a step-by-step explanation of the operation and our implementation in PyTorch

The post NT-Xent (Normalized Temperature-Scaled Cross-Entropy) Loss Explained and Implemented in PyTorch appeared first on Towards Data Science.

]]>
Replace Manual Normalization with Batch Normalization in Vision AI Models https://towardsdatascience.com/replace-manual-normalization-with-batch-normalization-in-vision-ai-models-e7782e82193c/ Thu, 18 May 2023 05:20:47 +0000 https://towardsdatascience.com/replace-manual-normalization-with-batch-normalization-in-vision-ai-models-e7782e82193c/ A neat trick to avoid expensive manual pixel normalization for Vision (Image/Video) AI models is to stick a Batch normalization layer as...

The post Replace Manual Normalization with Batch Normalization in Vision AI Models appeared first on Towards Data Science.

]]>
HyperLogLog implemented using SQL https://towardsdatascience.com/hyperloglog-implemented-using-sql-d516fc4828ce/ Mon, 23 Jan 2023 12:44:44 +0000 https://towardsdatascience.com/hyperloglog-implemented-using-sql-d516fc4828ce/ We look at an implementation of the HyperLogLog cardinality estimation algorithm written entirely in declarative SQL

The post HyperLogLog implemented using SQL appeared first on Towards Data Science.

]]>
Validate a String as HTML Using SQL https://towardsdatascience.com/validate-a-string-as-html-using-sql-d70e81149a2/ Thu, 19 Jan 2023 07:08:45 +0000 https://towardsdatascience.com/validate-a-string-as-html-using-sql-d70e81149a2/ Is it possible to check if a string contains valid HTML using just SQL?

The post Validate a String as HTML Using SQL appeared first on Towards Data Science.

]]>
Minimum Meeting Rooms Problem in SQL https://towardsdatascience.com/minimum-meeting-rooms-problem-in-sql-4d3a92365bdf/ Thu, 05 Jan 2023 20:42:50 +0000 https://towardsdatascience.com/minimum-meeting-rooms-problem-in-sql-4d3a92365bdf/ Compute (in SQL) the minimum number of meeting rooms needed to schedule a set of meetings

The post Minimum Meeting Rooms Problem in SQL appeared first on Towards Data Science.

]]>
Validate Balanced Parenthesis using SQL https://towardsdatascience.com/validate-balanced-parenthesis-using-sql-5bb79732d772/ Wed, 04 Jan 2023 05:15:04 +0000 https://towardsdatascience.com/validate-balanced-parenthesis-using-sql-5bb79732d772/ Check the well-formed-ness of a string containing open and close parenthesis using just SQL

The post Validate Balanced Parenthesis using SQL appeared first on Towards Data Science.

]]>
Maximum Subarray Sum Using SQL https://towardsdatascience.com/maximum-subarray-sum-using-sql-e1befa75d055/ Fri, 23 Dec 2022 14:49:03 +0000 https://towardsdatascience.com/maximum-subarray-sum-using-sql-e1befa75d055/ How to implement a solution in a declarative query language

The post Maximum Subarray Sum Using SQL appeared first on Towards Data Science.

]]>
Adding Metadata to PyTorch Lite Models https://towardsdatascience.com/adding-metadata-to-pytorch-lite-models-4d6fa45a6354/ Wed, 17 Nov 2021 03:34:29 +0000 https://towardsdatascience.com/adding-metadata-to-pytorch-lite-models-4d6fa45a6354/ PyTorch allows you to associate additional metadata along with lite interpreter model files. This article explores how to add/retrieve...

The post Adding Metadata to PyTorch Lite Models appeared first on Towards Data Science.

]]>
Deep Learning on your phone: PyTorch Lite Interpreter for mobile platforms https://towardsdatascience.com/deep-learning-on-your-phone-pytorch-lite-interpreter-for-mobile-platforms-ae73d0b17eaa/ Fri, 12 Nov 2021 19:51:03 +0000 https://towardsdatascience.com/deep-learning-on-your-phone-pytorch-lite-interpreter-for-mobile-platforms-ae73d0b17eaa/ The PyTorch Deep Learning framework supports seamlessly running server trained CNN and other ML models on mobile devices. This article...

The post Deep Learning on your phone: PyTorch Lite Interpreter for mobile platforms appeared first on Towards Data Science.

]]>