<?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 Aayush Jaiswal on Medium]]></title>
        <description><![CDATA[Stories by Aayush Jaiswal on Medium]]></description>
        <link>https://medium.com/@jaiswalaayush6?source=rss-d8fba32f3066------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ZuwK0PcAicl-7pDj</url>
            <title>Stories by Aayush Jaiswal on Medium</title>
            <link>https://medium.com/@jaiswalaayush6?source=rss-d8fba32f3066------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 10:23:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jaiswalaayush6/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[Journey of Forecasting Models (ARIMA -> RNN → WaveNet -> Decoders / Transformers]]></title>
            <link>https://medium.com/@jaiswalaayush6/journey-of-forecasting-models-arima-rnn-wavenet-decoders-transformers-0a5d13539c7f?source=rss-d8fba32f3066------2</link>
            <guid isPermaLink="false">https://medium.com/p/0a5d13539c7f</guid>
            <category><![CDATA[timeseries]]></category>
            <category><![CDATA[wavenet]]></category>
            <category><![CDATA[forecasting-models]]></category>
            <category><![CDATA[rnn]]></category>
            <category><![CDATA[arima-model]]></category>
            <dc:creator><![CDATA[Aayush Jaiswal]]></dc:creator>
            <pubDate>Wed, 24 Jun 2026 14:28:19 GMT</pubDate>
            <atom:updated>2026-06-24T14:28:19.235Z</atom:updated>
            <content:encoded><![CDATA[<p>We have a well-known ARIMA (Auto regressive integrated moving average) Model Family that was introduced in 1970. Through out time there are various member of ARMA family, in which One widely used extension of ARIMA is SARIMA. It gives us one additional factor of seasonal component (seasonality) which result in significantly lower MAE when meaninful seasonality exist we got using naïve ARIMA model. Although Model is not perfect, it still beats naïve forecasting by larger margin on average.</p><p>It was always one of the major question how to pick good parameter for SARIMA model. There are several methods but the best way is to find through all combination i.e. brute force approach. And the lowest MAE wins.</p><p>With Time, Processing Sequence got much depth by the introduction of RNN and CNN. Traditional statistical models could process long sequences but relied on handcrafted assumptions about temporal relationships. but RNN can work on arbitrary lengths they can take sentences, documents, or audio samples as inputs but every models has their own limitation but comparing with baselines they prove to be very successful.</p><p>In Recurrent Neural Network the output at time step t is a function of all the inputs from previous time steps. We use t-1 time steps to predict next step, generally output at t is stored in some form of memory . A part of neural network that preserves some state across the time steps. A single recurrent neuron is a very basic cell capable of learning only short patterns. Now here’s the main question Can we find more different type of cell that are capable of learning longer patterns because longer the RNN’s state maintains the trace of its first input stronger will be prediction. In basic RNN we lost the trace after each next time steps.</p><p>Consider this as person started walking in maze garden by the time it finds the exist it has no trace of how it went.</p><p>And this leads to discovery of LSTM cells (1997). It can used very much like basic cell excep t it will detect longer term patterns in the data. The key idea is that the network can learn what to stores in the long term state and what to throw away. This explains why LSTM proved to performed better. There are several variants of LSTM cell. One of the popular variant is GRU cell (A recurrent cell architecture). This leads to one of promising architecture behind the success of RNN.</p><p>By the Introduction of CNN(letNet-5) and advancement in CNN(Alex-net). Learning the past patterns was also one of the major application of CNNs. Where each kernel learns to detect a single short sequential pattern. Which helps in the recognizing sequences of larger lengths. Wave-Net is one of the broad architecture specially designed on the top of CNN for raw audio generation, but its dilated causal convolutions were later adapted for time-series forecasting tasks. for forecasting model in 2016. One of the major concept used in wave-net is dilation rate i.e. how spread apart each neuron inputs are.</p><p>Next section I will try to cover the transformer models. TimesFM, chronos-2. how this helps in optimizing the MAE compare to the models we discussed so far.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0a5d13539c7f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PERSONALIZED RECOMMENDATION SYSTEM]]></title>
            <link>https://medium.com/@jaiswalaayush6/personalized-recommendation-system-e58ca997b60d?source=rss-d8fba32f3066------2</link>
            <guid isPermaLink="false">https://medium.com/p/e58ca997b60d</guid>
            <category><![CDATA[recommendation-system]]></category>
            <category><![CDATA[homepage-design]]></category>
            <category><![CDATA[scheduled-jobs]]></category>
            <category><![CDATA[personalized-data]]></category>
            <category><![CDATA[dynamodb]]></category>
            <dc:creator><![CDATA[Aayush Jaiswal]]></dc:creator>
            <pubDate>Sun, 24 Mar 2024 16:36:39 GMT</pubDate>
            <atom:updated>2024-07-17T08:49:00.162Z</atom:updated>
            <content:encoded><![CDATA[<p>OBJECTIVE : <br>To integrate user recommendation API on applications utilized by 1M users, based on the combination of static data and the data trained by machine learning algorithm</p><p>CONSTRAINTS :</p><ol><li>ML-based data provided by external API based on ranking.</li></ol><p>FUNCTIONAL REQUIREMENTS :</p><ol><li>Each user feed includes static data and ML-based data (Assume ML data is provided by external API).</li><li>User recommendation shouldn’t be fully dependent on external API. Considering the fact external API might go down.</li><li>Static data will be common to all users.</li><li>ML-based data will be specific to each user, which changes within the frequency of X days. (let X = 10 days then it means after 10 days ML-based data will change for each user. )</li></ol><p>NON-FUNCTIONAL REQUIREMENT :</p><ol><li>Availability: Every time, the user should be able to fetch his latest recommendation with no downtime.</li><li>Latency: Average latency should be less than 200 ms for the best customer experience.</li><li>Scalability: should be scalable.</li></ol><p>EXTENDED REQUIREMENT :</p><ol><li>How will the design be when ML-based data frequently changes in an interval of 1 hour?</li></ol><p>CAPACITY ESTIMATION :</p><p>Traffic Estimation: let&#39;s assume 5 lakh users are active in a day and for each user, 10 times calls to an API are made.</p><p>=&gt; Total Reads/s = (5*10⁵ *10)/ (24*60*60) = 58 reads/sec</p><p>As In X days(here X ≥ 1), ML data changes Hence we have to update each user&#39;s data in X days</p><p>Considering X = 1 :</p><p>=&gt; Total Writes/sec = (1*10⁶)/ (24*60*60) = 11 writes/sec</p><p>Storage Estimation: Each User has 10 recommendations, which utilizes</p><p>=&gt; 10 * (1 recommendation size) = 10 * 10B = 100B</p><p>=&gt; For 1M User, Total data = 1M * 100B = 0.1 GB</p><p>DATABASE SCHEMA :</p><p>Opting for the best database is challenging as we have to provide minimum latency. Here we are using Dynamo-DB which will store key-value pairs. Here key would be user-mobile-no and Value would be JSON data which will store all the product recommendation.</p><p>example :</p><pre>Key : {mobile-number}<br>Value : <br>{<br>  &quot;Total Slots&quot;: 10,<br>  &quot;recommendation&quot;: {<br>    [<br>    &quot;ProductCode&quot;: &quot;x1&quot;,<br>    &quot;ProductName&quot;:&quot;X1&quot; ,<br>    &quot;Ranking&quot; : 1<br>    ],<br>    [<br>    &quot;ProductCode&quot;: &quot;x2&quot;,<br>    &quot;ProductName&quot;:&quot;X2&quot; ,<br>    &quot;Ranking&quot; : 2<br>    ],<br>    [<br>    &quot;ProductCode&quot;: &quot;x3&quot;,<br>    &quot;ProductName&quot;:&quot;X3&quot; ,<br>    &quot;Ranking&quot; : 3<br>    ],<br>    [<br>    &quot;ProductCode&quot;: &quot;x4&quot;,<br>    &quot;ProductName&quot;:&quot;X4&quot; ,<br>    &quot;Ranking&quot; : 4<br>    ],<br>    ........<br>  },<br>}</pre><p>SYSTEM DESIGN :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*f4nlsNZhtW7tkeznfdnpPg.png" /></figure><p>In this we will cache the user recommendation in the dynamo-db by scheduling the cron jobs.</p><p>Every time a user requests data it will be fetched from the dynamo-db based on the user-mobile number.</p><p>CRON-JOB: A scheduler will be scheduled to fetch the data from the ML-based server. The combination of ML data and static data will be stored in the dynamo-db for each user. This helps to avoid the direct dependency on the 3rd party API. Hence when 3rd party Api is not working we still be able to fetch the latest user-recommendation with no downtime.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e58ca997b60d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>