<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: rasi321</title>
    <description>The latest articles on DEV Community by rasi321 (@rasi321).</description>
    <link>https://dev.to/rasi321</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3704152%2Fdd604340-e6ed-4556-899b-315eff7f90dc.png</url>
      <title>DEV Community: rasi321</title>
      <link>https://dev.to/rasi321</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rasi321"/>
    <language>en</language>
    <item>
      <title>DriftGuard: Catching Data Drift Early with PSI and Amazon SageMaker</title>
      <dc:creator>rasi321</dc:creator>
      <pubDate>Tue, 20 Oct 2026 11:01:10 +0000</pubDate>
      <link>https://dev.to/rasi321/driftguard-catching-data-drift-early-with-psi-and-amazon-sagemaker-4dnm</link>
      <guid>https://dev.to/rasi321/driftguard-catching-data-drift-early-with-psi-and-amazon-sagemaker-4dnm</guid>
      <description>&lt;p&gt;A hands-on MLOps mini-project using Python, scikit-learn and the Population Stability Index&lt;/p&gt;

&lt;p&gt;A model that performs well on launch day can quietly get worse as the real world changes. The inputs it sees in production slowly stop looking like the data it was trained on. This is called &lt;strong&gt;data drift&lt;/strong&gt;, and it is one of the most common reasons deployed models fail.&lt;/p&gt;

&lt;p&gt;In this post I walk through &lt;strong&gt;DriftGuard&lt;/strong&gt;, a small project I built in an AWS SageMaker. It trains a model, simulates shifted production data, and uses the &lt;strong&gt;Population Stability Index (PSI)&lt;/strong&gt; to detect drift. The full code is on GitHub: &lt;a href="https://github.com/RashiTiwari12/" rel="noopener noreferrer"&gt;https://github.com/RashiTiwari12/&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What is data drift?
&lt;/h2&gt;

&lt;p&gt;When you train a model, it learns patterns from a specific data distribution. If the data it receives in production looks different (customers behave differently, a sensor changes, a new region is added), predictions can degrade even though the model itself has not changed.&lt;/p&gt;

&lt;p&gt;Monitoring for drift means comparing production data against a &lt;strong&gt;baseline&lt;/strong&gt;, usually the training data.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is PSI?
&lt;/h2&gt;

&lt;p&gt;The Population Stability Index measures how much a variable's distribution has shifted between two samples. You split the baseline into bins, compare the share of data in each bin for the baseline and for new data, and combine the differences into a single score.&lt;/p&gt;

&lt;p&gt;A common rule of thumb:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Below 0.10&lt;/strong&gt;: no significant change&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;0.10 to 0.20&lt;/strong&gt;: moderate shift, keep an eye on it&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;0.20 or higher&lt;/strong&gt;: significant drift&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These thresholds are guidelines, not universal rules.&lt;/p&gt;

&lt;h2&gt;
  
  
  The workflow
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Train model -&amp;gt; create baseline -&amp;gt; simulate shifted data -&amp;gt; calculate PSI -&amp;gt; save report -&amp;gt; optional S3 upload
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;1. Set up SageMaker.&lt;/strong&gt; I created a notebook instance in &lt;code&gt;us-east-1&lt;/code&gt;, opened JupyterLab and used a &lt;code&gt;conda_python3&lt;/code&gt; notebook with scikit-learn, pandas, NumPy and boto3.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Train a model.&lt;/strong&gt; I generated synthetic data with three features and trained a &lt;code&gt;LinearRegression&lt;/code&gt; model, saving it with &lt;code&gt;pickle&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Create the baseline and production data.&lt;/strong&gt; The baseline is the training data. For production, I generated fresh data and deliberately shifted &lt;code&gt;feature_1&lt;/code&gt; upward.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Calculate PSI.&lt;/strong&gt; I bin each feature using quantiles from the baseline, compare the proportions in the production data, and apply the PSI formula. A tiny epsilon value prevents division by zero when a bin is empty.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;calculate_psi&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;expected&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;actual&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;bins&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;expected&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;asarray&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;expected&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dtype&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nb"&gt;float&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;actual&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;asarray&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;actual&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dtype&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nb"&gt;float&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;edges&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;unique&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;quantile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;expected&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;linspace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;bins&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)))&lt;/span&gt;
    &lt;span class="n"&gt;edges&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;edges&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;inf&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;inf&lt;/span&gt;
    &lt;span class="n"&gt;e_pct&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;clip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;histogram&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;expected&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;bins&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;edges&lt;/span&gt;&lt;span class="p"&gt;)[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="nf"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;expected&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="mf"&gt;1e-6&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;a_pct&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;clip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;histogram&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;actual&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;bins&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;edges&lt;/span&gt;&lt;span class="p"&gt;)[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="nf"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;actual&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="mf"&gt;1e-6&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;float&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="n"&gt;a_pct&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;e_pct&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a_pct&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;e_pct&lt;/span&gt;&lt;span class="p"&gt;)))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;5. Save the report.&lt;/strong&gt; Results are written to a CSV, with an optional upload to Amazon S3 (my restricted lab role may block this, so the script handles failures gracefully).&lt;/p&gt;

