<?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 Kavinrajagopal on Medium]]></title>
        <description><![CDATA[Stories by Kavinrajagopal on Medium]]></description>
        <link>https://medium.com/@kavinrajagopal99?source=rss-4b32e9d131d6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*tPi2KZbXl1SgKarclqzBGw.jpeg</url>
            <title>Stories by Kavinrajagopal on Medium</title>
            <link>https://medium.com/@kavinrajagopal99?source=rss-4b32e9d131d6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 15:28:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kavinrajagopal99/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[Code Llama — A Comprehensive Overview]]></title>
            <link>https://medium.com/@kavinrajagopal99/code-llama-a-comprehensive-overview-1df8377bdb23?source=rss-4b32e9d131d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/1df8377bdb23</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Kavinrajagopal]]></dc:creator>
            <pubDate>Sat, 02 Sep 2023 06:34:01 GMT</pubDate>
            <atom:updated>2023-09-02T06:55:14.472Z</atom:updated>
            <content:encoded><![CDATA[<h3>Code Llama — A Comprehensive Overview</h3><p><strong>On August 24th, META released Code Llama</strong>, an AI model built on top of <strong>Llama 2</strong> for generating and discussing code. This model is available under the same community license as Llama 2, making it free for both commercial and research use.</p><p>While many tech giants have jealously guarded the <strong>“secret sauce”</strong> behind their Large Language Models (LLMs), Meta took a different approach. They chose not only to share the code behind their groundbreaking Llama 2 model but also followed up with the release of Code Llama.<strong> Mark Zuckerberg, CEO of Meta</strong>, emphasized the importance of open sourcing in a Facebook post, stating, “Open source drives innovation because it enables many more developers to build with new technology. It also improves safety and security because when software is open, more people can scrutinize it to identify and fix potential issues.”</p><p>Conversely, there’s a growing concern among technologists about the potential risks of highly intelligent AI. There are fears of hypothetical doomsday scenarios where an AI could surpass human intelligence, leading to catastrophic outcomes such as the release of a biological super weapon or other unimaginable chaos. Addressing this, <strong>OpenAI’s co-founder, Ilya Sutskever</strong>, commented to The Verge earlier this year, stating that his company had been “flat-out wrong” in their previous open approach. He warned of the dangers of sharing details about highly advanced models, particularly if we ever reach the stage of <strong>Artificial General Intelligence (AGI).</strong></p><p>Now, let’s dive into the secret sauce…</p><p><strong>Overview of the training pipeline:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mN7-Yfea4CCofZeiByPLmg.jpeg" /><figcaption>Training pipeline for Code Llama (<a href="https://scontent-sjc3-1.xx.fbcdn.net/v/t39.2365-6/369856151_1754812304950972_1159666448927483931_n.pdf?_nc_cat=107&amp;ccb=1-7&amp;_nc_sid=3c67a6&amp;_nc_ohc=iesJ_XhfbKUAX8GEGZw&amp;_nc_ht=scontent-sjc3-1.xx&amp;oh=00_AfCTWNWN1Hyio7Ezw6GWi9OuQunoBJv1GeELi4LmkKcLVQ&amp;oe=64F6954F">Source</a>)</figcaption></figure><p><strong>The initial set-up and Base training (Base Training ) — Step 1</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*ohLmHCweFkls7VbAaugT_g.jpeg" /></figure><p><strong>Starting Point:</strong></p><p>The approach follows code training from foundational models (Llama 2) similar to Codex (Chen et al., 2021)</p><p><strong>Dataset :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fbitqaavp6c_PVDA89Ycmg.jpeg" /><figcaption>Overview of initial training data for code Llama (<a href="https://scontent-sjc3-1.xx.fbcdn.net/v/t39.2365-6/369856151_1754812304950972_1159666448927483931_n.pdf?_nc_cat=107&amp;ccb=1-7&amp;_nc_sid=3c67a6&amp;_nc_ohc=iesJ_XhfbKUAX8GEGZw&amp;_nc_ht=scontent-sjc3-1.xx&amp;oh=00_AfCTWNWN1Hyio7Ezw6GWi9OuQunoBJv1GeELi4LmkKcLVQ&amp;oe=64F6954F">source</a>)</figcaption></figure><p>Code Llama is predominantly trained on a near-deduplicated dataset of publicly available code consisting of 500 Billion tokens in the initial phase. The dataset also contains 8% of samples from natural language datasets related to code. The dataset also contains 7% of code on general Natural language data this is done for the model to retain its Natural Language understanding capabilities.</p><p><strong>Tokenizer:</strong></p><p>The data is tokenized using Byte Pair Encoding (BPE, Senrich et. al, 2016) similar to Llama and Llama 2.</p><p>Quick overview of BPE (Intuition):</p><h3>Concepts related to BPE:</h3><ul><li><strong>Vocabulary: </strong>A set of subword units that can be used to represent a text corpus.</li><li><strong>Byte:</strong> A unit of digital information that typically consists of eight bits.</li><li><strong>Character:</strong> A symbol that represents a written or printed letter or numeral.</li><li><strong>Frequency:</strong> The number of times a byte or character occurs in a text corpus.</li><li><strong>Merge:</strong> The process of combining two consecutive bytes or characters to create a new subword unit.</li></ul><p>Suppose we have a string</p><pre>aaabdaaabac</pre><p>The byte pair ‘aa’ occurs the most. So it is replaced by another byte not present such as ‘Z’</p><pre>ZabdZabac<br>Z = aa</pre><p>The data can be compressed further such as by using ab = Y</p><pre>ZYdZYac<br>Z = aa<br>Y = ab</pre><p><strong>Hyperparameters:</strong></p><ul><li>Optimizer Function:<br>AdamW (Loshchilov &amp; Hutter, 2019)</li><li>β Values:<br>β1: 0.9<br>β2: 0.95</li><li>Batch Size:<br>4 million tokens<br>Presented in sequences of 4096</li><li>Learning Rate:</li></ul><p>A. Initial Base Training:<br>Cosine schedule with 1000 warm-up steps<br>The final learning rate is set to be 1/30th of the peak learning rate</p><p>B. For Finetuning (Same as Llama and Llama 2):<br>13 Billion parameter model: 3e−4<br>34 Billion parameter model: 5e−4</p><p><strong>Addressing Infill Challenges in Language Models:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kXX-dKPUeFLsgZDSGKkEpg.png" /><figcaption>An example of Infilling</figcaption></figure><p>Traditionally, language models are honed to predict subsequent sequences in a given text. This brings us to an intriguing question: how do we seamlessly bridge the gaps between sentences, especially when some content is missing?</p><p>Enter Code Llama. Within its framework, the solution is framed as Code Infilling — a strategic task aimed at forecasting the absent segments of a program when provided with its contextual surroundings. This isn’t just a theoretical concept; it finds real-world applications such as assisting in code completion right where the cursor blinks in code IDEs, aiding in type inference, and even facilitating the generation of in-code documentation.</p><p>Diving deeper into the training mechanics, documents are dissected at the character echelon. They’re segmented into three distinct parts: a prefix, a middle part, and a suffix. These splitting points are not arbitrary; they are sampled independently from a uniform distribution spanning the entire length of the document. To add an element of randomness and diversity, the data is then bifurcated into two structures: the prefix-suffix-middle (PSM) format and its counterpart, the suffix-prefix-middle (SPM) format.</p><p>Craving a deeper dive? I’d recommend delving into <a href="https://arxiv.org/pdf/2207.14255.pdf">this awesome paper</a> for a comprehensive understanding.</p><p><strong>Python code finetuning — Step 2</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*EOlKUfmQq7Fh6z_9j36xyg.jpeg" /><figcaption>Pipeline progress</figcaption></figure><p>The Code Llama — Python model encounters an additional finetuning set for python related tasks on the below training data</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NcgSjvsrfX8xXBB9dfb_Dg.jpeg" /></figure><p>Long Context-finetuning — Step 3</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*-c_UOgMoQCWQgqCRJkbkUg.jpeg" /></figure><p>The Imperative of Long Context Fine-tuning in Code Llama:</p><p>Long context fine-tuning isn’t just a fancy term; it’s a quintessential component for any advanced language model like Code Llama. But what prompts its necessity?</p><ol><li><strong>Extrapolation: </strong>Essentially, it’s about predicting sequence lengths that extend beyond what’s seen during training. It’s akin to preparing a student not just for the questions in the textbook but also for unseen questions that might appear in an examination. To delve deeper into this facet, I’d recommend this insightful paper from the University of Toronto titled — “<a href="https://arxiv.org/pdf/2207.04901.pdf">Exploring Length Generalization in Large Language Models</a>”.</li><li><strong>Complexity Concerns with Attention:</strong> Quadratic complexity in attention mechanisms is not just a theoretical challenge; it practically biases the model towards training on short-to-medium length inputs. If you have an appetite for rigorous mathematical proofs that underscore this point, there’s an authoritative paper from NYU that you might find intriguing: “<a href="https://arxiv.org/pdf/2209.04881.pdf">On the Computational Complexity of Self-Attention</a>”.</li></ol><p>Code Llama uses a dedicated long context fine-tuning stage in which models are presented with sequences of 16,384 tokens, up from 4096 tokens used for Llama 2 and our initial code training stages. The approach followed is similar to fine-tuning by positional interpolation.</p><p><strong>Positional Interpolation — Intuition :</strong></p><p>At its core, the transformer architecture lacks a notion of the position of tokens in a sequence. This means that if the order of words in a sentence is changed, the transformer would interpret the two sentences as identical. To address this, we introduce “positional encodings” to give the model information about the position of each word.</p><p>Now, “positional interpolation” is a more advanced concept. Instead of using fixed positional encodings, as in vanilla transformer models, positional interpolation involves adjusting these encodings during the training process.</p><p>Imagine two separate sentences or sequences. During training, instead of feeding these sequences independently, we combine them. Now, the challenge is how to assign positional encodings to this combined sequence. This is where interpolation comes into play: we interpolate the positional encodings of the two original sequences to create encodings for the combined sequence.</p><p>In essence, positional interpolation helps the model understand and adapt to various sequence lengths and structures. This is especially useful when fine-tuning models on longer contexts or when trying to generalize across different sequence lengths.</p><p>This method enhances the flexibility of the model, making it more adept at handling varied text structures, which is especially important for applications like Code Llama where understanding the position and structure of code sequences is crucial.</p><p><strong>Instruction finetuning — Step 4</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h-3Wwu2rsLoPsXUd-4cLog.jpeg" /><figcaption>Instruction Finetuning step</figcaption></figure><p>The model is trained on different datasets:</p><ol><li><strong>Proprietary dataset </strong>—We use the instruction tuning dataset collected for Llama 2 and described in detail by Touvron et al. (2023b). Specifically, we use the version referred to in their paper as “RLHF V5”, collected trough several stages of reinforcement learning from human feedback and human feedback annotation (see their Section 3 for more details). It combines thousands of Supervised Fine-Tuning and millions of Rejection Sampling examples. Each example consists of a multi-turn dialogue between a <em>user </em>and an <em>assistant</em>. For Rejection Sampling, the output was selected among several generations using a reward model. The final dataset contains both Helpfulness and Safety data. This enables Code Llama to inherit Llama 2’s instruction following and safety properties.</li></ol><p>2. <strong>Self-instruct. </strong>Our proprietary dataset contains few examples of code-related tasks. Collecting supervised data from human annotators or training from human feedback (Ouyang et al., 2022) is expensive for coding tasks as it requires input from professional developers. Instead of human feedback, we use execution feedback to select data to train our instruct model. We construct the self-instruction dataset following the recipe below, resulting in ∼14,000 question-tests-solution triplets:</p><ol><li>Generate 62,000 interview-style programming questions by prompting (Figure 9) Llama 2 70B.</li><li>De-duplicate the set of questions by removing exact duplicates, resulting in ∼52,000 questions.</li></ol><p>3. For each of these questions:</p><p>(a) Generate unit tests by prompting Code Llama 7B (Figure 10)<br>(b) Generate ten Python solutions by prompting Code Llama 7B (Figure 11)(c) Run the unit tests on the ten solutions.</p><p>Add the first solution that passes the tests (along with its corresponding questions and tests) to the self-instruct dataset.</p><p>We use Code Llama 7B to generate the tests and Python solutions, as we found it more efficient than generating fewer solutions per question with the 34B model for the same compute budget.</p><p><strong>3. Rehearsal — </strong>In order to prevent the model from regressing on general coding and language understanding capabilities, Code Llama — Instruct is also trained with a small proportion of data from the coding dataset (6%) and our natural language dataset (2%).</p><p><strong>The training Pipeline is complete and we are left with:</strong></p><p>1. Code Llama - (7, 13, 34 billion parameters)</p><p>2. Code Llama — Instruct (7, 13, 34 billion parameters)</p><p>3. Code Llama — Python (7, 13, 34 billion parameters)</p><p><strong>Bonus: What is META hiding in the paper?</strong></p><p><strong>Unnatural model — </strong>Code Llama — Python 34B finetuned on 15,000 unnatural instructions similar to Honovich et al. (2023) using the<strong> </strong>same prompts as for the self-instruct dataset. This model is not released but shows clear improvements on HumanEval and MBPP which are indicative of the improvements that can be reached with a small set of high-quality coding data.</p><p>This is the only mention of the model in the paper.</p><p><strong>Results:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NIsz8Mf35Vbnf9a1XBCFIg.jpeg" /></figure><p>The Significance of Specialization: It’s evident that honing the focus yields dividends. Progressing from Llama2 to Code Llama and further refining to Code Llama Python, we observe a marked enhancement in code generation capabilities.</p><p>The Emergence of the Unnatural: Enter the Unnatural Code Llama, a model fine-tuned on the “Unnatural Instructions” dataset starting from the base of Code Llama Python. Although this new entrant outshines its predecessors from the Llama lineage, it hasn’t quite caught up with the prowess of GPT-4.</p><p>The Power in Scaling Specialized Models: As the specialization deepens and the model size (measured in parameters) balloons, there’s a notable upswing in performance. The larger, the better.</p><p>Multilingual Mastery: Code Llama flexes its muscles and outpaces Llama2 across a spectrum of languages: Python, Java, C++, C#, TS, and PHP. An interesting observation: Code Llama — Python falls a tad short when pitted against the generic Code Llama.</p><p>Embracing the “Fill in the Middle” Objective: While the introduction of this objective leads to a minor dip in performance, it ushers in a plethora of new use cases, making the trade-off worthwhile.</p><p>Probing into Long Context Evaluations: The META team has put Code Llama under the microscope with a couple of in-depth tests:</p><ol><li>Perplexity During Extrapolation: From the data provided, there’s a consistent drop in perplexity up until the 16K tokens mark, signaling the model’s adeptness in long context extrapolation. However, post the 100K tokens threshold, a surge in perplexity is observed.</li><li>Key Retrieval Analysis: In this experiment, the model is handed a voluminous chunk of synthetically generated Python code, embedded with a specific function. The model’s task? To accurately discern and declare the value returned by this function.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1df8377bdb23" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The State of Analytics in 2023: First-party data, modern data stack, Cookie-less world]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@kavinrajagopal99/the-state-of-analytics-in-2023-first-party-data-modern-data-stack-cookie-less-world-ebecab28c085?source=rss-4b32e9d131d6------2"><img src="https://cdn-images-1.medium.com/max/1472/1*mwQ072uweCuPRvINzoAkug.jpeg" width="1472"></a></p><p class="medium-feed-snippet">Dive into the first of our 10-part series as we unravel the hottest trends in content analytics! From the secrets of first-party data to&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@kavinrajagopal99/the-state-of-analytics-in-2023-first-party-data-modern-data-stack-cookie-less-world-ebecab28c085?source=rss-4b32e9d131d6------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@kavinrajagopal99/the-state-of-analytics-in-2023-first-party-data-modern-data-stack-cookie-less-world-ebecab28c085?source=rss-4b32e9d131d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/ebecab28c085</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[cookieless-future]]></category>
            <category><![CDATA[journalism]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[first-party-data]]></category>
            <dc:creator><![CDATA[Kavinrajagopal]]></dc:creator>
            <pubDate>Tue, 15 Aug 2023 02:15:21 GMT</pubDate>
            <atom:updated>2023-08-15T02:15:21.094Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Top- 10 Most Influential AI papers — My pick]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://ai.plainenglish.io/top-10-most-influential-ai-papers-my-pick-60b3a29b0f83?source=rss-4b32e9d131d6------2"><img src="https://cdn-images-1.medium.com/max/1200/1*ImjDjYMf5YCBoC5U5_348Q.png" width="1200"></a></p><p class="medium-feed-snippet">The most significant technological disruption of this decade has undoubtedly been artificial intelligence (AI). It has gained immense&#x2026;</p><p class="medium-feed-link"><a href="https://ai.plainenglish.io/top-10-most-influential-ai-papers-my-pick-60b3a29b0f83?source=rss-4b32e9d131d6------2">Continue reading on Artificial Intelligence in Plain English »</a></p></div>]]></description>
            <link>https://ai.plainenglish.io/top-10-most-influential-ai-papers-my-pick-60b3a29b0f83?source=rss-4b32e9d131d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/60b3a29b0f83</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[research]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Kavinrajagopal]]></dc:creator>
            <pubDate>Mon, 26 Jun 2023 20:30:52 GMT</pubDate>
            <atom:updated>2023-06-28T02:01:44.591Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Cracking the AWS Machine Learning Speciality in 72 hours]]></title>
            <link>https://medium.com/@kavinrajagopal99/cracking-the-aws-machine-learning-speciality-in-72-hours-933e9bf93e7e?source=rss-4b32e9d131d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/933e9bf93e7e</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[exam-preparation]]></category>
            <category><![CDATA[guidebook]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Kavinrajagopal]]></dc:creator>
            <pubDate>Sun, 25 Dec 2022 02:33:06 GMT</pubDate>
            <atom:updated>2022-12-25T10:11:23.365Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, I will discuss in detail the AWS Certified Machine Learning Specialty certification, how I prepared for it, what resources I used, how I planned my time, and tips to pass the exam.</p><p><strong>Important note before we start:</strong></p><p>Cracking the exam in 72 hours was a challenge I took upon myself and wanted to share my experience with others who might find themselves in a similar situation. However, it is recommended that people should spend as much time as they find necessary as everybody has different beginning points.</p><p><strong>Introduction:</strong></p><p>I had just recently passed the AWS Machine Learning — Speciality exam with a grade of over 97%, with roughly 3 days of explicit preparation</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*xrEmv3IogVOcOoJvicPFuA.png" /></figure><p>Through this article, I plan to share the following insights:</p><ol><li>What was my expertise with AWS and Machine Learning and how knowledgeable was I before I started preparing for the exam?</li></ol><p>2. What was my game plan for the most crucial 72 hours?</p><p>3. What kinds of resources that I utilized for preparation?</p><p>4. What tools did I employ for assistance?</p><p>5. Takeaway advice while preparation</p><p><strong>My list of don’t need:</strong></p><p>There is tons of information online on the skills you need to pass the exam before you get started. Here’s a curated list of what you won’t need for the exam.</p><ol><li><strong>A coding expert </strong>— You won’t be evaluated on how well you understand a certain language, such as Python or Scala. It should be sufficient to be able to use the AWS developer guides and make use of the Python SDKs from Sagemaker.</li><li><strong>An ML researcher</strong> — While it helps to have a solid theoretical understanding of advanced modeling concepts like Bayesian Inferences, the majority of the subjects can be addressed by answering practice problems.</li><li><strong>A god tier solution architect</strong> — As the test includes questions about security, storage, and ETL, to name a few, it does assist to be a certified solutions architect. But if you haven’t before been exposed to them already, you can learn about topics as part of a variety of exercises.</li></ol><p>The sole definite prerequisite, in my opinion, is the AWS cloud practitioner exam, which serves as a good introduction to AWS and around 60 of its services.</p><p><strong>My Background:</strong></p><p>I studied computer science and mathematics before beginning my career as a data scientist. During this interim, I had the opportunity to personally work with several deep learning implementations throughout this time, particularly in the fields of computer vision and natural language processing. I’ve also had first-hand experience implementing numerous data projects in the fields of data collection, data storage, data processing, and data visualization. The majority of these implementations were done utilizing AWS. These implementations have exposed me to several architectural choices. I had previously recieved certifications from all three of the major cloud service providers, which greatly aided me in passing this exam.</p><p>Proceeding to the part you have all been waiting for…..</p><p><strong>DAY 1</strong></p><p>Step 1: Take a practice exam ( A lot of people go wrong here) (3 hours)</p><p>It is necessary to take a practice exam first. Why?</p><ol><li>It is the most effective technique to assess where you stand. I received a 67% on my first practice test (which is a failing grade).</li><li>Does this assist you to determine the exam topics you need to focus on? For instance, ML operations were where I struggled the most.</li><li>You’ll learn if taking this exam is something you want to accomplish. Many times, people get caught up in the thrill of passing the test without really considering whether this is what they want to learn.</li></ol><p>After finishing your practice test, you still have work to do. Review your mistakes with the exam’s curriculum right next to you. Typically, every practice test will indicate the topic area that the question was testing and make a note of the areas where you lacked.</p><p><strong>TIP 1: </strong>Develop your skills as a skilled ML and AWS developer because they work well together.</p><p>Step 2: Look for a course to take (I’ll provide links at the bottom) (5 hours)</p><p>Now that I had taken the practice exam, I looked for an online resource that might provide me with a thorough overview of the exam and its contents after taking a sample test and determining where my weak points were. For preparation, I used the Udemy course AWS Certified Machine Learning Speciality 2022 — Hand on! by Stephane Maarek and Frank Kane. Depending on how much of a discount you receive, this course typically costs between $8 and $14.</p><p>I watched all 11 hours of it at 2X speed and would skip the videos that I was confident about. This is how I spent the first 24 hours of my examination preparation</p><p><strong>TIP 2: </strong>Prepare your cheat sheet as you are going over the videos. For example, for each AI service (AWS comprehend) make a quick note of what it is. supported use cases? What file formats you can use? and what Machine/ Deep learning concepts its uses should suffice?</p><p><strong>DAY 2</strong></p><p><strong>Step 3: Pass a second practice test (Practice! Practice! (3 hours)</strong></p><p>I could usually finish the practice exams in 30–45 minutes (you have 3 hours), leaving me with enough time to go over the questions. This time, I received a 78%, which is a passing grade. Now we were making progress.</p><p>When I went over my responses, I saw the majority of my errors had to do with Sagemaker’s features and a few of its operational questions.</p><p><strong>TIP 3: </strong>Pay more attention to where you made mistakes than the grade you received.</p><p><strong>Step 4: Sagemaker developer manuals ( 4–5 hours)</strong></p><p>For me, this was a game-changer. The Sagemaker documentation is comprehensive and usually covers everything you need to know about a particular AI service. The docs cover things ranging from underlying concepts, the expected input/output, hyperparameters to tune, etc.</p><p><strong>TIP 4: </strong>Read it more than once so you can get a deeper understanding of the material with each reading.</p><p><strong>DAY 3</strong></p><p>My exam was scheduled for the next morning on Pearson Hue because it was my last day and I felt secure about taking it. Because I’ve found that taking exams later in the day makes me anxious throughout the day, I prefer to take them early in the morning.</p><p><strong>Step 5: The last set of tests (3–4 hours)</strong></p><p>I completed two of Abhishek Singh’s three practice exams from his AWS Certified Machine Learning Specialty. One quick practice test and two lengthy papers are included in the course. The questions and level of difficulty were comparable to those found in the exam.</p><p>I completed both of my practice tests and scored more than 85% on both of them. After this, I felt fairly assured.</p><p><strong>Test day:</strong></p><p><strong>Step 6: Getting ready for the exam</strong></p><p>I got up at 6 am, had a hearty meal, and studied for my exam at 9 am. I next reviewed the exam instructions and set up my exam space per the guidelines provided. I also prepared my two form-based identity proofs. Due to how time-consuming and laborious the check-in process is generally, I logged in 20 minutes before the exam started.</p><p><strong>TIP 5: </strong>Reading the cheat sheet you made during preparation will help you quickly review the material.</p><p><strong>Step 7: the test</strong></p><p>Here, I’d want to offer my preferred method of taking exams as well as some advice I’ve picked up over the years:</p><ol><li>I like to start by answering questions that I am confident in being able to answer since it gives me confidence and a rhythm. Any AWS evaluation must include a process of elimination. According to my experience, half of the possibilities can be quickly discarded.</li><li>The exam includes a sizable section where you are asked to suggest the best solution. The “best solution” may not always be the “best solution” for that specific use situation, so read the question carefully.</li><li>Don’t avoid any questions at all costs. There are no drawbacks.</li><li>I prefer to save all calculations until the end and complete them.</li></ol><p><strong>Useful resources:</strong></p><p><strong>Exam Page:</strong></p><ol><li><a href="https://aws.amazon.com/certification/certified-machine-learning-specialty/">https://aws.amazon.com/certification/certified-machine-learning-specialty/</a></li><li><a href="https://d1.awsstatic.com/training-and-certification/docs-ml/AWS-Certified-Machine-Learning-Specialty_Exam-Guide.pdf">https://d1.awsstatic.com/training-and-certification/docs-ml/AWS-Certified-Machine-Learning-Specialty_Exam-Guide.pdf</a></li></ol><p><strong>Online courses:</strong></p><ol><li><a href="https://www.udemy.com/course/aws-machine-learning/learn/lecture/29289118#overview">https://www.udemy.com/course/aws-machine-learning/learn/lecture/29289118#overview</a></li><li><a href="https://www.udemy.com/course/aws-machine-learning-a-complete-guide-with-python/learn/lecture/23117134#overview">https://www.udemy.com/course/aws-machine-learning-a-complete-guide-with-python/learn/lecture/23117134#overview</a></li></ol><p><strong>Sample Papers:</strong></p><ol><li><a href="https://www.udemy.com/course/aws-certified-machine-learning-specialty-full-practice-exams/learn/quiz/4755096/results#overview">https://www.udemy.com/course/aws-certified-machine-learning-specialty-full-practice-exams/learn/quiz/4755096/results#overview</a></li><li><a href="https://d1.awsstatic.com/training-and-certification/docs-ml/AWS-Certified-Machine-Learning-Specialty_Sample-Questions.pdf">https://d1.awsstatic.com/training-and-certification/docs-ml/AWS-Certified-Machine-Learning-Specialty_Sample-Questions.pdf</a></li></ol><p><strong>Notes:</strong></p><ol><li><a href="https://sagemaker-examples.readthedocs.io/en/latest/">https://sagemaker-examples.readthedocs.io/en/latest/</a></li></ol><p>Would love to hear if you found this useful. Do follow if you enjoyed my blog.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=933e9bf93e7e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A guide to your first machine learning project — Hands on]]></title>
            <link>https://medium.com/@kavinrajagopal99/a-guide-to-your-first-machine-learning-project-hands-on-154ec107f858?source=rss-4b32e9d131d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/154ec107f858</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Kavinrajagopal]]></dc:creator>
            <pubDate>Thu, 15 Dec 2022 09:14:57 GMT</pubDate>
            <atom:updated>2022-12-15T09:54:08.111Z</atom:updated>
            <content:encoded><![CDATA[<h3>A guide to your first machine learning project — Hands on</h3><p><strong>What is machine learning?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/271/1*4iqdoIX5EUdMhkdjgmovUg.jpeg" /></figure><p><em>Data Sciences, Big Data Analytics, Artificial Intelligence, Predictive Analytics, Computational Statistics…</em> all these fancy words spin around your world? They sure would. So let me put it plain and simple. Machine Learning is about teaching computers how to learn from data to make decisions or predictions. It gives the computer to learn without being explicitly programmed. In short, you teach your computer how to think.</p><p>More formally. Machine learning is a branch of <a href="https://www.ibm.com/cloud/learn/what-is-artificial-intelligence">artificial intelligence (AI)</a> and computer science which focuses on the use of data and algorithms to imitate the way that humans learn, gradually improving its accuracy.</p><p><strong>What’s the Problem at hand?</strong></p><p><strong>Titanic — Machine Learning from Disaster</strong></p><p>The infamous titanic problem which is one of the best entry level projects for many people pursuing machine learning including me.</p><h3>The Challenge (Kaggle)</h3><p>The sinking of the Titanic is one of the most infamous shipwrecks in history. (<a href="https://www.kaggle.com/c/titanic">https://www.kaggle.com/c/titanic</a>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QBImZgtmBswcSyxp1_jc9g.jpeg" /><figcaption>Fictional representation of the sinking of the Titanic</figcaption></figure><p>On April 15, 1912, during her maiden voyage, the widely considered “unsinkable” RMS Titanic sank after colliding with an iceberg. Unfortunately, there weren’t enough lifeboats for everyone onboard, resulting in the death of 1502 out of 2224 passengers and crew.</p><p>While there was some element of luck involved in surviving, it seems some groups of people were more likely to survive than others.</p><p>In this challenge, we ask you to build a predictive model that answers the question: “what sorts of people were more likely to survive?” using passenger data (ie name, age, gender, socio-economic class, etc).</p><h3>An overview of the problem</h3><p>We are provided with 3 files</p><p>1. gender_submission.csv — An example of what a submission file should look like. Which contains two columns PassengerId and a Survived column</p><p>2. test.csv — To check accuracy of the model</p><p>3. train.csv — Contains the training data which we will be using for our modelling experiment. It contains 12 columns.</p><p><strong>Approach</strong></p><p>These are some of the most common steps you will encounter with any machine learning workflow whether it be simple or complex.</p><p>1. Load the data</p><p>2. Exploratory data analysis (EDA)</p><p>3. Pre-processing data (Filling missing values etc)</p><p>4. Feature Engineering</p><p>5. Modelling</p><p>6. Prediction</p><p><strong>Initial EDA:</strong></p><p>1. PassengerId (Integer) : Contains the serialized ordered numbers that provide a unique id to each passenger</p><p>2. Survived (Boolean) : It provided information whether a passenger survived or not using boolean variables. 0 = Not survived, 1 = Survived</p><p>3. Pclass (Integer): It is the ticket class the passenger belongs too.</p><p>1= 1st class, 2 = 2nd class, 3 = 3rd class</p><p>4. Name(String) : The name of the passenger</p><p>5. Sex(String): Provides the gender of a passenger. Male or Female</p><p>6. Age(Integer): Provides the age of the passenger</p><p>7. Sibsp(Integers): Gives us information on the number of siblings or spouses boarding the ship.</p><p>8. parch(Integer): Gives us information on the number of parents or children boarding the ship</p><p>9. Ticket(Integer): Gives us the ticket number for the passenger</p><p>10. Fare(Integer): The fare for the ticket for a passenger</p><p>11. Cabin(String): The cabin number of the passenger in the ship</p><p>12. Embarked(String): Information on the port in which they embarked the titanic C = Cherbourg, Q = Queenstown, S = Southampton</p><p><strong>How to get hands on!</strong></p><p>The part you have all been waiting for, how to get started?</p><p><strong>Step 1:</strong></p><p>The first step is to find the environment in which you would be writing code. I prefer to use Google Colaboratory notebooks as it is very easy to set up and gives you a free GPU to use to run your machine learning models fast. It&#39;s also completely free to use.</p><p>Just click on this link and click new notebook to get started. (you will need a google account to get started)</p><p><a href="https://colab.research.google.com/">Google Colab</a></p><p><strong>STEP 2:</strong></p><p>Once you have created the notebook the first step is to load the data into the notebook.</p><pre>!wget https://github.com/KavinRajagopal/Kaggle_titanic_machine_learning/blob/main/titanic/gender_submission.csv<br>!wget https://github.com/KavinRajagopal/Kaggle_titanic_machine_learning/blob/main/titanic/test.csv<br>!wget https://github.com/KavinRajagopal/Kaggle_titanic_machine_learning/blob/main/titanic/train.csv</pre><p><strong>Step 3:</strong></p><p>Now to open the notebook:</p><p>Go to File -&gt; open notebook -&gt; github -&gt; Paste the following link</p><pre>https://github.com/KavinRajagopal/Kaggle_titanic_machine_learning/blob/main/Kaggle%20Titanic%20submission%20Notebook.ipynb</pre><p>Voila! This will setup your first machine learning project environment. This notebook is your playground. Do play around with the code and twist some knobs for thats what machine learning is all about.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=154ec107f858" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Data Maturity Model — What is it?]]></title>
            <link>https://medium.com/@kavinrajagopal99/the-data-maturity-model-what-is-it-e2153b780b64?source=rss-4b32e9d131d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/e2153b780b64</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[medium]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[analytics]]></category>
            <dc:creator><![CDATA[Kavinrajagopal]]></dc:creator>
            <pubDate>Tue, 13 Dec 2022 10:06:57 GMT</pubDate>
            <atom:updated>2022-12-13T11:14:11.465Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Data Maturity Model — What is it?</h3><p>If you’re reading this, you probably know a thing or two about data. Data is one of the most rapidly growing resources in our world, with an estimated 2.5 quintillion bytes created every day. It seems over 90% of data existing today was created within the last five years.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-CHvUknCb2PhTJe28oEdRw.jpeg" /><figcaption>Credits: Raconteur</figcaption></figure><p>Humans make errors. We make errors of fact and errors of judgment. We have blind spots in our field of vision and gaps in our stream of attention. Sometimes we can’t even answer the simplest questions. Where was I last week at this time? How long have I had this pain in my knee? How much money do I typically spend in a day? These weaknesses put us at a disadvantage. We make decisions with partial information. We are forced to steer by guesswork. We go with our gut.</p><p>That is, some of us do. Others use <strong>data.</strong></p><p><strong>So what is the data maturity model?</strong></p><p>The data maturity model in simple terms is a roadmap from point A to point B with milestones in-between to provide a framework that helps organizations understand and improve their data management practices. It is designed to help organizations assess their current state of data management and identify areas for improvement.</p><p>In the last 5 years, as the amount of data produced has increased our ability to process and extract information from this data has also increased. With this ability, the gap between Point A and Point B has continued to increase, with organizations building sophisticated data use cases to better support their business needs. With the edge data provides over its competitors, a data strategy is no more a maybe but a must.</p><p>The framework is usually broadly classified into 4 or 5 broad categories to generalize this model.</p><p><strong>What do the key milestones on the journey from Data awareness to data pioneer look like?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*NVQPTPe2nD2w4_gU2yZ87A.png" /></figure><p><strong>Data Aware:</strong></p><ol><li>Empower the right people to support your data journey — At this stage prioritize breadth of skills and experience over narrow expertise. Whilst you may need a data specialist as your organization matures, at this stage a data generalist is more important</li><li>Release your data from packaged solutions like google analytics which do not provide under-the-hood metrics but instead aggregate your data across broad categories. Transferring your raw, un-opinionated data to another platform, you’ll have more flexibility to manipulate data.</li></ol><p><strong>Data Capable:</strong></p><ol><li>Define the overarching goal of your data journey. You may want to empower an internal team or create a data product for external use. Align your data goals to your business objectives, and plan how to reach them</li><li>Exploring the switch to a modular data stack. Understanding the limitations of packaged analytics platforms and how building a custom data stack would overcome them.</li><li>Think about data governance as it will only take on a more important as your data matures. This is to ensure that data is understood and trusted across your organization, and is accurate, complete, and compliant.</li><li>Lay the foundations for first-party data collection, anonymous or cookieless tracking which in turn also protects your users.</li></ol><p><strong>Data Adept:</strong></p><ol><li><em>Building a single source of truth </em>— It is essential to build a central data repository that will serve as the ‘brain’ of the organization, eliminate data silos, unify teams, and empower analysts to serve data from a single source of truth. This builds trust in the data the teams are working with.</li><li>Breaking free from a packaged solution like google analytics in favor of a modular setup that puts you in the driving seat of your data. You’ll also be able to build your infrastructure around your business, not the other way. Open-source tools are also a great option as they prevent vendor locks and give you flexibility with your data.</li></ol><p><strong>Data Informed:</strong></p><ol><li><em>Treating data as a product</em> — Now that all your internal stakeholders are an integral part of your data workflows, they become your biggest stakeholders. Explore what the goals of your internal stakeholder were and build dedicated data products to achieve them</li><li>Prove the value of data by going past visualization to storytelling — Leverage the power of customer insights to power automation where possible or leverage where applicable.</li></ol><p><strong>Data Pioneer:</strong></p><ol><li>Fostering a <em>vibrant data culture</em> such that data is part of day-to-day business decisions. At this stage, multiple teams benefit from a close relationship with data. Focus on making it even easier for data consumers to ditch data, with data catalogs and improve data literacy — and invest in productionizing data to make it ubiquitously accessible.</li><li><em>Tighten data governance</em> — Leverage automated testing to ensure tracking and validation are working as expected before deploying new tracking. This will further increase your data quality and build assurance that your data is accurate and complete</li><li>Finally, Review and revamp to continuously push the boundaries to innovate with data.</li></ol><p><strong>What does all this mean in the context of media?</strong></p><p>(I like to talk about media as a lot of my work, implementations and ideas have revolved around media industries)</p><p>Media is one of the most competitive industries, organizations are constantly looking to get an edge over their competitors and one such edge has been data.</p><p><strong>Examples of media companies making data-driven decision :</strong></p><ol><li><strong>Netflix</strong> in their first big original film, <em>Bright,</em> starring Will Smith, cost the company $90M and launched on the platform in December. The purchase of the film concept and subsequent marketing were completely informed by customer data. <em>Bright </em>saw 11M viewers in its first 3 days, despite<a href="https://www.cnbc.com/2018/01/09/success-of-bright-shows-even-netflixs-rotten-movies-are-blockbuster-hits.html"> decidedly poor reviews</a> from rating sites like Rotten Tomatoes. Ultimately, Netflix was able to rewrite the playbook for blockbuster filmmaking using data.</li><li><strong>Readerscope</strong> a solution developed by the New York times can be used as a content strategy tool to develop creative ideas for branded content or campaigns by searching a brand’s target audience segment (e.g., millennial women) to understand what they’re reading, either as topics or as representative articles exemplifying those topics. It can also help brands find the right audience or geography for a certain message by searching a topic (e.g., human rights, philanthropy, or travel ) and seeing which audience segments over-index for interest in that subject. Topics are algorithmically learned from The New York Times article archive using state-of-the-art natural language processing, and all of the reader segments are targetable with media on NYTimes.com.</li></ol><p>To conclude, with massive amount of data being collected organisation should also continue to improve their capability to process this data and achieved different buisness goals. The data maturity model acts as framework to help organizations assess their current state of data management and identify areas for improvement.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2153b780b64" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Data Landscape: 2010–2020 (The Decade of Disruption)]]></title>
            <link>https://medium.com/@kavinrajagopal99/the-data-landscape-2010-2020-the-decade-of-disruption-e570208e7943?source=rss-4b32e9d131d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/e570208e7943</guid>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[dáta]]></category>
            <dc:creator><![CDATA[Kavinrajagopal]]></dc:creator>
            <pubDate>Fri, 16 Sep 2022 15:10:42 GMT</pubDate>
            <atom:updated>2022-09-16T17:40:29.340Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>The Data Landscape: 2010–2020 (The Decade of Disruption)</strong></p><p>The landscape of data is ever- changing. This is a result of innovation following an exponential graph in regards to data infrastructure and the process in which organizations are redefining their data strategies. There is an explosion of data around us, and it is transforming our world and touching our daily lives like never before. Thus, it comes as no surprise that data science was coined the “sexiest job of the 21st century”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kQHVZGbIaTxE97xEKk1zaQ.png" /></figure><p>“In god we trust; all others bring data” — William Edwards Deming. This quote strongly resonates with the current data strategies.</p><p>Before continuing, let’s have a quick look at some of the key players in the data landscape</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*15qvCga4sMN2dxEQOo8Z5A.jpeg" /><figcaption>The MAD Landscape</figcaption></figure><p>Not so quick, was it? Let’s summarize how we got here:</p><p><strong>2010–2020: The decade of disruption</strong></p><ol><li>Mobiles upgraded from 3g to 4g- Networks where mobile phone usage increased from 32 minutes in 2011, to 132 minutes in 2019.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*tGqWqwLLb-DeZj3mxq_46Q.png" /></figure><p>2.<strong> The social media boom:</strong> With the shift of social media to smart phones, it became an instaneous broadcast of life experiences. Social media became a one stop shop for information, communication, sales and marketing. Not just individuals anymore but companies, news organization and governments leverage social media to communicate faster in real time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*wdorhn3BhViHa_3tHimEiw.png" /></figure><p>3. <strong>Introduction of Cloud computing:</strong> In 2010, the common method of data storage included storing data in hard-disks or distributed to on-site servers. However, with the introduction of cloud computing allowed for more flexible, easily scalabe , managed and remote data storage options. It also made the owning of infrastructure redundant and costly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*yJTOrovx434wbeckBhWEvQ.png" /></figure><p>A few key players emerged who started analyzing data generated not only by operational systems but also the data generated by users. They labelled themselves ‘data-driven organizations” and started to build “data-product” that harnessed the power of behavioral data to dictate their company strategy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*HXTy0TrFN4n2RnRjJJGROQ.png" /><figcaption>Some of the key players</figcaption></figure><p><strong>Some Key milestones of the 2010–2020 era</strong></p><ol><li><strong>Big data:</strong></li></ol><p>With cost of hard-drives nose-diving, companies and governments were able to store astounding amount data which could then be analyzed for a wide range of purposes by achieving Big Data driven insights.</p><p>Eric Schmidt, executive chairman of Google tells a conference that the amount of data generated every two days today roughly equals what was generated from beginning of human civilization till the year 2003</p><p><strong>2. Data Lake:</strong></p><p>Unstructures storage of data in repositories were being redefined. The CTO of Pentaho coined the term “Data Lake”. A data lake is a large centralized repository where where there is no hierachy or organization in the individual pieces of data. This redefin2ed the way we saw the problem of having pre-categorise data at the entry point.</p><p><strong>3. Hadoop</strong></p><p>In 2011, Apache released Hadoop version 1 which beat supercomputers and Google’s MapReduce implementation. Hadoop and datalakes together were able to supercharge your data for better buisiness operation.</p><p><strong>4. Artificial Intelligence</strong></p><p>2015 was milestone year of the field of AI, along with deep learning and machine learning techniques made what was once was though as fiction a reality. In 2015, Jack Clarke of Bloomberg wrote that Google has scaled up its AI driven software projects from “sporadic usage” to more than 2700 projects.</p><p><strong>5. Cloud Computing</strong></p><p>Cloud computing transformed an organizatiosn apprroach to Information Technology. Everyone started opting for a cloud-first approach. It made collecting, storing, moving data easier, faster and secure. The rise of cloud computing also supported innovation in other fields such as Internet Of Thing (IoT). Ideas like smart cities would never have been possible without cloud based services for monitoring and collecting data in real-time.</p><p><strong>Conclusion:</strong></p><p>The previous decade is righfully justified as the decade of disruption, especially in the field of data. With increasing advancements in technology such as cloud computing, artificial intelligence and big data analytics, a lots of things once though to be fictional is becoming a reality.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e570208e7943" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>