<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Shivaram Cholleti on Medium]]></title>
        <description><![CDATA[Stories by Shivaram Cholleti on Medium]]></description>
        <link>https://medium.com/@shivaramcholleti?source=rss-e66bbd6ef6e2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*mTr_Arw4NM5qBRePsD-UPg.png</url>
            <title>Stories by Shivaram Cholleti on Medium</title>
            <link>https://medium.com/@shivaramcholleti?source=rss-e66bbd6ef6e2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 15:35:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shivaramcholleti/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Orchestrating ELT with Azure Data Factory and Databricks]]></title>
            <link>https://medium.com/@shivaramcholleti/orchestrating-elt-with-azure-data-factory-and-databricks-256c24044dc8?source=rss-e66bbd6ef6e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/256c24044dc8</guid>
            <dc:creator><![CDATA[Shivaram Cholleti]]></dc:creator>
            <pubDate>Wed, 29 Apr 2026 12:05:31 GMT</pubDate>
            <atom:updated>2026-04-29T12:05:31.729Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zhjr-WhEcxYKZgbI7gjHlw.png" /></figure><p>In contemporary data engineering, the transition from ETL (Extract, Transform, Load) to ELT (Extract, Load, Transform) has become a fundamental design principle. As data volumes reach petabyte scales and the demand for AI-ready datasets grows, the architecture must prioritize compute efficiency and decoupled orchestration. On the Microsoft Azure platform, the integration of <strong>Azure Data Factory (ADF)</strong> and <strong>Azure Databricks</strong> represents the most robust framework for realizing this objective</p><h3>The Strategic Shift to ELT</h3><p>The traditional ETL model often introduces bottlenecks by performing transformations in transit. Conversely, the ELT pattern leverages the high-performance compute of the destination environment, specifically the <strong>Data Lakehouse</strong>. By loading raw data directly into <strong>Azure Data Lake Storage (ADLS Gen2)</strong>, organisations preserve the fidelity of the original data while enabling flexible, downstream processing.</p><h3>The Role of Azure Data Factory: Enterprise Orchestration</h3><p>Azure Data Factory serves as the control plane. Its primary value lies in its extensive connectivity and managed orchestration capabilities:</p><ul><li><strong>Low-Code Ingestion:</strong> ADF simplifies the extraction of data from disparate sources, including on-premises SQL servers, SaaS applications, and multi-cloud environments.</li><li><strong>Event-Driven Pipelines:</strong> Utilizing triggers based on storage events or schedules ensures that the data flow remains synchronized with business operations.</li><li><strong>Operational Monitoring:</strong> ADF provides a centralized dashboard for lineage tracking and error handling, which is critical for maintaining enterprise-grade SLAs.</li></ul><h3>The Role of Azure Databricks: Distributed Computation</h3><p>While ADF excels at movement, Azure Databricks provides the specialized compute required for complex transformations. Powered by Apache Spark, it offers:</p><ul><li><strong>Optimized Spark Engine:</strong> Databricks handles large-scale transformations, such as window functions and complex joins, with significantly higher performance than standard integration runtimes.</li><li><strong>Delta Lake Integration:</strong> By utilizing Delta Lake, engineers can implement ACID transactions, ensuring data reliability and providing a structured “Medallion Architecture” (Bronze, Silver, and Gold layers).</li><li><strong>Scalability for AI:</strong> Beyond standard SQL transformations, Databricks enables the vectorization of data and the preparation of feature stores for machine learning models.</li></ul><p>By leveraging ADF for orchestration and Databricks for transformation, engineers create a decoupled architecture. This separation allows for independent scaling of data ingestion and data processing, optimizing both cost and performance. In the current landscape, this “Power Couple” remains the industry standard for building resilient, future-proof data platforms.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=256c24044dc8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why the “Modern Data Stack” is Evolving into the “AI-Ready Stack” in 2026]]></title>
            <link>https://medium.com/towards-data-engineering/why-the-modern-data-stack-is-evolving-into-the-ai-ready-stack-in-2026-11470d8012da?source=rss-e66bbd6ef6e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/11470d8012da</guid>
            <dc:creator><![CDATA[Shivaram Cholleti]]></dc:creator>
            <pubDate>Tue, 28 Apr 2026 03:36:16 GMT</pubDate>
            <atom:updated>2026-04-28T03:36:16.042Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oErtnuSguZ9tsP3plrUkUw.png" /></figure><p>Remember when a “Modern Data Stack” just meant having a cloud warehouse and some clean tables? That was 2022. Today, in 2026, “clean data” is just the entry fee. To stay competitive, companies are shifting toward the <strong>AI-Ready Stack</strong>.</p><p><strong>The Shift:</strong></p><p>Traditionally, we built pipelines for dashboards. Now, we build pipelines for <strong>LLMs (Large Language Models)</strong> and <strong>RAG (Retrieval-Augmented Generation)</strong>. The architecture has changed:</p><ul><li><strong>From Structured to Everything:</strong> We aren’t just moving SQL rows anymore. We are processing PDFs, audio, and images into <strong>Vector Databases</strong> so AI can “read” them.</li><li><strong>From Batch to “Right-Time”:</strong> AI needs fresh context. A dashboard that updates once a day is fine; a customer service AI that doesn’t know what happened 10 minutes ago is a failure.</li><li><strong>Data Quality as a Product:</strong> In the past, a “null” value just broke a bar chart. Today, bad data “hallucinates” an AI response, which can lead to legal or financial risks.</li></ul><p><strong>The Azure Perspective:</strong></p><p>On Azure, this evolution is happening through the deep integration of <strong>Azure Databricks</strong>, <strong>OneLake</strong>, and <strong>Azure AI Search</strong>. We are moving away from siloed data and toward a unified fabric where data engineering and AI engineering are two sides of the same coin.</p><p><strong>Key Takeaway for 2026:</strong></p><p>If your data isn’t discoverable, governed, and vectorized, it isn’t “AI-ready.” As Data Engineers, our job has shifted from being “Plumbers” to being “Foundational Architects” for the AI era.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11470d8012da" width="1" height="1" alt=""><hr><p><a href="https://medium.com/towards-data-engineering/why-the-modern-data-stack-is-evolving-into-the-ai-ready-stack-in-2026-11470d8012da">Why the “Modern Data Stack” is Evolving into the “AI-Ready Stack” in 2026</a> was originally published in <a href="https://medium.com/towards-data-engineering">Towards Data Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Tackle Class Imbalance in ML: A Practical Guide with Code Examples]]></title>
            <link>https://medium.com/@shivaramcholleti/how-to-tackle-class-imbalance-in-ml-a-practical-guide-with-code-examples-532b86340117?source=rss-e66bbd6ef6e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/532b86340117</guid>
            <category><![CDATA[imbalanced-data]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Shivaram Cholleti]]></dc:creator>
            <pubDate>Fri, 04 Apr 2025 09:52:24 GMT</pubDate>
            <atom:updated>2025-04-04T09:52:45.848Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8hnaDBdjJpaWr2CryLAFzQ.png" /></figure><p><strong>Checklist to Handle Imbalanced Data</strong> in Machine Learning — with explanations, strategies, and when to use each. You can keep this as your <strong>go-to guide</strong> anytime you detect class imbalance.</p><ol><li>Analyze the Class Distribution</li><li>Use Stratified Splits</li><li>Choose the Right Evaluation Metrics</li><li>Resampling Techniques</li><li>Use Class Weights in Your Model</li><li>Threshold Tuning</li><li>Use Advanced Models Built for Imbalance</li><li>Cross-Validation with Stratified Folds</li><li><strong>Analyze the Class Distribution</strong></li></ol><pre>from collections import Counter<br>print(Counter(y))  # e.g., Counter({0: 950, 1: 50})</pre><ul><li>If minority class is &lt;10–15% → <strong>imbalance is significant</strong></li><li><strong>Plot it</strong> using seaborn or matplotlib to visualize</li></ul><p><strong>2. Use Stratified Splits</strong></p><p>Ensures both classes are proportionally represented in train/test splits.</p><pre>from sklearn.model_selection import train_test_split<br>X_train, X_test, y_train, y_test = train_test_split(X, y, stratify=y, test_size=0.2)</pre><p><strong>3.</strong> <strong>Choose the Right Evaluation Metrics</strong></p><ul><li>Precision: For minimizing false positives</li><li>Recall: For minimizing false negatives (important in medical/fraud)</li><li>F1 Score<strong>: </strong>Balance between precision and recall</li><li>AUC-ROC: Measures ability to distinguish classes</li><li>Confusion Matrix: Clear breakdown of TP, FP, FN, TN</li></ul><p><strong>4. Resampling Techniques</strong></p><pre>#Oversampling (add more of the minority class) <br>#SMOTE, ADASYN or Simple duplication<br>from imblearn.over_sampling import SMOTE<br>X_resampled, y_resampled = SMOTE().fit_resample(X_train, y_train)<br><br><br>#Undersampling (remove some majority class samples)<br>from imblearn.under_sampling import RandomUnderSampler<br>X_resampled, y_resampled = RandomUnderSampler().fit_resample(X_train, y_train)<br><br><br>#Combined Sampling (SMOTEENN / SMOTETomek)<br>from imblearn.combine import SMOTEENN<br>X_resampled, y_resampled = SMOTEENN().fit_resample(X_train, y_train)</pre><p><strong>5. Use Class Weights in Your Model</strong></p><p>Many ML algorithms support <strong>class_weight=&#39;balanced&#39;</strong>, which penalizes the model more for misclassifying minority class.</p><p><em>Examples:</em></p><pre>#Logistic Regression<br>from sklearn.linear_model import LogisticRegression<br>model = LogisticRegression(class_weight=&#39;balanced&#39;)<br><br>#Random Forest<br>from sklearn.ensemble import RandomForestClassifier<br>model = RandomForestClassifier(class_weight=&#39;balanced&#39;)<br><br>#XGBoost<br>from xgboost import XGBClassifier<br>model = XGBClassifier(scale_pos_weight=majority/minority)</pre><h4>6. Threshold Tuning</h4><p>After model outputs probabilities, tune the threshold to optimize F1, recall, or a business metric.</p><pre>y_pred = (model.predict_proba(X_test)[:,1] &gt;= best_threshold).astype(int)</pre><h4>7. Use Advanced Models Built for Imbalance</h4><ul><li><strong>LightGBM</strong> and <strong>XGBoost</strong> have great built-in support for imbalance.</li><li>Some libraries, like <strong>imbalanced-learn,</strong> are designed just for this.</li></ul><p><strong>8. Cross-Validation with Stratified Folds</strong></p><ul><li>Ensures each fold has <strong>representative samples</strong> of all classes</li></ul><pre>from sklearn.model_selection import StratifiedKFold<br>skf = StratifiedKFold(n_splits=5)</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=532b86340117" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Filling the Gaps: A Deep Dive into Data Imputation Techniques]]></title>
            <link>https://medium.com/@shivaramcholleti/filling-the-gaps-a-deep-dive-into-data-imputation-techniques-084c4b473c44?source=rss-e66bbd6ef6e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/084c4b473c44</guid>
            <category><![CDATA[null-value]]></category>
            <category><![CDATA[data-imputation]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Shivaram Cholleti]]></dc:creator>
            <pubDate>Tue, 25 Mar 2025 16:57:19 GMT</pubDate>
            <atom:updated>2025-03-25T16:57:19.928Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ewMJaAU7BwRQS56f" /></figure><h3>Overview of Imputation</h3><p>In real-world datasets, missing values are almost inevitable. Whether due to data entry errors, transmission losses, or unavailable information, these gaps can disrupt analysis and model performance.</p><p><strong>Data imputation</strong> involves estimating and replacing missing values, allowing models to learn more effectively from complete datasets. Choosing the right imputation strategy is crucial, as it can significantly influence the accuracy and validity of your results.</p><h3>Common Imputation Techniques</h3><h4>1. Simple Imputation Methods</h4><p><strong>Mean/Median Imputation</strong><br>Replacing missing values with the mean or median of the column is a straightforward and fast solution.</p><pre># Mean imputation<br>df[&#39;column&#39;].fillna(df[&#39;column&#39;].mean(), inplace=True)<br><br># Median imputation<br>df[&#39;column&#39;].fillna(df[&#39;column&#39;].median(), inplace=True)</pre><ul><li>Pros: Easy to implement, computationally efficient</li><li>Cons: Can reduce variability and introduce bias, especially if data is not missing at random</li></ul><p><strong>Mode Imputation</strong><br> Most appropriate for categorical features.</p><pre># For categoripcal variables<br>df[&#39;categorical_column&#39;].fillna(df[&#39;categorical_column&#39;].mode()[0], inplace=True)</pre><ul><li>Pros: Maintains the most frequent category</li><li>Cons: Can skew the distribution if the mode is overly dominant</li></ul><h4>2. Advanced Imputation Methods</h4><p><strong>Regression Imputation</strong><br>Predicts missing values using a regression model trained on the available data.</p><pre>from sklearn.linear_model import LinearRegression<br><br>def regression_imputation(df, column_to_impute):<br>    df_known = df[df[column_to_impute].notna()]<br>    df_unknown = df[df[column_to_impute].isna()]<br>    features = [col for col in df.columns if col != column_to_impute]<br>    model = LinearRegression()<br>    model.fit(df_known[features], df_known[column_to_impute])<br>    imputed_values = model.predict(df_unknown[features])<br>    return imputed_values</pre><ul><li>Pros: Captures relationships between variables</li><li>Cons: Assumes linearity, sensitive to multicollinearity</li></ul><p><strong>Multiple Imputation</strong><br>Creates several imputed datasets to better reflect uncertainty in missing values.</p><pre>from sklearn.experimental import enable_iterative_imputer<br>from sklearn.impute import IterativeImputer<br><br>imputer = IterativeImputer(max_iter=10, random_state=0)<br>df_imputed = imputer.fit_transform(df)</pre><ul><li>Pros: More statistically sound, handles uncertainty</li><li>Cons: Computationally intensive</li></ul><h3>KNN Imputation Challenges</h3><h4>Why KNN Imputation Can Be Slow</h4><p>K-Nearest Neighbors (KNN) imputation works by finding the closest data points and averaging their values, but it can be computationally expensive due to:</p><ol><li><strong>High complexity</strong>: Every point requires distance computation against all others (O(n²) or worse)</li><li><strong>Multiple dimensions</strong>: Distance calculations become costlier as the number of features increases</li><li>KNN imputation becomes extremely slow with:</li></ol><ul><li>Large datasets (&gt;10,000 rows)</li><li>High-dimensional data</li><li>Many missing values</li></ul><pre>from sklearn.impute import KNNImputer<br><br>imputer = KNNImputer(n_neighbors=5)<br>df_imputed = imputer.fit_transform(df)</pre><h4>Improving KNN Imputation Performance</h4><p><strong>Dimensionality Reduction</strong></p><pre>from sklearn.decomposition import PCA<br><br>pca = PCA(n_components=10)<br>df_reduced = pca.fit_transform(df)<br><br>imputer = KNNImputer(n_neighbors=5)<br>df_imputed = imputer.fit_transform(df_reduced)</pre><p>Sampling</p><pre>df_sample = df.sample(n=1000, random_state=42)<br>imputer = KNNImputer(n_neighbors=5)<br>df_imputed_sample = imputer.fit_transform(df_sample)</pre><p><strong>Other Optimization Techniques</strong></p><ul><li>Use approximate nearest neighbors algorithms</li><li>Implement hybrid or probabilistic imputation techniques</li><li>Leverage GPU acceleration with tools like RAPIDS</li></ul><h3>Best Practices</h3><ol><li><strong>Understand Your Data</strong></li></ol><ul><li>Identify the pattern of missingness (random, systematic)</li><li>Use domain knowledge to guide your choices</li></ul><p><strong>2. Evaluate Imputation Quality</strong></p><ul><li>Compare distributions pre- and post-imputation</li><li>Validate with cross-validation</li><li>Track model performance changes</li></ul><h3>Recommendations for Large Datasets</h3><ul><li>Prefer simpler imputation methods like median or mode when resources are limited</li><li>Apply dimensionality reduction before heavy computations</li><li>Sample your data when full-set computation is infeasible</li><li>Consider scalable libraries and parallelized workflows</li></ul><p>This guide offers a practical overview of imputation strategies, from the simplest methods to advanced machine learning-based techniques.</p><p>Choosing the right imputation method can elevate model performance and preserve data integrity, especially when working with real-world datasets that are rarely perfect.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=084c4b473c44" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Predicting Delivery Time in Intra-City Logistics Using Neural Networks]]></title>
            <link>https://medium.com/@shivaramcholleti/predicting-delivery-time-in-intra-city-logistics-using-neural-networks-dd7b7ed7147a?source=rss-e66bbd6ef6e2------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd7b7ed7147a</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[neural-networks]]></category>
            <dc:creator><![CDATA[Shivaram Cholleti]]></dc:creator>
            <pubDate>Tue, 25 Mar 2025 10:48:28 GMT</pubDate>
            <atom:updated>2025-03-25T11:06:38.524Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Generated by AI" src="https://cdn-images-1.medium.com/max/1024/0*H4lithQYep0VWn6W" /><figcaption>Generated by AI</figcaption></figure><p><a href="https://www.kaggle.com/code/ranitsarkar01/porter-delivery/input">click here for the dataset</a></p><p><a href="https://github.com/srctech/Porter-Delivery-Time-Estimation">click here for the github link</a></p><p>Porter, India’s leading intra-city logistics marketplace, has built a robust platform to deliver food and other goods with the help of over 150,000 driver-partners. With more than five million customers served, efficient and timely deliveries are critical to maintaining service quality.</p><p>The dataset used in this project consists of over 190,000 delivery records, each containing information about the order, the restaurant, pricing, delivery partner availability, and timestamps. The goal is to build a regression model to predict the delivery time for a given order.</p><h4>Understanding the Dataset</h4><p>The dataset includes the following features:</p><ul><li>created_at and actual_delivery_time (timestamps)</li><li>store_primary_category, order_protocol, market_id (categorical attributes)</li><li>Order-level details such as subtotal, total_items, num_distinct_items, min_item_price, and max_item_price</li><li>Operational metrics like total_onshift_partners, total_busy_partners, and total_outstanding_orders</li></ul><h4>Feature Engineering</h4><p>The target variable is the delivery time in minutes, calculated from the actual_delivery_time and created_at timestamps. Additional features extracted include the hour and day of the week from the order timestamp. These temporal features help capture patterns related to time-based fluctuations in delivery duration.</p><h4>Data Cleaning and Null Handling</h4><p>The dataset contains missing values in several columns, especially in operational metrics. Median imputation was used for numerical columns while missing categorical values were filled with “unknown.” Rows with missing delivery timestamps were excluded.</p><h4>Outlier Detection and Removal</h4><p>Distributions of key numerical features revealed significant skewness and the presence of outliers. The Interquartile Range (IQR) method was applied to remove outliers from features like delivery_time_mins, subtotal, and item prices. This step helped reduce noise and improve model stability.</p><h4>Preparing the Data for Modeling</h4><p>Categorical features were one-hot encoded, and numerical features were standardized using StandardScaler. The dataset was then split into training and testing subsets using an 80-20 ratio.</p><h4>Neural Network Architecture</h4><p>A simple feedforward neural network was implemented using TensorFlow and Keras. The architecture included:</p><ul><li>Input layer matching the number of processed features</li><li>Two hidden layers with <strong>64 </strong>and <strong>32 </strong>neurons respectively, using <strong>ReLU </strong>activation</li><li>Output layer with a single neuron for regression output</li></ul><p>The model was trained using <strong>Mean Squared Error</strong> (MSE) as the loss function and <strong>Mean Absolute Error </strong>(MAE) as an evaluation metric.</p><h4>Model Evaluation</h4><p>After training for <strong>20 epochs</strong>, the model achieved reasonable prediction accuracy. Evaluation metrics such as <strong>MSE</strong>, <strong>RMSE</strong>, and <strong>MAE </strong>were used to assess performance on the test set. The loss curves showed convergence, indicating stable learning behaviour.</p><h4>Conclusion and Future Work</h4><p>This project demonstrates how historical delivery and operational data can be used to predict delivery times in a real-world logistics setting.</p><p>External features like geolocation, traffic conditions, and weather could improve prediction accuracy. Exploring other regression techniques, such as gradient boosting or ensemble models, may also yield performance gains.</p><p>The neural network approach provided a baseline solution and highlighted the importance of data preprocessing and feature engineering in building effective predictive models in logistics.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd7b7ed7147a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>