&lt;h2&gt;
  
  
  Results
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;feature&lt;/th&gt;
&lt;th&gt;PSI&lt;/th&gt;
&lt;th&gt;status&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;feature_1&lt;/td&gt;
&lt;td&gt;8.1939&lt;/td&gt;
&lt;td&gt;Drift detected&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;feature_2&lt;/td&gt;
&lt;td&gt;0.2051&lt;/td&gt;
&lt;td&gt;Drift detected&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;feature_3&lt;/td&gt;
&lt;td&gt;0.0855&lt;/td&gt;
&lt;td&gt;Below threshold&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The deliberately shifted &lt;code&gt;feature_1&lt;/code&gt; was flagged by a huge margin, exactly as expected.&lt;/p&gt;

&lt;p&gt;The interesting part is &lt;code&gt;feature_2&lt;/code&gt;. I did not shift it, yet it just crossed the 0.20 threshold. The cause is sample size: with only 100 rows, random variation alone can create a noticeable PSI. This taught me an important lesson: &lt;strong&gt;drift metrics need enough data to be trustworthy&lt;/strong&gt;, and a single threshold should not be treated as absolute truth. In production I would use larger windows and combine PSI with other statistical tests.&lt;/p&gt;

&lt;h2&gt;
  
  
  Limitations
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The model is a regression on synthetic data, not a real churn classifier.&lt;/li&gt;
&lt;li&gt;It only checks input drift, not concept drift or model accuracy.&lt;/li&gt;
&lt;li&gt;Small samples make PSI noisy.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I would do next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Use a real churn dataset with a classifier&lt;/li&gt;
&lt;li&gt;Schedule monitoring with SageMaker Model Monitor&lt;/li&gt;
&lt;li&gt;Add KS-test or Jensen-Shannon distance alongside PSI&lt;/li&gt;
&lt;li&gt;Trigger alerts or retraining when drift is detected&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Key takeaways
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Models need monitoring after deployment, not just before.&lt;/li&gt;
&lt;li&gt;PSI is a simple, interpretable way to quantify distribution shift.&lt;/li&gt;
&lt;li&gt;Thresholds are guidelines, and sample size matters.&lt;/li&gt;
&lt;li&gt;You can build a useful drift check with plain Python before reaching for managed tooling.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Built a PSI-based data drift detector on AWS SageMaker with Python and scikit-learn.&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2mw2lg8ptq5uoyb8h0sf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2mw2lg8ptq5uoyb8h0sf.png" alt=" " width="799" height="401"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fflsemvt04f6e0ino7xvx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fflsemvt04f6e0ino7xvx.png" alt=" " width="800" height="509"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbyyusp9bw4h8ow9e1uwc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbyyusp9bw4h8ow9e1uwc.png" alt=" " width="800" height="494"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdgeoq4gj0yjk75nwedxs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdgeoq4gj0yjk75nwedxs.png" alt=" " width="800" height="467"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>machinelearning</category>
      <category>python</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>ChurnWatch - MLOps Data Drift Monitoring</title>
      <dc:creator>rasi321</dc:creator>
      <pubDate>Tue, 13 Oct 2026 09:52:05 +0000</pubDate>
      <link>https://dev.to/rasi321/churnwatch-mlops-data-drift-monitoring-2g7o</link>
      <guid>https://dev.to/rasi321/churnwatch-mlops-data-drift-monitoring-2g7o</guid>
      <description>&lt;p&gt;Machine Learning models can perform well when they are trained, but that does not means the input data will remain the same over time.&lt;/p&gt;

&lt;p&gt;As real world data changes, a model can receive data that looks very different from the data it was trained on. This is known as data drift.&lt;/p&gt;

&lt;p&gt;For this Project, I built ChurnWatch, a small MLOps project using AWS to demonstrate how data drift can be monitored after model training.&lt;/p&gt;

&lt;p&gt;The Goal &lt;br&gt;
Train a model -&amp;gt; compare new data with training data -&amp;gt; detect drift -&amp;gt; monitor the result.&lt;/p&gt;

&lt;p&gt;The Problem&lt;br&gt;
A company may train a model using historical customer information to predict whether a customer is likely to leave the service.&lt;br&gt;
Overtime, customer may spend more or less than before &lt;br&gt;
customers may spend more or less than before&lt;br&gt;
the average number of support calls may change&lt;br&gt;
overall customer data may change&lt;/p&gt;

