<?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 Sree Deekshitha Yerra on Medium]]></title>
        <description><![CDATA[Stories by Sree Deekshitha Yerra on Medium]]></description>
        <link>https://medium.com/@SreeEswaran?source=rss-d0e190df32c5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*fthAZF5r5NCmHF6B</url>
            <title>Stories by Sree Deekshitha Yerra on Medium</title>
            <link>https://medium.com/@SreeEswaran?source=rss-d0e190df32c5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 08:30:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@SreeEswaran/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[Your Data Deserves Better!….. Meet Vector Databases]]></title>
            <link>https://blog.gopenai.com/your-data-deserves-better-meet-vector-databases-50384298a628?source=rss-d0e190df32c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/50384298a628</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[rags]]></category>
            <category><![CDATA[vector-database]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Sree Deekshitha Yerra]]></dc:creator>
            <pubDate>Mon, 30 Jun 2025 16:39:32 GMT</pubDate>
            <atom:updated>2025-07-01T12:13:11.494Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey.. A quick question — Have you ever tried remembering a song or bgm but you don’t know the lyrics?</p><p>Imagine you’re humming a tune or bgm. You don’t know the words, the movie or web series or a drama where it w played, the title, or the singer.</p><p>All you remember is:</p><ul><li>It’s emotional</li><li>It played during a breakup scene or an action sequence as a bgm</li><li>The voice was deep</li><li>Maybe it had a piano</li></ul><p>So what do you do?</p><p>You go to YouTube or Google and type something like:</p><blockquote><em>“There is a song where a guy starts with nothing but becomes a multimillionaire by the end of the song and the song is very catchy and is from an Indian film”</em></blockquote><p>And somehow… you find it. That’s <em>magic</em>, right?</p><p>Not really.</p><p>That’s <strong>semantic search</strong> — searching by <em>meaning</em> instead of exact words.</p><p>Now imagine if your AI assistant could do the same — for anything: PDFs, books, chats, documents, memories.</p><p><strong>That’s exactly what vector databases make possible.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kOSsK76JLa3jYrY9JJ1Wqw.jpeg" /><figcaption>Image source: TheAIDiscovery.com</figcaption></figure><h3>🧠 Your Brain Doesn’t Think in Exact Matches</h3><p>When you try to remember something, your brain doesn’t look for <em>exact keywords</em>.</p><p>You don’t search:</p><blockquote><em>“Document name = 210444678.pdf”</em></blockquote><p>You search:</p><blockquote><em>“That PDF I read last week about chatbots that learn from feedback… it had a graph on page 4”</em></blockquote><p>Your brain connects the <strong>feeling</strong>, <strong>context</strong>, <strong>vibe</strong>, and <strong>meaning</strong> — not the filename.</p><p>Yeahhhh!! Just like how you remember the answer for question that was asked in your exams after you submit the paper..</p><p>Vector databases help machines do the same.</p><h3>💡 So What Is a Vector?</h3><p>A <strong>vector</strong> is just a way to turn information (like text, images, or audio) into numbers that capture <em>meaning</em>.</p><p>Imagine you have the sentence:</p><blockquote><em>“Dogs are loyal pets.”</em></blockquote><p>AI converts that into a vector — a list of numbers like:</p><pre>[0.72, -0.08, 0.74, ..., 0.12]</pre><p>This isn’t random. That number list carries <strong>semantic meaning, </strong>the essence of the sentence.</p><p>And now we can <strong>compare</strong> vectors.<br> If two vectors are <em>close together</em>, it means their meanings are similar.</p><h3>🔍 What’s a Vector Database Then?</h3><p>A <strong>vector database</strong> is a special kind of storage that holds millions of these semantic vectors, and helps you <strong>search by meaning</strong>.</p><p>When you ask something like:</p><blockquote><em>“What’s that article about loyalty in animals?”</em></blockquote><p>It doesn’t look for matching words.</p><p>It turns your question into a vector, and finds <strong>the closest vectors</strong> — a.k.a. most similar meanings — inside the database.</p><h3>🧪 Where Does This Actually Help?</h3><ul><li><strong>Semantic Search</strong>: Find relevant answers even when your keywords are off.</li><li><strong>Chatbot Memory</strong>: Chatbots remember <em>what you said</em> and <em>what you meant</em>.</li><li><strong>Recommendation Systems</strong>: Suggests music, movies, articles or feed based on mood or interest.</li><li><strong>Medical Diagnosis</strong>: Match symptoms to past cases — even if phrased differently.</li></ul><h3>🆚 Traditional vs Vector Database</h3><ul><li><strong>Traditional DBs</strong> are like looking up contacts by phone number.</li><li><strong>Vector DBs</strong> are like finding people who “talk like you” or “share your interests.”</li></ul><p>As AI and LLMs rise, <strong>Vector DBs</strong> are becoming essential for building intelligent, context-aware applications.</p><h3>🌎 Why It Matters Globally?</h3><p>Whether you speak English, Hindi, Spanish, or German— humans <em>don’t</em> communicate in keywords.<br> We speak in ideas, emotions, feelings, and some fuzzy logic.</p><p>AI tools backed by vector databases can finally <strong>understand us in our natural way</strong> of thinking — regardless of our accent, wording, or culture.</p><h3>TL;DR</h3><p>✅ <strong>Vector</strong> = Meaning as numbers<br>✅ <strong>Vector DB</strong> = Stores and searches meaning<br>✅ It’s like your brain — “I don’t remember the name, but I remember the vibe.”<br>✅ Powers smarter AI that doesn’t just hear, it <em>understands</em>.</p><h3>What’s a Vector Database?</h3><p><em>A Simple Breakdown You’ll Actually Remember</em></p><p>Imagine asking a search engine:</p><blockquote><em>“What’s that movie where a student struggles with studies, and the teacher helps him see the world differently?”</em></blockquote><p>You haven’t mentioned <em>Taare Zameen Par</em>, but the system understood what you meant.<br> That’s semantic search — and it’s powered by <strong>vector databases</strong>.</p><h3>💡 What Is a Vector Database?</h3><p>A <strong>vector database</strong> stores and searches information based on <strong>meaning</strong>, not just exact words.</p><p>Unlike traditional databases (which match exact keywords), vector databases use <strong>embeddings</strong> — numerical representations of content — to find results that are <em>semantically similar</em>.</p><h3>🧠 Why Traditional Databases Fall Short</h3><p>Traditional DBs work like:</p><ul><li>“Find me user with ID = 123456”</li><li>“Search for the word ‘invoice’ in column B”</li></ul><p>They require <em>structured data</em> and <em>exact queries</em>.<br>But humans don’t always search that way — we think in vague ideas, not keywords.</p><h3>🚀 How Vector Databases Work</h3><ol><li><strong>Convert</strong>: Text, image, audio, etc., is converted into a high-dimensional vector (embedding).</li><li><strong>Store</strong>: These vectors are stored in a specialized vector database like <strong>Pinecone</strong>, <strong>Weaviate</strong>, <strong>MongoDB</strong> or <strong>FAISS</strong>.</li><li><strong>Search</strong>: When you input a query, it’s also converted into a vector.</li><li><strong>Compare</strong>: The database finds similar vectors — based on meaning, not words.</li><li>The result? Smart, relevant responses — even if your input is fuzzy or indirect.</li></ol><h3>🔍 Real-World Use Cases</h3><ul><li><strong>Chatbots</strong> that recall previous conversations and work accordingly</li><li><strong>Semantic search</strong> in customer support tools and other</li><li><strong>Recommendation systems</strong> for shopping, music, movies or ads.</li><li><strong>Multilingual Q&amp;A systems</strong> that understand meaning across languages</li><li><strong>AI copilots</strong> and RAG (Retrieval-Augmented Generation) setups</li></ul><h3>✨ In Short</h3><ul><li>Vector DBs don’t just store <em>data</em> — they store <em>meaning</em>.</li><li>They let AI systems find <strong>what you meant</strong>, not just <strong>what you said</strong>.</li><li>If your AI app needs memory, reasoning, or smart search — you need one.</li></ul><p>🧠 <em>Written by </em><strong><em>Sree Deekshitha Yerra</em></strong><em><br></em>🔥 <em>Top AI Voice | Speaker, Educator &amp; Trainer | LinkedIn Top Voice | Community Builder</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50384298a628" width="1" height="1" alt=""><hr><p><a href="https://blog.gopenai.com/your-data-deserves-better-meet-vector-databases-50384298a628">Your Data Deserves Better!….. Meet Vector Databases</a> was originally published in <a href="https://blog.gopenai.com/">GoPenAI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is Your Code AI-Generated? Here are 7 ways to find it]]></title>
            <link>https://blog.gopenai.com/is-your-code-ai-generated-7-ways-to-find-it-14d9c8282732?source=rss-d0e190df32c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/14d9c8282732</guid>
            <category><![CDATA[code]]></category>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[chatgpt]]></category>
            <dc:creator><![CDATA[Sree Deekshitha Yerra]]></dc:creator>
            <pubDate>Sat, 14 Jun 2025 13:18:25 GMT</pubDate>
            <atom:updated>2025-06-24T13:50:26.400Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9xyduS6F99bfNKI61wS8sg.jpeg" /><figcaption>Credits: Unsplash</figcaption></figure><p>These days generating code using AI is not so uncommon. But have you ever wondered, whether the code you see is human written or AI generated?</p><p>Maybe it looks too perfect.</p><p>Maybe the comments feel… off.</p><p>Or maybe something about it just doesn’t sit right.</p><p>With AI tools becoming smarter by the day, telling the difference is getting trickier — but not impossible.</p><p>Let’s discuss 7 simple ways to find whether the code is AI generated</p><p>Let’s dive in. 🧠💻</p><h3>1. 🚧 Over-Explained or Misleading Comments</h3><p>AI loves to explain! Even when it doesn’t fully “understand.”</p><blockquote><em>Look out for comments like:<br> </em><em># This function adds two numbers over a single-line </em><em>return a + b</em></blockquote><p>Sometimes, the comments say one thing, and the code does another.</p><h3>2. 🧱 Too Clean, Too Generic</h3><p>AI-written code often looks “too neat”. The perfect formatting, clear indentation, generic names like data, info, result.</p><blockquote><em>But lacks:</em></blockquote><ul><li>Real-world naming logic</li><li>Contextual relevance</li></ul><p>It’s like reading a textbook example — not a real project.</p><h3>3. 🔄 Repetition Without Purpose</h3><p>AI sometimes writes code in repetitive blocks when loops or functions would be better.</p><blockquote><em>Example:</em></blockquote><pre>print(&quot;Item 1&quot;)<br>print(&quot;Item 2&quot;)<br>print(&quot;Item 3&quot;)</pre><p>Instead of:</p><pre>for i in range(1, 4):<br>    print(f&quot;Item {i}&quot;)</pre><h3>4. 🧪 Unused Imports or Variables</h3><blockquote><em>Ever seen </em><em>import math in a script with no math involved?</em></blockquote><p>Classic AI quirk. It loads snippets it “thinks” might be useful — even if unused.</p><h3>5. 🗣️ Prompt Echoing</h3><p>If you see:</p><pre># This program checks if a number is prime</pre><p>Right at the top, it probably came from a prompt like:<br> <em>“Write Python code to check if a number is prime.”</em></p><p>That’s a giveaway — it’s mimicking the request that generated it.</p><h3>6. 💬Lack of Personal Touch</h3><p>Human coders often leave:</p><ul><li>Comments like # Need to improve this later</li><li>Debug lines like print(&quot;Working here...&quot;)</li><li>Little inconsistencies</li></ul><p>AI code? Clean. Robotic. Emotionless.</p><h3>7. 🧩 Over-Engineered for Simple Tasks</h3><p>AI can sometimes complicate what could’ve been a one-liner.</p><blockquote><em>Need to sort a list?<br> AI might create a full-blown custom function instead of using </em><em>sorted().</em></blockquote><p>It wants to <em>show off</em>, not just solve.</p><h3>🔮 AI Trends: Why It’s Getting Tricky</h3><p>With the rise of <strong>GPT-4o</strong>, <strong>Claude</strong>, and <strong>open-source LLMs</strong>, code is becoming:</p><ul><li>Smarter</li><li>More contextual</li><li>Harder to detect</li></ul><p>Some AI-generated code now passes interviews, builds apps, and even <em>explains itself</em> better than humans.</p><p>But… it still misses the <em>human intention</em> behind the logic.</p><h3>✅ What Can You Do?</h3><ol><li><strong>Ask for walkthroughs: </strong>Can the coder explain it?</li><li><strong>Run tests: </strong>Does the code actually solve the problem?</li><li><strong>Use detection tools: </strong>But don’t rely solely on them.</li><li><strong>Promote hybrid coding:</strong> Humans + AI = best results.</li></ol><h3>💡 Final Thoughts</h3><p>AI is not here to replace developers, it’s here to assist.<br>But knowing when you’re reading machine-written logic is a <em>superpower</em>.</p><p>Don’t fear AI-generated code.</p><p>Understand it.</p><p>Audit it.</p><p>Learn from it.</p><p>Improve it.</p><p>Because in the end, <strong>AI doesn’t write bad code, people deploy it without review</strong>.</p><p>🧠 <em>Written by Sree Deekshitha Yerra</em><br> 🔥 <em>Top AI Voice | Speaker, Educator &amp; Trainer | Community Builder</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14d9c8282732" width="1" height="1" alt=""><hr><p><a href="https://blog.gopenai.com/is-your-code-ai-generated-7-ways-to-find-it-14d9c8282732">Is Your Code AI-Generated? Here are 7 ways to find it</a> was originally published in <a href="https://blog.gopenai.com/">GoPenAI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unveiling Knowledge Augmented Networks (KANs): A Step-by-Step Guide]]></title>
            <link>https://medium.com/@SreeEswaran/unveiling-knowledge-augmented-networks-kans-a-step-by-step-guide-dc0a78e65e48?source=rss-d0e190df32c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc0a78e65e48</guid>
            <dc:creator><![CDATA[Sree Deekshitha Yerra]]></dc:creator>
            <pubDate>Sat, 29 Jun 2024 18:29:33 GMT</pubDate>
            <atom:updated>2024-07-19T17:51:36.560Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever wondered how we can make neural networks smarter by feeding them extra knowledge? Well, that’s exactly what Knowledge Augmented Networks (KANs) do. They integrate structured knowledge from various sources to boost their learning abilities. Let’s dive into what KANs are and how they work, and then we’ll get hands-on with a practical example.</p><h3>What Are Knowledge Augmented Networks (KANs)?</h3><p>Imagine you’re trying to solve a complex problem, and you have access to a huge encyclopedia. You’d be able to make more informed decisions, right? That’s what KANs aim to do with AI. They incorporate external knowledge, like facts and relationships from knowledge graphs, into neural networks to enhance their performance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/259/1*nRwNU5npgz4zrHeF9S8EFA.jpeg" /></figure><h3>Key Components of KANs</h3><h4>1. External Knowledge Source</h4><p>First things first, where does this extra knowledge come from? KANs use external knowledge sources such as:</p><ul><li><strong>Knowledge Graphs:</strong> Think of these as giant networks of information. For example, Google’s Knowledge Graph connects entities like “Albert Einstein” with “Theory of Relativity.”<br>- <strong>Ontologies:</strong> These are structured frameworks that define the relationships within a specific domain, like medical terminologies in healthcare.<br>- <strong>Databases:</strong> Structured data collections like company databases storing customer information.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/335/1*DqiGBDClLc5wDNAk5T0T8g.png" /></figure><h4>2. Knowledge Integration Mechanism</h4><p>How do we bring this knowledge into our neural networks? Here are a few methods:</p><ul><li><strong>Knowledge Embeddings:</strong> We convert entities and their relationships into numerical vectors that the neural network can understand.<br>- <strong>Attention Mechanisms:</strong> These help the model focus on the most relevant pieces of knowledge when making predictions.<br>- <strong>Feature Engineering:</strong> We explicitly add features derived from external knowledge to our input data.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/1*0AEF7Ev7Em-7hzPmOw5xIg.png" /></figure><h4>3. Neural Network Architecture</h4><p>The architecture of KANs involves traditional neural networks augmented with knowledge components. This could be:</p><p>- <strong>Convolutional Neural Networks (CNNs):</strong> Used for image data, can be enriched with knowledge embeddings related to objects in the images.<br>-<strong> Recurrent Neural Networks (RNNs):</strong> Used for sequential data, can integrate knowledge about the relationships between sequence elements.<br>- <strong>Transformers</strong>: Used for NLP tasks, can incorporate knowledge graphs to improve language understanding.</p><h3>Why Use KANs?</h3><p>1.<strong> Improved Performance:</strong> By leveraging external knowledge, KANs can make more accurate predictions.<br>2.<strong> Better Generalization:</strong> They can handle new, unseen data better because of the additional context they have.<br>3. <strong>Enhanced Interpretability:</strong> The use of explicit knowledge structures makes KANs more interpretable, which is great for understanding how they make decisions.</p><h3>Real-World Applications of KANs</h3><p>1. <strong>Healthcare:</strong> Improving diagnostic accuracy by integrating medical knowledge.<br>2. <strong>Finance:</strong> Using market data and expert knowledge for better stock price prediction and fraud detection.<br>3. <strong>NLP:</strong> Enhancing language models with linguistic and world knowledge for tasks like translation and sentiment analysis.</p><h3>Hands-On Example: Building a Knowledge Augmented Network (KAN)</h3><p>Alright, let’s get our hands dirty and build a simple KAN. We’ll create a text classification model using TensorFlow and Keras that leverages knowledge from a knowledge graph.</p><blockquote><strong>This code is a basic example using some sample dataset. This is just for understanding. For actual code, my GitHub repo link is given after this example. Try that for best results</strong></blockquote><h4>Step 1: Setup and Import Libraries</h4><p>First, let’s import the necessary libraries.</p><pre>import numpy as np<br>import tensorflow as tf<br>from tensorflow.keras.layers import Dense, Embedding, LSTM, Input, Concatenate<br>from tensorflow.keras.models import Model<br>from tensorflow.keras.optimizers import Adam<br>import networkx as nx      </pre><h4>Step 2: Define a Simple Knowledge Graph</h4><p>Next, we create a small knowledge graph using NetworkX.</p><pre># Create a simple knowledge graph<br>knowledge_graph = nx.Graph()<br>knowledge_graph.add_edge(&quot;diabetes&quot;, &quot;chronic disease&quot;)<br>knowledge_graph.add_edge(&quot;diabetes&quot;, &quot;insulin&quot;)<br>knowledge_graph.add_edge(&quot;chronic disease&quot;, &quot;long-term condition&quot;)<br>knowledge_graph.add_edge(&quot;insulin&quot;, &quot;hormone&quot;)<br># Function to get related nodes from the knowledge graph<br>def get_related_nodes(word):<br> if word in knowledge_graph:<br> return list(knowledge_graph.neighbors(word))<br> return []<br># Example usage<br>print(get_related_nodes(&quot;diabetes&quot;)) # Output: [&#39;chronic disease&#39;, &#39;insulin&#39;]</pre><h4>Step 3: Prepare the Dataset</h4><p>We’ll use a small text classification dataset for this example.</p><pre># Example text dataset (texts and corresponding labels)<br>texts = [&quot;Diabetes is a chronic disease&quot;, &quot;Insulin helps regulate blood sugar&quot;, &quot;Chronic diseases require long-term care&quot;]<br>labels = [1, 1, 0] # 1: Related to diabetes, 0: Not related to diabetes<br># Tokenize and pad the texts<br>tokenizer = tf.keras.preprocessing.text.Tokenizer()<br>tokenizer.fit_on_texts(texts)<br>sequences = tokenizer.texts_to_sequences(texts)<br>word_index = tokenizer.word_index<br># Pad sequences<br>max_length = max([len(seq) for seq in sequences])<br>X = tf.keras.preprocessing.sequence.pad_sequences(sequences, maxlen=max_length, padding=&#39;post&#39;)<br>y = np.array(labels)</pre><h4>4. Define the Knowledge Augmented Network (KAN)</h4><p>We will create a model that incorporates both text data and knowledge from the knowledge graph.</p><pre># Input layer for the text data<br>text_input = Input(shape=(max_length,), name=&#39;text_input&#39;)<br># Embedding layer for text input<br>embedding_dim = 50<br>embedding_layer = Embedding(input_dim=len(word_index) + 1, output_dim=embedding_dim, input_length=max_length)(text_input)<br># LSTM layer for processing text<br>lstm_layer = LSTM(64)(embedding_layer)<br># Function to get knowledge embeddings<br>def get_knowledge_embedding(word_index, embedding_dim):<br> embedding_matrix = np.zeros((len(word_index) + 1, embedding_dim))<br> for word, i in word_index.items():<br> related_nodes = get_related_nodes(word)<br> if related_nodes:<br> related_embeddings = [np.random.rand(embedding_dim) for _ in related_nodes] # Random embeddings for related nodes<br> embedding_matrix[i] = np.mean(related_embeddings, axis=0)<br> else:<br> embedding_matrix[i] = np.random.rand(embedding_dim) # Random embedding for words without related nodes<br> return embedding_matrix<br># Knowledge embedding layer<br>knowledge_embedding_matrix = get_knowledge_embedding(word_index, embedding_dim)<br>knowledge_embedding_layer = Embedding(input_dim=len(word_index) + 1, output_dim=embedding_dim, weights=[knowledge_embedding_matrix], input_length=max_length, trainable=False)(text_input)<br># Concatenate text embeddings and knowledge embeddings<br>concatenated = Concatenate()([lstm_layer, knowledge_embedding_layer])<br># Dense layer and output layer<br>dense_layer = Dense(64, activation=&#39;relu&#39;)(concatenated)<br>output_layer = Dense(1, activation=&#39;sigmoid&#39;)(dense_layer)<br># Define the model<br>model = Model(inputs=text_input, outputs=output_layer)<br>model.compile(optimizer=Adam(0.001), loss=&#39;binary_crossentropy&#39;, metrics=[&#39;accuracy&#39;])<br>model.summary()</pre><h4>5. Train the KAN</h4><pre># Train the model<br>history = model.fit(X, y, epochs=10, batch_size=2, validation_split=0.2)<br># Plot training &amp; validation accuracy values<br>plt.plot(history.history[&#39;accuracy&#39;])<br>plt.plot(history.history[&#39;val_accuracy&#39;])<br>plt.title(&#39;Model accuracy&#39;)<br>plt.ylabel(&#39;Accuracy&#39;)<br>plt.xlabel(&#39;Epoch&#39;)<br>plt.legend([&#39;Train&#39;, &#39;Test&#39;], loc=&#39;upper left&#39;)<br>plt.show()<br># Plot training &amp; validation loss values<br>plt.plot(history.history[&#39;loss&#39;])<br>plt.plot(history.history[&#39;val_loss&#39;])<br>plt.title(&#39;Model loss&#39;)<br>plt.ylabel(&#39;Loss&#39;)<br>plt.xlabel(&#39;Epoch&#39;)<br>plt.legend([&#39;Train&#39;, &#39;Test&#39;], loc=&#39;upper left&#39;)<br>plt.show()</pre><blockquote><strong>To build a KAN with actual dataset and full fledged code, clone my GitHub repo:</strong></blockquote><blockquote><a href="https://github.com/SreeEswaran/KAN-based-Movie-Review-Sentiment-Analysis"><strong>https://github.com/SreeEswaran/KAN-based-Movie-Review-Sentiment-Analysis</strong></a></blockquote><h3>Conclusion</h3><p><em>(If you have cloned my GitHub repo)</em></p><p>Congratulations! 🎉 You’ve just built a sophisticated Knowledge-Aware Network (KAN) for sentiment analysis on the IMDb movie reviews dataset. This journey has taken us through the following steps:</p><ol><li><strong>Downloading and Preparing Data</strong>: We began by downloading and extracting the IMDb dataset. By splitting it into training and test sets, we ensured our model had plenty of data to learn from and to evaluate its performance.</li><li><strong>Creating a Knowledge Graph</strong>: Using NetworkX, we constructed a simple yet powerful knowledge graph that helps the model understand relationships between words. This external knowledge enhances the model’s ability to grasp the sentiment behind movie reviews.</li><li><strong>Building the KAN Model</strong>: We built a neural network that combines traditional LSTM layers with embeddings derived from our knowledge graph. This hybrid approach leverages both learned and external knowledge, making our sentiment analysis more robust.</li><li><strong>Training and Evaluation</strong>: After training the model on our dataset, we evaluated its performance. The results were promising, showcasing the power of integrating external knowledge into neural networks.</li></ol><h3>Why This Matters</h3><p>Understanding sentiment is crucial in many applications — from customer reviews to social media monitoring. By using a Knowledge-Aware Network, we can create models that aren’t just learning from data but are also leveraging structured external information. This makes our models more intelligent and capable of understanding nuanced sentiments.</p><h3>Next Steps</h3><ol><li><strong>Experiment</strong>: Try expanding the knowledge graph. What happens if you add more nodes and edges? Can you make the model even better?</li><li><strong>Apply</strong>: Use this model on different datasets. How does it perform on product reviews, social media posts, or news articles?</li><li><strong>Share</strong>: Share your findings and improvements. Open-source projects thrive on collaboration, and your contributions can help others.</li></ol><h3>Interactive Check-In</h3><ul><li><strong>Did you encounter any issues while running the code?</strong> Share them, and let’s debug together!</li><li><strong>Got ideas for enhancements?</strong> I’m all ears. Let’s brainstorm on how we can make this model even more powerful.</li><li><strong>Feeling proud of your achievement?</strong> You should be! Pat yourself on the back for diving deep into the world of Knowledge-Aware Networks.</li></ul><p>Happy coding! If you have any questions, need further assistance, or just want to share your results, feel free to reach out. Let’s keep pushing the boundaries of AI together! 🚀</p><p>Thanks for reading 😊</p><p>Feel free to connect with me, <a href="https://www.linkedin.com/in/sree-deekshitha-yerra/"><strong><em>Sree Deekshitha Yerra</em></strong></a><strong><em> on LinkedIn </em></strong>and share your thoughts or questions in the comments below. Happy learning😊!</p><p>Follow <a href="https://www.medium.com/@SreeEswaran"><strong><em>Sree Deekshitha Yerra</em></strong></a><strong><em> on Medium </em></strong>for more interesting content!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc0a78e65e48" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top Programming languages for AI?]]></title>
            <link>https://medium.com/@SreeEswaran/top-programming-languages-for-ai-7b6ddbd285fb?source=rss-d0e190df32c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b6ddbd285fb</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Sree Deekshitha Yerra]]></dc:creator>
            <pubDate>Wed, 19 Jun 2024 07:32:16 GMT</pubDate>
            <atom:updated>2024-06-19T07:34:09.450Z</atom:updated>
            <content:encoded><![CDATA[<p>These days everyone taking a step towards Artificial Intelligence. Where few are trying to learn and explore them, where the other are researching and coming up with more advanced solutions. If you belong between any of these categories, then you are most welcome here, even if you aren’t🙂.</p><p>Lot of people out there think, python is the only language to start out with Artificial Intelligence, but there are many other than Python. In today’s blog, you can see few top programming languages that can be used for Artificial Intelligence and it’s fields like Machine Learning, Deep Learning, NLP and hottest technology, LLM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*INs8Et1CEMn55pV1jkR7pw.png" /><figcaption>By <a href="https://medium.com/u/d0e190df32c5">Sree Deekshitha Yerra</a></figcaption></figure><h3>1. Python: The AI Superstar</h3><p>Alright, let’s get the obvious one out of the way. Python is like the Swiss Army knife of programming languages — versatile, easy to learn, and packed with powerful libraries that make AI development a breeze. It’s the go-to language for many, and for good reason.</p><h3>Why Python Rocks?</h3><ul><li><strong>TensorFlow</strong>: Google’s brainchild for deep learning.</li><li><strong>PyTorch</strong>: Facebook’s favorite for flexibility and dynamic computation graphs.</li><li><strong>Keras</strong>: Perfect for beginners and fast prototyping.</li><li><strong>Scikit-learn</strong>: Your trusty sidekick for data mining and analysis.</li><li><strong>NLTK</strong>: Essential for anyone dabbling in human language data.</li></ul><h3>2. R: The Statistician’s Delight</h3><p>If you’re coming from a statistical background, R might just be your new best friend. It’s tailored for data analysis and has a rich set of tools that make it a powerful choice for AI and machine learning projects.</p><h3>Why You’ll Love R:</h3><ul><li><strong>caret</strong>: Streamlines the process of creating predictive models.</li><li><strong>randomForest</strong>: Brings the magic of the random forest algorithm to your fingertips.</li><li><strong>e1071</strong>: A package packed with tools for statistical learning.</li><li><strong>tm</strong>: Dive into text mining with ease.</li></ul><h3>3. Java: The Enterprise Juggernaut</h3><p>Java isn’t just for building large-scale enterprise applications. It’s also a robust option for AI development, thanks to its scalability and performance. If you’re working on a project that demands reliability and speed, Java has got your back.</p><h3>Java’s Power Tools:</h3><ul><li><strong>Weka</strong>: A suite of machine learning algorithms ready to go.</li><li><strong>Deeplearning4j</strong>: Deep learning for Java and Scala enthusiasts.</li><li><strong>MOA</strong>: Specializes in data stream mining.</li></ul><h3>4. Julia: The Speed Demon</h3><p>When you need the speed of C combined with the ease of Python, Julia is your language. It’s designed for high-performance numerical and computational analysis, making it perfect for AI and machine learning tasks that demand speed and efficiency.</p><h3>Julia’s Secret Weapons:</h3><ul><li><strong>Flux</strong>: A lightweight machine learning library.</li><li><strong>Knet</strong>: A deep learning library that’s all about performance.</li></ul><h3>5. C++: The Performance Beast</h3><p>For applications where performance is non-negotiable, C++ is the way to go. It’s a staple in game development, real-time systems, and anywhere else where speed is critical. C++ gives you the control you need to squeeze out every bit of performance.</p><h3>C++ Heavy Hitters:</h3><ul><li><strong>Shark</strong>: An open-source machine learning library that’s fast and modular.</li><li><strong>Dlib</strong>: A toolkit for creating real-world machine learning applications.</li></ul><h3>6. JavaScript (and TypeScript): The Web Wizards</h3><p>JavaScript isn’t just for building websites anymore. With the rise of libraries like TensorFlow.js and Brain.js, you can run machine learning models directly in the browser. TypeScript, JavaScript’s statically-typed cousin, adds an extra layer of reliability to your code.</p><h3>Web-Based Magic:</h3><ul><li><strong>TensorFlow.js</strong>: Machine learning in the browser.</li><li><strong>Brain.js</strong>: Neural networks made easy for JavaScript developers.</li></ul><h3>Wrapping It Up</h3><p>While Python steals the spotlight in the AI arena, the landscape is rich with other languages that bring their own unique strengths to the table. Whether you’re crunching numbers with R, scaling up with Java, speeding things up with Julia, optimizing with C++, or bringing AI to the web with JavaScript, there’s a language out there that’s perfect for your next AI project. Don’t be afraid to explore and experiment — you might just find your new favorite tool in the process.</p><p>Feel free to connect with me, <a href="https://www.linkedin.com/in/sree-deekshitha-yerra/"><strong><em>Sree Deekshitha Yerra</em></strong></a><strong><em> on Linkedin </em></strong>and share your thoughts or questions in the comments below. Happy learning😊!</p><p>Follow <a href="https://www.medium.com/@SreeEswaran"><strong><em>Sree Deekshitha Yerra</em></strong></a><strong><em> on Medium </em></strong>for more interesting content!</p><p>Thanks for reading 😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b6ddbd285fb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Optimizing Deep Learning Models: Best Practices Guide]]></title>
            <link>https://medium.com/@SreeEswaran/optimizing-deep-learning-models-best-practices-guide-d576035efa8d?source=rss-d0e190df32c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/d576035efa8d</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[model]]></category>
            <category><![CDATA[optimization]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Sree Deekshitha Yerra]]></dc:creator>
            <pubDate>Mon, 17 Jun 2024 08:07:22 GMT</pubDate>
            <atom:updated>2024-06-18T06:03:03.583Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome, Deep Learning fans! If you’re here, you probably want to make your deep learning models work better and faster. Whether you’re just getting started or a seasoned expert, optimizing the deep learning models can feel a bit overwhelming. Don’t worry! I’m here to share some best practices to help you optimize your models performing at their best.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KERiuGQnhAV0lzJMU_btBw.png" /></figure><h3>Why Optimization?</h3><p>First, let’s talk about why optimizing your models is so important. In Deep Learning, efficiency and performance are key. The Optimized models not only give better results but also saves time and computing power. Whether you’re working on recognizing images, understanding text, synthesizing audios, or any other AI task, fine-tuning your models can make a huge difference.</p><p>As someone who is completely into AI, working with deep learning models is so common. I say, one should get ready to come up with new strategies to optimize the deep learning models, cause we don’t know which strategy or technique would help us get our desired output. Trust me, sometimes, even a simple optimization technique could increase your model performance like anything.</p><p>Now, let us have a look at my go to optimization strategies.</p><h3><strong>1. Choose the Right Model Structure</strong></h3><p>Lets suppose your model’s structure as a foundation of a house. If it’s weak, no amount of decorating will make it strong. Start with a well-known structure suitable for your task. For example, use Convolutional Neural Networks (CNNs) for images, transformers for language tasks and Recurrent Neural Networks (RNNs) for sequences. Don’t hesitate to experiment, but make sure the model you consider fits your problem.</p><h3>2. Clean and Augment Your Data</h3><p>If you put garbage into your model, you’ll get garbage out. Make sure your data is clean, error-free, and properly labeled. Data augmentation techniques like flipping, rotating, and scaling can create more data from your existing dataset, making your model more robust. Remember, your model can only learn from the data you give it.</p><h3>3. Use Transfer Learning</h3><p>Why start from scratch when you can use a pre-trained model? Transfer learning uses models that have already been trained on similar tasks. You can fine-tune these models for your specific needs, saving time and often achieving better performance.</p><h3>4. Regularization Techniques</h3><p>Overfitting is when your model performs well on training data but poorly on new data. Regularization techniques help prevent this. Methods like dropout, L1/L2 regularization, and data augmentation make your model better at generalizing to new data. Dropout, for example, randomly ignores some neurons during training, making your model more robust.</p><h3>5. Tune Hyperparameters</h3><p>Hyperparameters are like the ingredients in a recipe. The right mix can significantly improve your model’s performance. Use methods like grid search, random search, or more advanced techniques to find the best settings. Important hyperparameters to adjust include learning rate, batch size, and the number of layers or neurons.</p><h3>6. Adjust the Learning Rate</h3><p>Using a constant learning rate is outdated. Learning rate schedulers adjust the rate during training, helping your model learn better. Techniques like step decay, exponential decay, or cyclical learning rates can make training smoother and more efficient.</p><h3>7. Batch Normalization</h3><p>Training deep networks can sometimes be chaotic. Batch normalization helps by normalizing the inputs of each layer, stabilizing and speeding up training. It’s like giving your model a calming cup of tea.</p><h3>8. Cross-Validation</h3><p>Cross-validation helps ensure your model’s performance isn’t just a fluke. By splitting your data into training and validation sets multiple times, you get a more accurate measure of your model’s abilities. Techniques like k-fold cross-validation are very useful here.</p><h3>9. Use Your Hardware Efficiently</h3><p>Maximize the power of your hardware. GPUs are the workhorses of deep learning, and using them efficiently can save a lot of time. Tools like mixed precision training can take full advantage of modern GPUs, speeding up training without losing accuracy.</p><h3>10. Monitor and Stop Early</h3><p>Keep an eye on your model’s performance. Monitor metrics like accuracy and loss during training. Early stopping is a technique where you stop training if your model’s performance on a validation set stops improving. This prevents overfitting and saves resources.</p><h3>Most Used Optimization Techniques in Deep Learning</h3><p>Now, let’s delve into the most commonly used optimization techniques that can further boost your model’s performance.</p><h4>1. Stochastic Gradient Descent (SGD)</h4><p><strong>SGD</strong> is a foundational optimization algorithm where model parameters are updated based on the gradient of the loss function with respect to each training example. It’s simple and widely used, especially in its mini-batch variant.</p><h4>2. Mini-batch Gradient Descent</h4><p><strong>Mini-batch Gradient Descent</strong> updates parameters using small batches of training examples, providing a good balance between efficiency and robustness, making it a go-to method for training neural networks.</p><h4>3. Momentum</h4><p><strong>Momentum</strong> enhances SGD by adding a fraction of the previous update to the current one. This technique helps accelerate convergence and reduces oscillations, particularly in complex landscapes.</p><h4>4. Adam (Adaptive Moment Estimation)</h4><p><strong>Adam</strong> combines the benefits of momentum and RMSprop by maintaining moving averages of both the gradients and their squared values. This results in adaptive learning rates and often faster convergence, making it one of the most popular optimizers in deep learning.</p><h4>5. RMSprop</h4><p><strong>RMSprop</strong> adjusts the learning rate based on a moving average of squared gradients, preventing the learning rate from becoming too small and ensuring effective training throughout the process.</p><h4>6. Adagrad</h4><p><strong>Adagrad</strong> adapts the learning rate based on historical gradient information, which is particularly useful for sparse data but can result in excessively small learning rates over time.</p><h4>7. Adadelta</h4><p><strong>Adadelta</strong> improves upon Adagrad by limiting the window of accumulated past gradients, effectively addressing the issue of decaying learning rates without requiring a fixed learning rate schedule</p><h3>Conclusion</h3><p>Beyond hyperparameter tuning and regularization, many other optimization techniques can enhance your model’s performance. I hope this guide helps you achieve better-optimized models. If you have any questions or suggestions, please leave a comment or DM me on<a href="https://www.linkedin.com/in/sree-deekshitha-yerra"><strong><em> my Linkedin</em></strong></a><strong><em>.</em></strong></p><p>Thanks for reading 😊</p><p>For more interesting content, please do follow me</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d576035efa8d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Step-by-Step Guide to Train a Large Language Model (LLM) with code]]></title>
            <link>https://blog.gopenai.com/step-by-step-guide-to-train-a-large-language-model-llm-with-code-1f536c34694e?source=rss-d0e190df32c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f536c34694e</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Sree Deekshitha Yerra]]></dc:creator>
            <pubDate>Thu, 13 Jun 2024 12:29:52 GMT</pubDate>
            <atom:updated>2024-06-18T10:25:32.047Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eppNnIUyTDixVBf6V7noWw.png" /><figcaption>By <a href="https://medium.com/u/d0e190df32c5">Sree Deekshitha Yerra</a></figcaption></figure><h3>How to Train a Large Language Model: Insights from My Journey</h3><p>In the dynamic field of Artificial Intelligence (AI), training a Large Language Model (LLM) like GPT-3, GPT-4, Llama, Gemini and other, has become a cornerstone skill. Drawing from my experience, I’m excited to guide you through this process, sharing practical insights and unique code snippets that have helped me along the way. Since ChatGPT is something everyone is familiar with, I have taken that as an example and implemented the LLM. Whether you’re just starting out or looking to refine your expertise, this comprehensive guide is designed to elevate your understanding and skills.</p><h3>Table of Contents</h3><p>1. Introduction to Large Language Models</p><p>2. Prerequisites and Environment Setup</p><p>3. Data Collection and Preparation</p><p>4. Building the Model</p><p>5. Training the Model</p><p>6. Fine-Tuning and Optimization</p><p>7. Evaluating Model Performance</p><p>8. Deploying the Model</p><p>9. Conclusion and Best Practices</p><h3>1. Introduction to Large Language Models</h3><p>Large Language Models (LLMs) are AI systems that excel at understanding and generating human-like text. They are trained on vast datasets, enabling them to perform a variety of tasks, from translation to text generation. In my journey, I’ve found that the potential of LLMs lies in their versatility and ability to adapt to various domains.</p><h3>2. Prerequisites and Environment Setup</h3><p><strong>Technical Skills Required:</strong></p><p>- Basic to intermediate Python programming</p><p>- Familiarity with machine learning frameworks like TensorFlow or PyTorch</p><p>- Understanding of natural language processing (NLP) concepts</p><p><strong>Environment Setup:</strong></p><p>1. Install Python: Ensure Python 3.6+ is installed. Download it from the [official website](<a href="https://www.python.org/">https://www.python.org/</a>).</p><p>2. Install Required Libraries: Use pip to install essential libraries.</p><pre>pip install torch transformers datasets</pre><p>3. GPU Support: For efficient training, set up a machine with GPU support. Services like AWS, Google Cloud, or Azure provide robust GPU instances.</p><h3>3. Data Collection and Preparation</h3><p><strong>Data Sources:</strong></p><p>In my projects, I’ve utilized a mix of public datasets and domain-specific data to train models effectively.</p><p>- <strong>Public datasets:</strong> Kaggle Datasets, Hugging Face Datasets, Google Dataset Search, GitHub Datasets, OpenML, Common Crawl, Wikipedia</p><p>- Domain-specific data: Medical texts, legal documents</p><p><strong>Data Preprocessing:</strong></p><p>A critical step I emphasize is thorough data preprocessing to ensure quality input for your model.</p><p>- <strong>Cleaning:</strong> Remove duplicates and irrelevant information, handle missing data.</p><p>- <strong>Tokenization:</strong> Convert text into tokens for model comprehension.</p><pre>from transformers import AutoTokenizer<br>tokenizer = AutoTokenizer.from_pretrained(&#39;gpt-4&#39;)<br>tokens = tokenizer(&quot;Your text goes here&quot;, return_tensors=&#39;pt&#39;)</pre><h3>4. Building the Model</h3><p><strong>Model Architecture:</strong></p><p>Starting with a pre-trained model from the Hugging Face library can save significant time and resources.</p><pre>from transformers import GPT2LMHeadModel<br>model = GPT2LMHeadModel.from_pretrained(&#39;gpt-4&#39;) <br>#can use any other llm model as well but do reconsider the imported modules once</pre><h3>5. Training the Model</h3><p><strong>Training Loop:</strong></p><p>Creating an effective training loop was a game-changer for me, ensuring that the model learns efficiently.</p><pre>from transformers import Trainer, TrainingArguments<br>training_args = TrainingArguments(<br>    output_dir=&#39;./results&#39;,          # output directory<br>    num_train_epochs=3,              # number of training epochs<br>    per_device_train_batch_size=4,   # batch size for training<br>    per_device_eval_batch_size=4,    # batch size for evaluation<br>    warmup_steps=500,                # number of warmup steps<br>    weight_decay=0.01,               # strength of weight decay<br>    logging_dir=&#39;./logs&#39;,            # directory for storing logs<br>)<br>trainer = Trainer(<br>    model=model,                         # the instantiated transformers model to be trained<br>    args=training_args,                  # training arguments, defined above<br>    train_dataset=train_dataset,         # training dataset<br>    eval_dataset=eval_dataset            # evaluation dataset<br>)<br>trainer.train()</pre><h3>6. Fine-Tuning and Optimization</h3><p><strong>Hyperparameter Tuning:</strong></p><p>Experimenting with different hyperparameters was crucial for me to optimize model performance.</p><p>- <strong>Learning rates:</strong> Adjusting the learning rate can significantly affect training outcomes.</p><p>- <strong>Batch sizes:</strong> Varying batch sizes to find the optimal fit.</p><p><strong>Regularization Techniques:</strong></p><p>Implementing dropout and weight decay helped prevent overfitting in my models.</p><h3>7. Evaluating Model Performance</h3><p><strong>Metrics:</strong></p><p>- Perplexity: A key metric I use to measure model prediction quality.</p><p>- BLEU, ROUGE: Useful for evaluating tasks like translation and summarization.</p><p><strong>Validation:</strong></p><p>Consistently evaluating the model on validation sets ensured I could monitor and improve performance effectively.</p><h3>8. Deploying the Model</h3><p><strong>Serving the Model:</strong></p><p>Deploying the model using frameworks like Flask or FastAPI made it accessible for real-world applications.</p><pre>from flask import Flask, request, jsonify<br>import torch<br>from transformers import GPT2LMHeadModel, GPT2Tokenizer<br>app = Flask(__name__)<br>model = GPT2LMHeadModel.from_pretrained(&#39;gpt-4&#39;)<br>tokenizer = GPT2Tokenizer.from_pretrained(&#39;gpt-4&#39;)<br>@app.route(&#39;/generate&#39;, methods=[&#39;POST&#39;])<br>def generate_text():<br>    input_data = request.json[&#39;text&#39;]<br>    inputs = tokenizer.encode(input_data, return_tensors=&#39;pt&#39;)<br>    outputs = model.generate(inputs, max_length=100)<br>    text = tokenizer.decode(outputs[0], skip_special_tokens=True)<br>    return jsonify({&#39;generated_text&#39;: text})<br>if name == &#39;__main__&#39;:<br>    app.run(</pre><h3>9. Conclusion and Best Practices</h3><p>Reflecting on my experience, here are some best practices that have consistently proven beneficial:</p><p>- Continuous Learning: Stay updated with the latest research and advancements in AI and NLP.</p><p>- Community Involvement: Engage with AI communities and forums for shared learning and support.</p><p>- Ethical Considerations: Always be mindful of ethical implications and biases in your models.</p><h3>Final Thoughts</h3><p>Training a Large Language Model is a challenging yet incredibly rewarding endeavor. With this guide, you’re equipped with the foundational knowledge and practical steps to start or enhance your journey. Remember, continuous learning and experimentation are key to success in this field.</p><p>If you feel its difficult to copy the code line by line, you can clone my git repository:<strong><em> </em></strong><a href="https://github.com/SreeEswaran/Train-your-LLM"><strong><em>https://github.com/SreeEswaran/Train-your-LLM</em></strong></a></p><p>If you found this guide insightful, please share it on LinkedIn and follow me for more AI insights!</p><p>Feel free to connect with me, <a href="https://www.linkedin.com/in/sree-deekshitha-yerra/"><strong><em>Sree Deekshitha Yerra</em></strong></a> and share your thoughts or questions in the comments below. Happy learning😊!</p><p>Follow<strong><em> </em></strong><a href="https://medium.com/u/d0e190df32c5"><strong><em>Sree Deekshitha Yerra</em></strong></a><strong><em> </em></strong>for more interesting content!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f536c34694e" width="1" height="1" alt=""><hr><p><a href="https://blog.gopenai.com/step-by-step-guide-to-train-a-large-language-model-llm-with-code-1f536c34694e">Step-by-Step Guide to Train a Large Language Model (LLM) with code</a> was originally published in <a href="https://blog.gopenai.com/">GoPenAI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build RAG Agents using LLMs: Step-by-step Guide]]></title>
            <link>https://blog.gopenai.com/building-rag-agents-using-llms-step-by-step-guide-dfe1bfe0bf54?source=rss-d0e190df32c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/dfe1bfe0bf54</guid>
            <category><![CDATA[rags]]></category>
            <category><![CDATA[rag-agent]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Sree Deekshitha Yerra]]></dc:creator>
            <pubDate>Thu, 06 Jun 2024 12:02:41 GMT</pubDate>
            <atom:updated>2024-06-18T10:25:25.866Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello Readers 👋!! RAGs and LLMs are on trend these days. So why not take a moment to understand them and experiment building RAG Agents using LLMs. If you follow all the steps in this blog, you can build your first RAG agent using LLM, at ease.</p><h3>Is it really necessary?</h3><p>Building RAG agents, or Retrieval Augmented Generation agents, using Large Language models (LLMs) is a complex yet rewarding process. These agents are capable of not only retrieving information but also generating responses, making them highly versatile in various applications such as question-answering systems, conversational agents, and more.</p><p>In this blog, we will delve into the process of setting up and building RAG agents using LLMs, covering everything from installations to the actual coding.</p><h3>Understanding Large Language Models (LLMs)</h3><p>Large Language Models (LLMs) are neural network-based models trained on vast amounts of text data to understand and generate coherent text. Popular examples of LLMs include BERT, GPT-3, and T5, all of which can be leveraged for building RAG agents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*H3JBfFI7kxlHw1NwHR-v4w.png" /></figure><h3>Setting Up the Environment</h3><h4>Prerequisites</h4><p>Before diving into the coding, it is essential to set up the necessary tools and libraries. Here is a list of prerequisites:</p><ul><li><strong>Python</strong>: Ensure Python is installed on your system. You can download it from<strong><em> </em></strong><a href="https://www.python.org/"><strong><em>python.org</em></strong></a>.</li><li><strong>PyTorch</strong>: Install PyTorch by following the instructions on the PyTorch website.</li><li><strong>Transformers Library</strong>: Install the Hugging Face Transformers library using the following command:</li></ul><pre>pip install transformers</pre><ul><li><strong>Additional Libraries</strong>: Depending on your specific needs, you might need additional libraries such as numpy, pandas, and scikit-learn.</li></ul><pre>pip install numpy pandas scikit-learn</pre><h3>Loading and Fine-Tuning the Pre-Trained LLM</h3><p>Once the setup is complete, the next step involves loading a pre-trained LLM and fine-tuning it for building RAG agents. Below is a sample code snippet to load and fine-tune an LLM using the Hugging Face Transformers library:</p><pre>from transformers import AutoModelForSeq2SeqLM, AutoTokenizer<br>model_name = &quot;t5-base&quot;<br>tokenizer = AutoTokenizer.from_pretrained(model_name)<br>model = AutoModelForSeq2SeqLM.from_pretrained(model_name)<br># Example fine-tuning process<br>from transformers import Trainer, TrainingArguments<br>training_args = TrainingArguments(<br>    output_dir=&quot;./results&quot;,<br>    per_device_train_batch_size=4,<br>    num_train_epochs=3,<br>    logging_dir=&quot;./logs&quot;,<br>)<br>trainer = Trainer(<br>    model=model,<br>    args=training_args,<br>    train_dataset=train_dataset,  # Assume train_dataset is defined<br>    eval_dataset=eval_dataset    # Assume eval_dataset is defined<br>)<br>trainer.train()</pre><h3>Building the RAG Agent</h3><p>The code for a RAG agent typically consists of three main components: a retrieval component, a generation component, and a ranking component.</p><h4>Retrieval Component</h4><p>The retrieval component searches a knowledge base or corpus of text for relevant information. Here’s a simple example using the Hugging Face datasets library:</p><pre>from datasets import load_dataset<br>dataset = load_dataset(&#39;wikipedia&#39;, &#39;20220301.en&#39;)[&#39;train&#39;]<br>def retrieve(query, dataset, top_k=5):<br>    # Placeholder retrieval function<br>    return dataset.select(range(top_k))<br>retrieved_docs = retrieve(&quot;What is the capital of India?&quot;, dataset)</pre><h4>Generation Component</h4><p>The generation component generates a response based on the retrieved information. This can be achieved using the pre-trained LLM: python</p><pre>input_text = &quot;context: New Delhi is the capital of India. question: What is the capital of India?&quot;<br>input_ids = tokenizer.encode(input_text, return_tensors=&quot;pt&quot;)<br>generated_ids = model.generate(input_ids)<br>generated_text = tokenizer.decode(generated_ids[0], skip_special_tokens=True)<br>print(generated_text)  # Output: New Delhi is the capital of India.</pre><h4>Ranking Component</h4><p>The ranking component ranks the generated responses to select the most appropriate one. A simple approach can use cosine similarity to rank responses:</p><pre>from sklearn.metrics.pairwise import cosine_similarity<br>import numpy as np<br>def rank_responses(responses, query_embedding, model):<br>    response_embeddings = [model.encode(resp) for resp in responses]<br>    similarities = cosine_similarity([query_embedding], response_embeddings)<br>    ranked_indices = np.argsort(similarities[0])[::-1]<br>    return [responses[i] for i in ranked_indices]<br>responses = [&quot;New Delhi is the capital of India&quot;,&quot;Paris is the capital of France.&quot;, &quot;The capital of Germany is Berlin.&quot;]<br>query_embedding = model.encode(&quot;What is the capital of India?&quot;)<br>ranked_responses = rank_responses(responses, query_embedding, model)<br>print(ranked_responses[0])  # Output: New Delhi is the capital of India.def rank_responses(responses, query_embedding, model):<br>    response_embeddings = [model.encode(resp) for resp in responses]<br>    similarities = cosine_similarity([query_embedding], response_embeddings)<br>    ranked_indices = np.argsort(similarities[0])[::-1]<br>    return [responses[i] for i in ranked_indices]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*F8Ir3S_TEexwnf2c" /></figure><h3>Training and Fine-Tuning</h3><p>To train a RAG agent, you need a large dataset of conversations or text data to fine-tune the LLM. The dataset should include a mixture of dialogue and context information to help the agent understand and generate responses in a conversational manner.</p><p>The fine-tuning process involves feeding the model with question-answer data pairs and training it to retrieve relevant information when given a query or to generate responses based on the input. This process requires coding skills in Python and a good understanding of neural networks and natural language processing techniques.</p><h3>Deployment</h3><p>After fine-tuning the LLM model, the next step is to integrate it into a RAG agent framework. This involves creating a user interface for interacting with the agent, handling user queries, and displaying the retrieved or generated responses. The RAG agent can be deployed on various platforms such as websites, chatbots, or APIs for broader use.</p><h3>Conclusion</h3><p>Building RAG agents using LLMs is a challenging but valuable process that requires technical skills and knowledge in machine learning and natural language processing. By following the steps outlined above and experimenting with different LLM models, developers can create powerful RAG agents that assist users in various tasks.</p><h3>Additional Resources</h3><p>For further reading and resources, consider the following:</p><ul><li><a href="https://huggingface.co/docs"><strong><em>Hugging Face Transformers Documentation</em></strong></a></li><li><a href="https://pytorch.org/tutorials/"><strong><em>PyTorch Tutorials</em></strong></a></li><li><a href="https://arxiv.org/abs/1810.04805"><strong><em>BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding</em></strong></a></li><li><a href="https://arxiv.org/abs/2005.14165"><strong><em>GPT-3: Language Models are Few-Shot Learners</em></strong></a></li><li><a href="https://developer.nvidia.com/cuda-toolkit"><strong><em>NVIDIA CUDA Toolkit</em></strong></a></li><li><a href="https://developer.nvidia.com/cudnn"><strong><em>NVIDIA cuDNN</em></strong></a></li></ul><p>By leveraging these resources and continuing to explore the capabilities of LLMs, you can enhance your understanding and expertise in building sophisticated RAG agents.</p><p>Thanks for reading 😊</p><p>If any queries or suggestions please feel to reach me out.</p><p>For more Interesting content, do follow me on <a href="https://www.medium.com/@SreeEswaran"><strong><em>Medium</em></strong></a> . Lets connect on <a href="https://www.linkedin.com/in/sree-deekshitha-yerra"><strong><em>Linkedin</em></strong></a><strong><em>.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dfe1bfe0bf54" width="1" height="1" alt=""><hr><p><a href="https://blog.gopenai.com/building-rag-agents-using-llms-step-by-step-guide-dfe1bfe0bf54">Build RAG Agents using LLMs: Step-by-step Guide</a> was originally published in <a href="https://blog.gopenai.com/">GoPenAI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 10 AI Trends 2024]]></title>
            <link>https://medium.com/@SreeEswaran/top-10-ai-trends-b705d5bcfa22?source=rss-d0e190df32c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/b705d5bcfa22</guid>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-trends-2024]]></category>
            <dc:creator><![CDATA[Sree Deekshitha Yerra]]></dc:creator>
            <pubDate>Mon, 03 Jun 2024 11:50:26 GMT</pubDate>
            <atom:updated>2024-06-03T11:53:04.958Z</atom:updated>
            <content:encoded><![CDATA[<p>AI is all over the world and is on trending. With various subfields such as Machine Learning (ML), Deep Learning, Large Language Models (LLM), Natural Language Processing (NLP), and Computer Vision, AI’s influence spans multiple industries and applications. In this article let us know about the top 10 AI trends to look out for in 2024.</p><p>Here are the top 10 AI trends for 2024, explained with real-time examples , statistics and insights:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/263/1*VZS-j66xiaDfSCirIegq_A.png" /></figure><h3><strong>1. Generative AI</strong></h3><p><strong>Explanation:</strong> Generative AI models create new content, such as text, images, and music. This technology is transforming creative industries, content creation, and automation.</p><p><strong><em>Statistics &amp; Examples:</em></strong><br>- <strong>Market Growth:</strong> The generative AI market was valued at $8.65 billion in 2022 and is projected to grow at a compound annual growth rate (CAGR) of 35.6% from 2023 to 2030.<br>- <strong>Companies:</strong> OpenAI’s GPT-4 and DALL-E, Google’s DeepDream, and Adobe’s AI tools in Photoshop are leading examples.<br>- <strong>Use Cases:</strong> ChatGPT is widely used for customer service automation and content creation, while DALL-E generates images from textual descriptions, enhancing creative workflows.</p><p><strong><em>Insights:</em></strong> Generative AI enhances creativity and efficiency, allowing businesses to scale and customize AI applications across various functions.</p><h3><strong>2. Multimodal AI Models</strong></h3><p><strong><em>Explanation:</em></strong> Multimodal AI models integrate multiple types of data (text, images, audio) to improve understanding and interaction.</p><p><strong><em>Statistics &amp; Examples:</em></strong><br>- <strong>Technological Integration:</strong> Google’s Multimodal Transformers like ViLBERT and OpenAI’s CLIP model can process data from diverse sources.<br>- Companies: Google, OpenAI, and Facebook AI Research are developing these models.<br>- <strong>Use Cases:</strong> These models enhance virtual assistants, improve search engines, and advance medical diagnostics by providing comprehensive data analysis.</p><p><strong><em>Insights:</em></strong> Multimodal AI enables more intuitive and contextually aware applications, improving user experiences and decision-making.</p><h3><strong>3. Explainable AI</strong></h3><p><strong><em>Explanation:</em></strong> Explainable AI (XAI) makes AI’s decision-making processes transparent and understandable, which is essential for building trust and accountability.</p><p><strong><em>Statistics &amp; Examples:</em></strong><br>- <strong>Importance:</strong> 76% of executives consider transparency in AI crucial (PwC).<br>- <strong>Companies:</strong> IBM’s Watson and DARPA’s XAI program are significant players.<br>-<strong> Use Cases:</strong> Financial institutions use XAI to understand credit decisions, and healthcare providers use it to explain treatment recommendations.</p><p><strong><em>Insights:</em></strong> XAI is critical in regulated industries, ensuring that AI systems are fair, accountable, and free from bias.</p><h3>4. AI in Education</h3><p><strong><em>Explanation:</em></strong> AI in education personalizes learning experiences, automates administrative tasks, and provides intelligent tutoring systems.</p><p><strong><em>Statistics &amp; Examples:</em></strong><br>- <strong>Market Growth:</strong> The AI in education market is projected to reach $20.3 billion by 2027.<br>- <strong>Companies:</strong> Coursera uses AI for personalized course recommendations, and Duolingo’s AI adapts to individual learning speeds.<br>- <strong>Use Cases:</strong> AI-driven platforms like Prof Jim and Numerade’s Ace tutor offer customized learning and assessment tools.</p><p><strong><em>Insights:</em></strong> AI democratizes education by providing tailored learning experiences and improving accessibility and effectiveness globally.</p><h3>5. AI-Augmented Workforce</h3><p><strong><em>Explanation:</em></strong> AI enhances productivity by automating routine tasks and providing intelligent decision support.</p><p><strong><em>Statistics &amp; Examples:</em></strong><br>- <strong>Economic Impact:</strong> AI could add $13 trillion to the global economy by 2030 .<br>- <strong>Companies:</strong> Microsoft’s AI tools in Dynamics 365 and Slack’s AI bots are prime examples.<br>- <strong>Use Cases:</strong> Automating administrative tasks, enhancing collaboration through AI-driven insights, and optimizing workflows.</p><p><strong><em>Insights:</em></strong> AI in the workplace transforms operations, boosts productivity, and enables workers to focus on strategic tasks.</p><h3>6. AI in Healthcare</h3><p><strong><em>Explanation:</em></strong> AI improves diagnostics, personalized medicine, and operational efficiency in healthcare.</p><p><strong><em>Statistics &amp; Examples:</em></strong><br>- <strong>Market Growth:</strong> The AI healthcare market is expected to reach $45.2 billion by 2026.<br>- <strong>Companies:</strong> IBM Watson Health, Google DeepMind, and PathAI are leading companies.<br>- <strong>Use Cases:</strong> AI assists in early disease detection, personalized treatment plans, and operational efficiency in hospitals.</p><p><strong><em>Insights:</em></strong> AI revolutionizes healthcare by enhancing diagnostic accuracy, predicting patient outcomes, and optimizing treatment plans.</p><h3>7. Autonomous Vehicles</h3><p><strong><em>Explanation:</em></strong> Autonomous vehicles use AI for navigation, object detection, and decision-making to improve safety and efficiency.</p><p><strong><em>Statistics &amp; Examples:</em></strong><br>- <strong>Market Projection:</strong> Autonomous vehicle sales could represent 12% of total vehicle sales by 2030.<br>- <strong>Companies:</strong> Tesla, Waymo, and Uber are key players in this field.<br>- <strong>Use Cases:</strong> Self-driving cars, autonomous delivery robots, and advanced driver-assistance systems (ADAS).</p><p><strong><em>Insights:</em></strong> Autonomous vehicles promise to reduce accidents, lower transportation costs, and transform urban mobility.</p><h3>8. Conversational AI</h3><p><strong><em>Explanation:</em></strong> Conversational AI, including chatbots and virtual assistants, enhances human-computer interactions by understanding and generating natural language.</p><p><strong><em>Statistics &amp; Examples:</em></strong><br>- <strong>Market Growth:</strong> The conversational AI market is projected to grow to $15.7 billion by 2024.<br>- <strong>Companies:</strong> Amazon Alexa, Google Assistant, and Microsoft Cortana are prominent examples.<br>- <strong>Use Cases:</strong> Customer service automation, virtual assistants, and interactive voice response systems.</p><p><strong><em>Insights:</em></strong> Conversational AI improves user experiences, automates customer service, and provides personalized interactions at scale.</p><h3>9. AI for Cybersecurity</h3><p><strong><em>Explanation:</em></strong> AI enhances cybersecurity by detecting anomalies, predicting threats, and automating responses to cyber incidents.</p><p><strong><em>Statistics &amp; Examples:</em></strong><br>- <strong>Market Projection:</strong> The AI in cybersecurity market is expected to reach $38.2 billion by 2026.<br>- <strong>Companies:</strong> Darktrace, IBM QRadar, and Palo Alto Networks are key players.<br>- <strong>Use Cases:</strong> Real-time threat detection, automated incident response, and predictive threat analysis.</p><p><strong><em>Insights:</em></strong> AI-powered cybersecurity solutions are crucial for defending against increasingly sophisticated cyber attacks.</p><h3>10. AI for Personalization</h3><p><strong><em>Explanation:</em></strong> AI-driven personalization tailors content, products, and experiences to individual preferences and behaviors.</p><p><strong><em>Statistics &amp; Examples:</em></strong><br>- <strong>Revenue Impact:</strong> Personalized marketing campaigns can boost revenue by up to 15%.<br>- <strong>Companies:</strong> Netflix, Amazon, and Spotify use AI to provide tailored experiences.<br>-<strong> Use Cases:</strong> Recommendation engines, personalized marketing, and user experience enhancements.</p><p><strong><em>Insights:</em></strong> Personalization improves customer satisfaction and engagement by delivering relevant and customized experiences.</p><p>These AI trends illustrate the broad and profound impact of AI across various sectors, driving innovation, efficiency, and personalized experiences. Tech giants like Google, Amazon, IBM, and Microsoft are at the forefront, leveraging AI to create significant impacts and opportunities.</p><p>The AI tools that can help you explore these technologies are vast. Please have a look at my other article.</p><p>Thanks for reading😊</p><p>For more interesting content, Please do like, share and follow. You can connect with me on <a href="https://www.linkedin.com/in/sree-deekshitha-yerra"><strong><em>LinkedIn</em></strong></a> as well.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b705d5bcfa22" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A RoadMap to Machine Learning]]></title>
            <link>https://medium.com/@SreeEswaran/a-roadmap-to-machine-learning-b551b0639247?source=rss-d0e190df32c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/b551b0639247</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Sree Deekshitha Yerra]]></dc:creator>
            <pubDate>Mon, 13 May 2024 22:14:58 GMT</pubDate>
            <atom:updated>2024-05-14T07:44:16.893Z</atom:updated>
            <content:encoded><![CDATA[<h3>Before getting started?</h3><p>Machine Learning is a field of Artificial Intelligence which uses algorithms and statistical models to enable a machine to learn and make predictions or decisions. It is such a fascinating technology that, it is taking new forms every minute. To learn and get expertise in Machine Learning, one should start with some groundwork.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hztskDkDWGDPsNjnx6tb4w.png" /></figure><p>Dear Readers, This blog will give you a clear idea of how to get started with ML, a roadmap to explore the Machine Learning realm. I should mention that the roadmap introduced in this blog might have varied impact on every individual learner. Make sure you suit it according to your learning level or don’t hesitate to opt your suitable roadmap.</p><p>Whenever someone asks me about starting out with Machine Learning, the first thing I say is to learn basic terminology of Machine Learning at least to a level where they are no more strange. Generally to start out there are two ways:</p><ol><li>Start with a code, then learn theory and math behind it on the run.</li><li>Learn Fundamentals, theory and math first, try coding next.</li></ol><p>Out of these two, you might got an idea of what I would suggest. If your answer is second one first, then you are absolutely right. To learn any technology or anything, learning the basics is a must. Once you get familiar enough with the fundamentals, the learning pace gets faster and the things becomes easier for you deal.</p><p>If you start with the first one, the knowledge will be limited but accelerates the current work’s pace. If you are a potential and consistent person, this can be opted cause this path let you concentrate more on what’s actually required at that point. But without proper domain knowledge the work doesn’t seem efficient. Hence its highly recommended to learn the fundamentals.</p><h3><strong>Superpower behind ML, Math</strong></h3><p>When I said Math behind Machine Learning, there might be questions running in your mind like What mathematics?, Why do we need that?, Where can I learn that? The answer is below 👇</p><blockquote><strong>What mathematics and why?</strong></blockquote><p>If you are an engineering student, the mathematics in ML is almost gets covered in academics itself. Whether you are from software related fields or from a different background, the mathematics can be learnt easily. There are plenty of resources available online. In Mathematics, especially Linear Algebra, Calculus, Probability and Statistics are the key areas. For the question why?, here goes the answer:</p><p>In Machine Learning we work with Statistic models and algorithms which comprises a lions share of mathematics. Let me tell you where we gonna use,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uKOi8u4fRlXWfEFeVi0jBQ.jpeg" /></figure><ol><li><strong>Linear Algebra:</strong> <br> — To understand matrices, vectors and to perform operations like matrix multiplication and transpose.<br> — To design and implement algorithms like Principle component analysis (PCA), Singular Value Decomposition (SVD).</li><li><strong>Calculus:</strong> <br> — To understand concept behind gradients (derivatives), gradient-based optimization algorithms like gradient descent.<br> —Helps in function optimization, by finding maxima and minima. <br> — For backpropagation in training neural networks</li><li><strong>Probability:</strong> <br> — It is the core for algorithms like Naïve Bayes, Gaussian, other Bayesian methods and optimization.<br> — For Speech Recognition, probabilistic models like Hidden Markov Models(HMMs).<br> — To deal Probability distributions like discrete distributions (Bernoulli, Binomial, Poisson) and continuous distributions ( Gaussian(Normal), Exponential) and helps understanding the activation functions</li><li><strong>Statistics:</strong> <br> — Plays a key role in Feature Engineering concepts like Normalization, Handling missing data and feature selection. <br> — Helps in model evaluation like confusion matrix, and metrics like accuracy, precision and recall.<br> — This fundamental of Machine Learning includes descriptive statistics like Measures of Central Tendency (Mean, Median, Mode), Variance, Standard Deviation and Percentiles, Inferential Statistics like Inferential Statistics like Hypothesis Testing (ANOVA, z-tests, t-tests)</li></ol><blockquote><strong>Where can I learn that?</strong></blockquote><p>There are many platforms which offer the courses on Mathematics and Fundamentals of Machine Learning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/284/1*Etm3J83OgSieDNcRed4YXg.png" /></figure><ol><li><strong>Introduction to Machine Learning:</strong><br> — [<strong>Coursera</strong>: Machine Learning by Andrew Ng](<a href="https://www.coursera.org/learn/machine-learning">https://www.coursera.org/learn/machine-learning</a>)<br> — [<strong>edX</strong>: Principles of Machine Learning by Microsoft](<a href="https://www.edx.org/course/principles-of-machine-learning-microsoft-dat203-1x">https://www.edx.org/course/principles-of-machine-learning-microsoft-dat203-1x</a>)<br> —[<strong>Google</strong>: Machine Learning Crash Course](<a href="https://developers.google.com/machine-learning/crash-course/">https://developers.google.com/machine-learning/crash-course/</a>)</li><li><strong>Linear Algebra:</strong><br> — [<strong>FreeCodeCamp: </strong>Linear Algebra Course by Dr.Jim Hefferon <a href="https://www.freecodecamp.org/news/linear-algebra-full-course/">https://www.freecodecamp.org/news/linear-algebra-full-course/</a><br> —[<strong>Khan Academy:</strong> Linear Algebra](<a href="https://www.khanacademy.org/math/linear-algebra">https://www.khanacademy.org/math/linear-algebra</a>)<br>— [<strong>3Blue1Brown:</strong> Essence of Linear Algebra](<a href="https://www.youtube.com/playlist?list=PLZHQObOWTQDPD3MizzM2xVFitgF8hE_ab">https://www.youtube.com/playlist?list=PLZHQObOWTQDPD3MizzM2xVFitgF8hE_ab</a>)</li><li><strong>Calculus:</strong><br> — [<strong>Khan Academy:</strong> Calculus](<a href="https://www.khanacademy.org/math/calculus-1">https://www.khanacademy.org/math/calculus-1</a>)<br> — [<strong>MIT OpenCourseWare:</strong> Single Variable Calculus](<a href="https://ocw.mit.edu/courses/mathematics/18-01sc-single-variable-calculus-fall-2010/">https://ocw.mit.edu/courses/mathematics/18-01sc-single-variable-calculus-fall-2010/</a>)<br> —[<strong>Academic Lesson:</strong> Calculus for Beginners] (<a href="https://www.youtube.com/watch?v=8stueNPVl-I">https://www.youtube.com/watch?v=8stueNPVl-I</a>)</li><li><strong>Probability:</strong><br> — [<strong>Great Learning: </strong>Probability Courses<strong>] (</strong><a href="https://www.mygreatlearning.com/probability/free-courses">https://www.mygreatlearning.com/probability/free-courses</a>)<br> — [<strong>Coursera:</strong> Mathematics for Machine Learning](<a href="https://www.coursera.org/specializations/mathematics-machine-learning">https://www.coursera.org/specializations/mathematics-machine-learning</a>)</li><li><strong>Statistics:</strong><br> — [<strong>SCALER: </strong>Statistics Full Course For Beginners<strong>] (</strong><a href="https://www.youtube.com/watch?v=LJa4_yGOmwo">https://www.youtube.com/watch?v=LJa4_yGOmwo</a>)<br> — [<strong>FreeCodeCamp:</strong> Statistics — A Full University Course on Data Science Basics](<a href="https://www.youtube.com/watch?v=xxpc-HPKN28">https://www.youtube.com/watch?v=xxpc-HPKN28</a>)</li></ol><p>These courses are few most popular courses. More resources will be published in my new blog.</p><h3>Prerequisites</h3><p>From the step one, learning the fundamentals of ML and Math behind it was covered. Now let’s go to next step that is coding. To code, one should know the programming language. For Machine Learning, the programming languages used are either Python or R. <strong><em>Tip: Until this step, it is all common in advanced Machine Learning fields as well</em></strong></p><blockquote><strong>1. Learning Python or R</strong></blockquote><p>→ <strong>Python or R</strong> can be used for Data Mining, Data Warehousing, Machine Learning, Deep Learning, NLP, Computer Vision and other advanced ML fields.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/286/1*Z8lCfm-dnIgqrwVYgkPMng.jpeg" /></figure><p>→ Some best and free courses on <strong>Python and R</strong> :</p><ul><li>[<strong>Google:</strong> Google’s Python Class] (<a href="https://developers.google.com/edu/python/">https://developers.google.com/edu/python/</a>)</li><li>[<strong>Coursera:</strong> Statistics with Python] (<a href="https://www.coursera.org/specializations/statistics-with-python">https://www.coursera.org/specializations/statistics-with-python</a>)</li><li>Google, AWS, IBM, Coursera and other, offer courses on machine learning and professional certifications are available as well.</li></ul><blockquote><strong>2. Data:</strong></blockquote><p>→ Data is the information which is used by algorithms to learn patterns, perform tasks or make predictions.</p><p>→ The data is readily available online or cane be manually prepared.</p><p>→ For datasets, I recommend Kaggle and Huggingface.</p><p>→ Mostly the data you collect is considered as raw data. To use this data for training, preprocessing is highly recommended. If not the model’s performance will be effected.</p><blockquote><strong>3. Data Preprocessing</strong></blockquote><p>→ Data Preprocessing is a phase where the raw data is transformed into training suitable format.</p><p>→ There are several techniques like cleaning, transforming, handling missing values, normalization, organizing and enhancing data quality.</p><p>→ Few commonly used techniques:</p><ul><li><strong>Handling Missing data:</strong> Impute missing data using central tendency measures.</li><li><strong>Feature Engineering: </strong>Used to create new features from existing onesand for normalizing the features.</li><li><strong>Dimensionality Reduction: </strong>Used to reduce number of features in a dataset. This simplifies the model and improves the computational efficiency of the model. Eg.,Principal Component Analysis(PCA)</li></ul><blockquote><strong>4. Data Visualization</strong></blockquote><p>→ Data Visualization is the graphical representation of the data and information using visual tools like charts, graphs and maps.</p><p>→ The data visualizations helps us to understand the patterns, trends, outliers and other complex data.</p><p>→ These enhance the effectiveness of communicating the complex information. It works like a story telling.</p><p>→ Guides in decision making.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/290/1*O8AIorS0ocX0WcqtqW1jlw.jpeg" /></figure><p>→ <strong>Types of Visualizations</strong>:</p><ul><li><strong>Bar Charts:</strong> To compare categories (Eg.,Product Sales)</li><li><strong>HeatMaps:</strong> To visualize matrices like correlation matrices (Eg.,Stocks)</li><li><strong>Maps:</strong> To visualize Geospacial data (Eg.,Education rate per country)</li><li>Line Charts, Scatter Plots, etc..</li></ul><p>→ The courses mentioned in Learning Python Section covers the Data Visualization also.</p><blockquote><strong>5. Learning Algorithms</strong></blockquote><p>→ Popularly Machine Learning is categorized into three types based on teh type of learning. They are:</p><ul><li><strong>Supervised Learning</strong></li></ul><p>=&gt; In Supervised Learning, Input and output is used to train the model and the goal is to map the input and output.</p><p>=&gt; <strong>Regression:</strong> To predict continuous numerical value, eg., house price prediction.</p><p>=&gt; <strong>Classification:</strong> To predict the categorical label or class, eg., spam detection.</p><ul><li><strong>Unsupervised Learning</strong></li></ul><p>=&gt;In unsupervised learning, the model is trained on a dataset with input and no corresponding labels, and the goal is to find hidden patterns in the data.</p><p>=&gt; Includes tasks like dimensionality reduction, clustering an density estimation.</p><p>=&gt; <strong>Clustering:</strong> To group the similar data points</p><p>=&gt;Dimensionality Reduction</p><ul><li><strong>Reinforcement Learning</strong></li></ul><p>=&gt; In Reinforcement Learning, the algorithm learns by interacting with an environment and receiving feedback.</p><p>=&gt; The goal is to learn a strategy that maximizes the efficiency and performance over the time, eg., autonomous vehicle.</p><blockquote><strong>6. Model Evaluation and Optimization</strong></blockquote><p>→ This step is used to evaluate the model’s performance and optimizing it further for better performance.</p><p>→ In other words, it can be expressed as accessing the model performance and fine-tuning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/299/1*mrEmv7hdm8l5QeIVaSf2VQ.jpeg" /></figure><p>→ <strong>Evaluation Metrics:</strong> Accuracy, Precision, Recall, F1-Score, ROC Curves and AUC.</p><p>→ <strong>Hyperparameter Tuning:</strong> Optimizing the model parameters like random search and grid search.</p><blockquote><strong>7. Projects</strong></blockquote><p>To test your knowledge, experimenting is highly recommended. Try out new projects. Here are few examples:</p><p>→ Spam Detection</p><p>→ Regression on wine dataset</p><p>→ Weather Forecasting</p><p>→ Sentiment Analysis</p><p>→ Classify Breast Cancer</p><p>→ Detect credit card fraud</p><p>→ Forecast stock prices</p><p>→ Analyze sales trends</p><p>→ Predict heart disease using logistic regression.</p><p>These projects can help you figure out your skills.</p><p>I will be updating the blog with content or resources if any. For more content on Machine Learning, Deep Learning, NLP, LLM, Computer vision and other AI fields, do follow me on Medium.</p><p>For the projects=&gt; I will explain the concepts and provide the codes as well. If any queries please don’t hesitate to reach me.</p><h3>Thankyou for reading😊</h3><h3>Please Like, Share and Subscribe!!!</h3><p>For more interesting content follow me on <a href="https://www.linkedin.com/in/sree-deekshitha-yerra"><strong><em>LinkedIn</em></strong></a> and <a href="http://www.medium.com/@SreeEswaran"><strong><em>Medium</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b551b0639247" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Meta Llama 3- Beyond the model]]></title>
            <link>https://medium.com/@SreeEswaran/meta-llama-3-beyond-the-model-d1cedd110cbd?source=rss-d0e190df32c5------2</link>
            <guid isPermaLink="false">https://medium.com/p/d1cedd110cbd</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llama-3]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[meta]]></category>
            <dc:creator><![CDATA[Sree Deekshitha Yerra]]></dc:creator>
            <pubDate>Sat, 20 Apr 2024 21:46:48 GMT</pubDate>
            <atom:updated>2024-04-20T21:46:48.206Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello Readers! Welcome to Meta Llama 3, the talk of the digital realm, taking over the AI landscape and unleashing it’s potential. Meta Llama 3- not just a model, but a cosmic llama whisperer- awaits your arrival. Let’s dive in, shall we?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tOj1BTMzA3nepjqTJmbvhg.jpeg" /></figure><h3>🦙What is Meta Llama 3?</h3><p>Llama 3 is a powerful open source large language model designed for developers, businesses to experiment, build and responsibly scale their generative AI ideas. LLaMA stands for Large Language Model Meta AI, a family of auto regressive LLMs, introduced by Meta AI beginning February 2023.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/249/1*oD2-LP-TV9jF4zTnVMP6pQ.jpeg" /></figure><blockquote><strong>1. Performance and Scalability</strong></blockquote><ul><li><strong>State-of-the-Art Brilliance:</strong> Meta Llama 3 is a fusion of neural connections, seamlessly blending context, semantics, and pragmatics. It can understand language nuances like bee buzzing.</li><li><strong>Multi-Step Magic:</strong> Llama 3 is great at handling complex tasks, helping out with everything from coding to deep thinking, just like a seasoned performer.</li><li><strong>Refined Elegance:</strong> Post-training in Llama 3 includes refining responses, minimizing errors, and and sprinkles diversity like confetti at a celebration.</li></ul><blockquote><strong>2. Model Details</strong></blockquote><ul><li><strong>Two Flavors, One Llama:</strong> From 8B or 70B pretrained and instruction-tuned versions of Llama, one can choose one’s potion.</li><li><strong>Data Buffet:</strong> Llama 3 is basically feasted on a whopping 15 trillion tokens during training. That’s more tokens than there are stars in the digital sky!</li><li><strong>Contextual Hug:</strong> Llama3 with an 8K-token context length, not just whispers; it orchestrates.</li></ul><blockquote><strong>3. Responsible AI</strong></blockquote><ul><li><strong>The Llama Code of Ethics:</strong> The Responsible Use Guide (RUG) is as thick as a tome. It covers bias, ethics, and safety with no shortcuts!</li><li><strong>Llama Guard 2:</strong> Llama Guard 2 stands watch ensuring the cybersecurity, code safety and secures our digital landscape.</li></ul><h3>🌐 Meta AI: A Digital Shield</h3><blockquote><strong>1. Coding and Beyond</strong></blockquote><ul><li><strong>Meta AI’s Toolbox:</strong> Meta AI flexes its digital strength in debugging, optimizing and crafting algorithms. This is like having a llama code whisperer for refining your algorithms with precision.</li><li><strong>Agents and Architects:</strong> Llama 3 doesn’t limit for solo acts. Building intelligent agents, chatbots, AI-powered marvels and more . The world is your digital playground.</li></ul><blockquote><strong>2. Where to Find Llama</strong></blockquote><ul><li><strong>Social Media :</strong> Meta AI is like a social butterfly which makes waves across Facebook, Instagram, WhatsApp, Messenger, and Web. It’s the life of the digital realm.</li></ul><p>Recently, WhatsApp has a recent update to Llama3 Meta. It’s like WhatsApp but for research, making it easier for scientists to gather and understand lots of data from different studies. Just as the WhatsApp update makes messaging a breeze, enhance user experiences and unlock new possibilities, Llama3 Meta makes research more understandable and manageable.</p><ul><li><strong>Ray-Ban Meta Smart Glasses:</strong> In the US, these glasses let you see the world through llama-tinted lenses.</li><li><strong>Meta Quest:</strong> With the success of Llama 3, now llama-powered quests and digital adventures are awaiting for us.</li></ul><h3>🌟 Conclusion</h3><p>It’s high time we hop on board with Meta Llama 3, the digital llama — a fusion of timeless wisdom and future with endless possibilities. So, seize the moment, grab your digital lasso and join the herd. Adventure awaits!</p><p>If you are eager to learn more about Llama tales, visit the official Meta Llama 3 page and let your curiosity gallop free.</p><h3>📚Sources:</h3><ul><li>Meta Llama 3</li><li>A batch of updates from Meta puts AI front and center when you use its apps</li><li>Latest Llama updates Meet Your New Assistant: Meta AI, Built With Llama 3</li></ul><h3>Thanks for reading😊</h3><p>Feel free to reach out if you would like to share your thoughts, suggestions or any questions. Your feedback is most valued.</p><p>For more engaging content follow me on<em> </em><a href="https://www.linkedin.com/in/sree-deekshitha-yerra"><strong><em>LinkedIn</em></strong></a>. Don’t forget to like, share and follow me on <a href="https://medium.com/@SreeEswaran"><strong><em>Medium</em></strong></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1cedd110cbd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>