&lt;p&gt;Even if model itself has not changed, the data going into it may no longer resemble the data used during training and this affects model reliability. ChurnWatch focuses on detecting this change.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;S3 is used to train the churn prediction model&lt;/li&gt;
&lt;li&gt;Sagemaker is used to train the churn prediction model&lt;/li&gt;
&lt;li&gt;A python based drift detection script compares the baseline training dara with stimulated production data using Population Stability Index (PSI)&lt;/li&gt;
&lt;li&gt;The resulting drift value is published to CloudWatch so that it can be monitored.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The dataset is divided into a baseline/training dataset and simulated production dataset&lt;/p&gt;

&lt;p&gt;The production dataset is intentionally generated with changed feature distributions so that the monitoring system has an actual drift scenario to detect.&lt;/p&gt;

&lt;p&gt;Training the model&lt;br&gt;
The first step is training a simple churn prediction model using Amazon Sagemaker.&lt;br&gt;
The training data is stored in Amazon S3, and Sagemaker trains the machine learning model using the historical customer data.&lt;/p&gt;

&lt;p&gt;Detecting Data Drift&lt;br&gt;
For drift detection, ChurnWatch uses Population Stability Index (PSI)&lt;br&gt;
PSI compares the distribution of a feature in the baseline dataset &lt;br&gt;
and new dataset.&lt;/p&gt;

&lt;p&gt;A simplified interpretation is:&lt;/p&gt;

&lt;p&gt;PSI &amp;lt; 0.10 -little or no significant change&lt;br&gt;
0.20 - significant drift&lt;/p&gt;

&lt;p&gt;For the experiment, production data was intentionally generated with different distributions.&lt;br&gt;
The drift detection script calculates PSI for the selected features and identifies the maximum drift value.&lt;/p&gt;

&lt;p&gt;for example :&lt;br&gt;
Maximum PSI:0.xx&lt;br&gt;
Threshold : 0.2&lt;br&gt;
Result: Drift detected&lt;/p&gt;

&lt;p&gt;The exact value depends on the generated production dataset.&lt;/p&gt;

&lt;p&gt;Monitoring with CloudWatch&lt;br&gt;
Once the drift calculation is complete, the resulting metric is published to Amazon CloudWatch&lt;br&gt;
this provides a simple monitoring layer for the ML workflow, instead of manually checking the drift every time, the drift value can be viewed as a CloudWatch metric&lt;/p&gt;

&lt;p&gt;What I learned &lt;br&gt;
This Project helped me understand aan important difference between building an ML model and operating an ML system.&lt;br&gt;
Training a model is only one part of the lifecycle, once a model is used with real-world data, the data itself needs to be monitored.&lt;br&gt;
With ChurnWtach , I implemented a small workflow covering:&lt;br&gt;
Dataset management with Amazon S3&lt;br&gt;
Model training with Amazon Sagemaker&lt;br&gt;
Data drift detection using PSI&lt;br&gt;
Metric monitoring with CloudWatch&lt;/p&gt;

&lt;p&gt;A model can remain unchanged while data around it changes&lt;br&gt;
Monitoring that change is an important part of maintaining machine learning systems in production.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>devops</category>
      <category>machinelearning</category>
      <category>monitoring</category>
    </item>
    <item>
      <title>Getting Started with MLOps: ML models and Amazon Sagemaker</title>
      <dc:creator>rasi321</dc:creator>
      <pubDate>Mon, 12 Oct 2026 14:16:09 +0000</pubDate>
      <link>https://dev.to/rasi321/getting-started-with-mlops-ml-models-and-amazon-sagemaker-5ejo</link>
      <guid>https://dev.to/rasi321/getting-started-with-mlops-ml-models-and-amazon-sagemaker-5ejo</guid>
      <description>&lt;p&gt;A machine learning model is more than just training an algorithm on data.&lt;/p&gt;

&lt;p&gt;Once a model is trained, how do we deploy it, make predictions, monitor its performance, and update it when needed?&lt;/p&gt;

&lt;p&gt;This is where MLOps comes in:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Machine Learning: Building  and training models using data.&lt;/li&gt;
&lt;li&gt;MLOps: Managing the ML lifecycle, from expermientation and training to deployment and monitoring&lt;/li&gt;
&lt;li&gt;Amazon Sagemaker: Amazon Sagemaker is an AWS machine learning service that provides tools and infrastructure to build, train, deploy, and manage ML models&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A simple way to understand the workflow:&lt;/p&gt;

&lt;p&gt;Data -&amp;gt; Model training -&amp;gt; Model Evaluation -&amp;gt; Deployment -&amp;gt; Monitoring&lt;/p&gt;

&lt;p&gt;I am starting by exploring the fundamental of MLOps and how Amazon Sagemaker helps take ML models from experimentation to production.&lt;/p&gt;

</description>
      <category>automation</category>
      <category>aws</category>
      <category>machinelearning</category>
    </item>
  </channel>
</rss>
