<?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 PreetiYadav on Medium]]></title>
        <description><![CDATA[Stories by PreetiYadav on Medium]]></description>
        <link>https://medium.com/@preetiyadavg76?source=rss-32a57e7197f0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*TsZG_YT0uQrJuzGELmDumw.jpeg</url>
            <title>Stories by PreetiYadav on Medium</title>
            <link>https://medium.com/@preetiyadavg76?source=rss-32a57e7197f0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 17:28:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@preetiyadavg76/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[Interesting topics in Data Mining]]></title>
            <link>https://medium.com/@preetiyadavg76/interesting-topics-in-data-mining-bae8c6094b41?source=rss-32a57e7197f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/bae8c6094b41</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[graph-mining]]></category>
            <category><![CDATA[components]]></category>
            <category><![CDATA[data-mining]]></category>
            <category><![CDATA[visualization]]></category>
            <dc:creator><![CDATA[PreetiYadav]]></dc:creator>
            <pubDate>Wed, 08 Feb 2023 06:49:36 GMT</pubDate>
            <atom:updated>2023-02-08T06:49:36.984Z</atom:updated>
            <content:encoded><![CDATA[<p>Written by: Preeti Yadav(201550105) GLA University</p><p>After a long time away, I’m excited to be back with an interesting article that I’m sure you will all enjoy. The world of data mining has been changing rapidly over the past few months and it is becoming increasingly important for businesses and organizations to stay up-to-date with the latest trends. In this article, we will discuss some of the most important components and research areas related to data mining, so that you can gain more insight into this complex field. We hope that by the end of this article, you will have a better understanding of how data mining is being used in our society today.</p><p>Data mining research refers to the study and development of methods and algorithms for the extraction of knowledge and insights from data. It involves the application of mathematical and statistical techniques to identify patterns, relationships, and trends in large data sets.</p><p>Some common areas of research in data mining include:</p><ol><li>Predictive modeling: The development of algorithms to predict future outcomes based on past data.</li><li>Clustering: The grouping of data points into similar categories based on their characteristics.</li><li>Association rule mining: The discovery of relationships between variables in the data.</li><li>Anomaly detection: The identification of data points that deviate significantly from the normal patterns in the data.</li><li>Text mining: The process of extracting information from text-based data sources such as documents and social media posts.</li><li>Deep learning: The application of neural networks to data mining for improved accuracy and performance.</li><li>Graph mining: The analysis of relationships between entities in graph-based data such as social networks.</li></ol><p>Data mining research also involves the development of new techniques and tools for handling big data, improving the scalability and efficiency of algorithms, and addressing privacy and security concerns in data analysis. Data mining research aims to create more effective and efficient methods for turning data into valuable insights.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gtJeCka-IbI3z1HfoX8scg.jpeg" /></figure><p><strong>PREDICTIVE MODELLING:</strong> Predictive modeling is a statistical technique used in data mining to make predictions about future events or outcomes based on historical data. It involves building a model that can capture patterns and relationships in the data, and then using this model to make predictions.</p><p>The process of predictive modeling typically involves the following steps:</p><ol><li>Data collection: The first step is to collect data that is relevant to the problem being solved.</li><li>Data preparation: The collected data is then cleaned, transformed, and prepared for analysis.</li><li>Model selection: A suitable model is selected based on the problem being solved, the type of data available, and the desired level of accuracy.</li><li>Model training: The model is then trained using the prepared data, adjusting the parameters of the model to minimize the prediction error.</li><li>Model evaluation: The trained model is then evaluated using metrics such as accuracy, precision, recall, and F1 score, to determine its effectiveness.</li><li>Model deployment: The final step is to deploy the model in a production environment and make predictions based on new data.</li></ol><p>Predictive modeling is used in a wide range of applications, such as customer behavior analysis, fraud detection, predictive maintenance, and disease diagnosis. The goal of predictive modeling is to provide insights that can help organizations make better decisions and improve their operations.</p><p><strong>CLUSTERING:</strong> Clustering is a data mining technique used to group similar data points into clusters based on their similarities. The goal of clustering is to partition a data set into groups such that data points within a group are more similar to each other than to data points in different groups.</p><p>The process of clustering typically involves the following steps:</p><ol><li>Data preparation: The first step is to prepare the data for analysis, which can include cleaning, transforming, and normalizing the data.</li><li>Distance measurement: A distance metric is chosen to measure the similarity between data points, such as Euclidean distance or cosine similarity.</li><li>Clustering algorithm selection: A suitable clustering algorithm is selected based on the type of data and the desired outcome, such as k-means, hierarchical clustering, or DBSCAN.</li><li>Cluster formation: The selected algorithm is then applied to the data to form clusters.</li><li>Cluster evaluation: The formed clusters are evaluated using metrics such as silhouette score or Calinski-Harabasz index to determine the quality of the clustering solution.</li></ol><p>Clustering is used in many applications, such as market segmentation, customer behavior analysis, image classification, and anomaly detection. The goal of clustering is to uncover hidden patterns and relationships in data and gain a better understanding of the data.</p><p><strong>ASSOCIATION RULE MINING: </strong>Association rule mining is a data mining technique used to discover relationships or associations between variables in large data sets. The goal of association rule mining is to find frequent patterns of items that occur together in transactions or events and represent these patterns as “if-then” rules.</p><p>The process of association rule mining typically involves the following steps:</p><ol><li>Data preparation: The first step is to prepare the data for analysis, which can include cleaning, transforming, and aggregating the data.</li><li>Itemset generation: An itemset is a collection of items or variables that occur together in transactions. The goal is to find all possible itemsets that occur frequently in the data.</li><li>Association rule generation: Association rules are generated from the frequent itemsets, using metrics such as support, confidence, and lift to measure the strength of the association.</li><li>Rule evaluation: The generated rules are then evaluated using metrics such as lift, conviction, and leverage, to determine their significance and usefulness.</li><li>Rule pruning: The final step is to prune the rules to remove redundant or weak rules.</li></ol><p>Association rule mining is used in a wide range of applications, such as market basket analysis, recommendation systems, and fraud detection. The goal of association rule mining is to find hidden relationships in data that can be used to make informed decisions and improve business operations.</p><p><strong>TEXT MINING: </strong>Text mining is the process of extracting information and insights from unstructured text data. It involves the application of natural language processing (NLP) techniques, text analytics, and machine learning algorithms to analyze large amounts of unstructured text data, such as documents, social media posts, and news articles.</p><p>The process of text mining typically involves the following steps:</p><ol><li>Data collection: The first step is to collect text data from various sources, such as the web, databases, or text files.</li><li>Data preprocessing: The collected text data is then cleaned and preprocessed, which can include tasks such as tokenization, stemming, and removing stop words.</li><li>Text representation: The preprocessed text data is then transformed into a numerical representation, such as a term-document matrix, to make it suitable for analysis.</li><li>Text analysis: The transformed text data is then analyzed using techniques such as sentiment analysis, topic modeling, and named entity recognition to extract meaningful insights.</li><li>Results interpretation: The final step is to interpret the results and extract meaningful insights that can be used to make informed decisions and improve business operations.</li></ol><p>Text mining is used in a wide range of applications, such as customer feedback analysis, sentiment analysis, and content classification. The goal of text mining is to uncover hidden patterns and relationships in text data and gain a better understanding of the data.</p><p>Deep learning is a subfield of machine learning that uses artificial neural networks to model and solve complex problems. The components of deep learning include:</p><ol><li>Artificial Neural Networks: A network of interconnected nodes that process information and learn from data inputs.</li><li>Layers: The building blocks of a neural network, composed of multiple interconnected nodes or neurons.</li><li>Activation Functions: Determines the output of a neuron, based on the weighted sum of inputs from other neurons.</li><li>Gradient Descent: An optimization algorithm used to adjust the weights of the neural network to minimize the loss function.</li><li>Backpropagation: A technique used to train the neural network, where errors are propagated back through the network to update the weights.</li><li>Convolutional Neural Networks (CNNs): A type of neural network commonly used in computer vision, that performs convolution operations to extract features from images.</li><li>Recurrent Neural Networks (RNNs): A type of neural network commonly used in sequential data analysis, that uses feedback connections to process sequences of inputs.</li></ol><p>Graph mining is a subfield of data mining that deals with the analysis of graph-structured data. The components of graph mining include:</p><ol><li>Graph Structures: Representation of data as a set of nodes and edges, where nodes represent entities and edges represent relationships between entities.</li><li>Graph Algorithms: Algorithms used to analyze graph data and extract valuable information, such as graph centrality measures, community detection algorithms, and link prediction algorithms.</li><li>Centrality Measures: Algorithms that determine the importance of nodes in a graph, such as a degree centrality, betweenness centrality, and eigenvector centrality.</li><li>Community Detection: Algorithms that partition a graph into smaller subgroups of tightly connected nodes, based on some measure of similarity.</li><li>Link Prediction: Algorithms that predict missing or future edges in a graph, based on the relationships between existing nodes.</li><li>Graph Visualization: Techniques used to visually represent graph data, such as node-link diagrams, matrix plots, and heat maps.</li><li>Graph Databases: Databases designed to store and manage graph data, providing efficient querying and indexing capabilities for graph analysis.</li></ol><p>Thank you for taking the time to read this article — we hope you enjoy it!</p><p>Writing an article can be a daunting task, and sometimes you just need to bounce your ideas off someone else. That’s why I’m asking for your opinion on my article — it helps me to see if I’m on the right track and what changes I can make in order to create an even better piece of writing. Your input is valuable to me, so please feel free to reach out to me via email <strong>(preetiyadavg11@gmail.com) </strong>so that we can discuss it in more detail. I’m sure we’ll both benefit from the exchange of ideas!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bae8c6094b41" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Brief Introduction to Data Mining]]></title>
            <link>https://medium.com/@preetiyadavg76/a-brief-introduction-to-data-mining-8abe23a7e6b9?source=rss-32a57e7197f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/8abe23a7e6b9</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[knowledge-discovery]]></category>
            <category><![CDATA[crisp-dm]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-mining]]></category>
            <dc:creator><![CDATA[PreetiYadav]]></dc:creator>
            <pubDate>Sun, 11 Sep 2022 21:15:30 GMT</pubDate>
            <atom:updated>2022-09-11T21:19:47.266Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Written By: Preeti Yadav(GLA University,201550105)</blockquote><p>I came across various definitions when I first started data mining, therefore I’m here to make your initial steps in data mining simpler.</p><p>Let’s start with the most basic description of Data mining.</p><p><strong>Introduction: </strong>Data mining is an interdisciplinary subfield of computer science and statistics with an overall goal of <strong><em>extracting information</em></strong>(with intelligent methods) from a dataset and <strong><em>transforming</em></strong> the information into a <strong><em>comprehensible structure</em></strong> for further use. Large data sets are sorted through data mining in order to find patterns and correlations that may be used in data analysis to assist solve business challenges. Enterprises can forecast future trends and make better-educated business decisions thanks to data mining techniques and technologies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lVUUvffvdfiubeX3VuVPUQ.jpeg" /></figure><p><strong>Task Of Data Mining: </strong>Actual data mining task is a semi-automatic/automatic analysis of large quantities of data to extract from previously unknown, interesting patterns such as a group of data records(cluster analysis), unusual records(anomaly detection), and dependencies(association rule mining, sequential pattern mining).</p><p>Confused…!! So what’s the difference in data analysis? Is it the same or not?? Let’s resolve…</p><p><strong><em>Data Analysis</em></strong> is used to test models and hypotheses on the dataset. Eg: Analyzing the effectiveness of a marketing campaign, regardless of the amount of data.</p><p><strong><em>Data Mining</em></strong> uses machine learning and statistical models to uncover hidden patterns in a large amount of data.</p><blockquote><em>Data mi</em>ning is an analysis step of the <strong>“Knowledge discovery in database”.</strong></blockquote><p><strong>WHY DATA MINING??</strong></p><p>Let us comprehend the pattern of data mining upliftment because there is a solid backdrop behind its existence.</p><p>Early methods of identifying patterns in data include<em> </em><strong><em>“Baye’s Theorem”</em> and <em>“Regression Analysis”,</em></strong> but due to the increasing power of computer technologies, there is a dramatical increase in data collection, storage, and manipulation abilities. As datasets have grown in size and complexity, direct “hands-on” data analysis has increasingly been augmented with indirect, automated <em>data preprocessing, aided by other discoveries in computer science </em>specifically in the field of machine learning, such as neural network, cluster analysis, genetic algorithm, decision trees, and sums.</p><p>Data mining is the process of applying these methods with the <strong><em>intention of uncovering hidden patterns</em></strong> in large datasets. OR Data mining <em>bridge the gap</em> between <strong><em>applied statistics and artificial intelligence</em></strong>(usually provide the mathematical background) to database management by exploiting the way data is stored and indexed in the database <strong><em>to execute the actual learning and discovering algorithms more efficiently.</em></strong></p><blockquote><strong><em>Knowledge discovery in database: </em></strong>The automatic identification of previously unidentified patterns, rules, and other regular features that are implicitly present in massive amounts of information is known as knowledge discovery in databases (KDD).</blockquote><p><strong>KDD </strong>employs automatic detection by iteratively processing data across 5 stages:</p><ol><li>Selection</li><li>Pre-Processing</li><li>Transformation</li><li>Data Mining</li><li>Interpretation/ Evaluation</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RNOhUg-cidMQ5SHealVAXQ.png" /></figure><ol><li><strong>Selection:</strong> Acting upon a database of compiled data the targeted data is determined, and variables that will be used to evaluate for knowledge discovery are determined.</li><li><strong>Pre-Processing:</strong> Improving the data being worked with and incorporating the concept of data cleaning, predictive models for unreliable data are established in order to predict faulty, missing, attributional mismatched data, then working it out of future processes.</li><li><strong>Transformation: </strong>Narrowing the scope in terms of variety and data attributes, and organizing/sorting the information.</li><li><strong>Data Mining:</strong> Focused on shifting through the transformed data to seek out patterns(<em>Graphed and charted in a form particularly helpful for KDD</em>) of interest.</li><li><strong>Interpretation/Evaluation: </strong>At this point, data has been cleaned, converted, picked apart based on relevant attributes, and framed into visual representation to help humans better evaluate the curated part.</li></ol><p><strong>Pros of Knowledge discovery in database:</strong></p><ul><li><strong>Marketing forecasting: </strong>predictive nature, identifying product focus, identifying what other types of products customer wants.</li><li><strong>Iterative process:</strong> Data is refined at each stage by using formally acquired and previously unknown information. Knowledge acquired is cycled back into the process, enhancing its efficiency.</li><li><strong>Anomaly identification:</strong> More we know about holes in process or security volunteer abilities, the better we guard against them.</li></ul><p><strong>Cons of Knowledge discovery in database:</strong></p><ul><li><strong>Outdated</strong> doesn’t address modern realities of data science projects, big architecture, and the roles of science teams.</li><li><strong>Expensive</strong>: Storing massive, ever-developing volumes of data carries an un-obvious upfront cost.</li><li><strong>Time Taken Process:</strong> In this fast-going generation knowledge discovery is the time taken as more additional data has been collecting every second that requires sifting through, meaning the process is sure to take additional time.</li><li><strong>Waterfall</strong>: Iterative process leads to falling into the rigid and sluggish shortcoming.</li></ul><blockquote><strong>CROSS-INDUSTRY STANDARD PROCESS FOR DATA MINING(CRISP-DM): </strong>CRISP-DM is extremely complete and documented. All his stages are duly organized, structured, and defined, allowing a project could be easily understood or revised.</blockquote><p><strong>CRISP-DM</strong><em> </em><strong><em>i</em>s an open standard process model that describes common approaches used by data mining experts<em>.</em></strong></p><p>Crisp-Dm was created to address inadequacies in knowledge discovery, and the cycle of crisp-dm consists of 6 stages:</p><ol><li>Business Issue Understanding</li><li>Data Understanding</li><li>Data Preparation</li><li>Analysis/ Modeling</li><li>Validation/ Evaluation</li><li>Deployment/ Visualization</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nj4L7kunXwkK0CCu27buNA.png" /></figure><ol><li><strong>Business Issue Understanding</strong> <strong>↴</strong></li></ol><ul><li>Determine Business objective ↠ Access Situation ↠ Determine Data Science Goal ↠ Produce Project Plan</li></ul><p><strong>2. Data Understanding ↴</strong></p><ul><li>Collect Initial Data ↠ Describe data ↠ Explore Data ↠Verify data quality</li></ul><p><strong>3. Data Preprocessing ↴</strong></p><ul><li>Select Data ↠ Clean Data ↠Construct Data↠Integrate Data ↠Format Data</li></ul><p>4. <strong>Modelling ↴</strong></p><ul><li>Select Modelling technique ↠Generate test design↠ Build Model↠ Assess Model</li></ul><p><strong>5. Evaluation ↴</strong></p><ul><li>Evaluate results ↠review process↠Determine next step</li></ul><p><strong>6. Deployment ↴</strong></p><ul><li>Plan visualization↠ Plan monitoring and maintenance ↠Produce final reports↠ Review project</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/946/1*66qMo2kdeMxTZipg4x2XGQ.png" /></figure><p><strong>Pros of CROSS-INDUSTRY STANDARD PROCESS FOR DATA MINING(CRISP-DM):</strong></p><ul><li>This method is <strong>cost-effective</strong> as it includes a number of processes to take out simple data mining tasks.</li><li>CRISP-DM encourages <strong>best practices </strong>and <strong>allows projects to replicate.</strong></li><li>This methodology provides a <strong>uniform framework</strong> for <em>planning</em> and <em>managing</em> a project.</li><li>Being a <em>cross-industry standard</em>, CRISP-DM can be implemented in any Data Science project <strong>irrespective of its domain</strong>.</li></ul><p>Hopefully, this article has persuaded you to use Data Mining and Study methods (KDD and CRISP-DM) in your analytical analysis and has given you a better grasp of the DM building blocks.</p><p>You are welcome to contact us if you have any queries…!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8abe23a7e6b9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hypothesis in Machine Learning]]></title>
            <link>https://medium.com/@preetiyadavg76/hypothesis-in-machine-learning-e7db9b14baca?source=rss-32a57e7197f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7db9b14baca</guid>
            <category><![CDATA[supervised-learning]]></category>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[hypothesis-testing]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[PreetiYadav]]></dc:creator>
            <pubDate>Sat, 13 Aug 2022 16:29:33 GMT</pubDate>
            <atom:updated>2022-08-13T16:29:33.788Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Written by: Preeti Yadav(201550105, GLA University)</blockquote><p><strong>Hypothesis:</strong> Hypothesis in machine learning is a cornerstone of the subject. It is one of the most fundamental problems that machine learning research has to tackle. And it provides significant insights into the nature of different types of data, for instance, whether or not it can be processed by standard regression techniques and what kind of models work best for its analysis.</p><p>A hypothesis is the <strong><em>set of conditions</em></strong> that determines the classification into a group. It is a statement about the input data and its <strong><em>relation to the class</em></strong>. In addition, the Hypothesis provides a general framework for solving any classification problem using a finite set of features with any type and number of outputs (i.e., classification) or the hypothesis is a candidate model that approximates a target function for mapping examples of inputs to output.</p><blockquote><strong>Hypothesis is:</strong></blockquote><ol><li>Explanation of something provisional idea.</li><li>An educative guess that requires some evaluation.</li><li>A good hypothesis is testable, either true or false, and fits the evidence</li><li>Can be used to make predictions about new observations or new situations.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*1dCIIAbcYEdGjV_x79mLzA.png" /></figure><blockquote><strong>Separation in the hypothesis is divided into two main parts:</strong></blockquote><p>Machine learning algorithms are designed to be general, but in order to simplify our understanding of the model, it is often linearized into a set of locally linear basis functions.</p><ul><li>Linear and Quadratic separation is two of these linearizations.</li></ul><p><strong>Linear Separation:</strong> In machine learning, linear separation is when there are two variables in which one is linearly separable from the other.</p><ul><li>A linear separation is a hypothesis in which all points belonging to one class are separated from all points belonging to another class by at least 1 point in their respective space.</li><li>Mathematically, the mean(average) of random observation can be written as a linear combination of some observed predictor variables.</li><li>A linear separation happens when there are two features that can be represented as points on a graph (refer to using a linear function for separating labels into two categories).</li><li>There is an equation that separates these data points into their respective groups. This equation is called a “linear classifier” or “linear model.”</li><li>The goal of linear separation is to identify a relationship between the features and find which one is most important (also known as feature engineering), and find linear boundaries in feature space such that one side of the boundary corresponds to positive examples and the other negative.</li></ul><p><strong>Quadratic Separation:</strong> Quadratic separation occurs when there are two variables that do not fall on a line (meaning they are not linearly separable).</p><ul><li>A quadratic separation is a hypothesis in which there is at least one point between the classes that belong to both classes with no other points on either side of it.</li><li>Mathematically, the mean(average) of random observation can be written as a quadratic combination of some observed predictor variables.</li><li>It assumes that a line should separate data points into two groups: those on the left are less than or equal to some value and those on the right are greater than or equal to it.</li><li>The goal of the quadratic hypothesis is to use the quadratic function to find the linear separation between two data sets and then use this information to predict the relationship for future data points. The quadratic function is applied in order to have a larger separation which will help with prediction.</li><li>Quadratic hypothesis refers to using a quadratic equation, or in simpler terms, a square root; it’s not just separable by a linear equation. The separating line is more accurate when there’s more variation between data sets and less variation within each set.</li></ul><p><strong>Conclusion:</strong> Linear separation aims to identify a linear relationship between the variables and then find a linear equation that separates them. Quadratic separation identifies whether the relationship between variables is quadratic. If it is, it will find the quadratic function that separates them.</p><p>As Machine learning evolves over time, it will probably start to take on more complex forms of statistical analysis. Linear and Quadratic have provided a starting point for Machine learning scientists but it may not be a sufficient one in the future as they are unable to handle non-linear relationships which are common in real-life business problems.</p><p>I hope that this article has helped you. If you have any questions, feel free to reach out.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7db9b14baca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Regression and Various Techniques]]></title>
            <link>https://medium.com/@preetiyadavg76/regression-and-various-techniques-8928111bf354?source=rss-32a57e7197f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/8928111bf354</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[supervised-learning]]></category>
            <category><![CDATA[regression]]></category>
            <dc:creator><![CDATA[PreetiYadav]]></dc:creator>
            <pubDate>Thu, 21 Jul 2022 21:09:07 GMT</pubDate>
            <atom:updated>2022-07-21T21:09:07.358Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Written by: Preeti Yadav( GLA University, 201550105)</blockquote><p><strong>Regression:</strong> Regression is a supervised machine learning technique that helps predict continuous numerical values or quantities; for Example temperature, price, etc. The regression model can be a linear or a non-linear function. Let us understand the process of Linear Regression.</p><p>Let’s understand the concept with an example of a computer service center dataset, which records the data of time (in minutes) required in repairing a computer and the number of faulty units. Access to the code and dataset <a href="https://github.com/Preeti-Yadav-CS1/computers">https://github.com/Preeti-Yadav-CS1/computers</a></p><h4>Import the Data and understand the association of variables:</h4><p>Importing the data require a basic knowledge of pandas, NumPy, and matplotlib libraries. According to the data ‘Minutes’ is used as a target from the ‘Units’ (predictor) value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/1*vl2OY87axbvh3R4Funx1Nw.png" /></figure><p>To estimate the time taken by the service center to repair a computer either we can prefer to go with arithmetic mean (Arithmetic mean is calculated as the sum of all values divided by the total number of values) or median (Median is calculated as the middle most value in the range of values that we have when arranged in an order.)</p><ol><li>Arithmetic mean = 97.21 minutes (no matter how many faulty units we have, the model will always predict 97.21 minutes as the time needed to repair the computer.)</li><li>Median = 96.50 minutes</li></ol><p>Let’s continue with the arithmetic mean by plotting a graph that compares the various values of time taken to repair a computer (shown in the scatter plot) against the mean (represented by the horizontal red line).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*XQoa21ra7ALvirvjD2YEvg.png" /></figure><p>From the graph, it can be seen that, if ‘mean’ is used to predict the time taken to repair a computer, a significant difference between the actual (observed) value and the predicted value is high, we may have to consider other factors as well. The scatter plot suggests a linear association between the number of units replaced and the time taken to repair the computer. That means as the number of faulty units increases, the time is taken to repair the computer also increases.</p><ul><li>For example, the 2nd repair took 29 minutes. If we use the mean to predict the time, we would have predicted the time as 97.21 minutes. Here the observed time is much lesser than the predicted time. On the other hand, consider the 13th repair. The observed time taken is 154 minutes, which is larger than the predicted value by as much as 56.79 minutes.</li></ul><p><strong>Regression techniques for improvement:</strong></p><p>To predict the value of time taken to repair a computer based on the number of units being replaced, a regression model can be built using Regression analysis. Regression analysis is a statistical process for estimating the relationships between variables that can be used to build a model to predict the value of the target variable from the predictor variables.</p><p>Mathematically, a regression model is represented as y= f(X), where y is the target or dependent variable and X is the set of predictors or independent variables (x1, x2, …, xn).</p><p>Based on the number of predictor variables, we can classify the regression model into two parts:</p><ol><li>Simple Linear Regression model: If a linear regression model involves only one predictor variable, it is called a Simple Linear Regression model. Example: f(X) = ß0 + ß1x1 + ∈</li><li>Multiple Linear Regression model: If a linear regression model involves multiple predictor variables, it is called a Multiple Linear Regression model. f(X) = ß0 + ß1x1 + ß2x2 + … + ßnxn + ∈. You can understand the visualization of multiple linear regression from here.</li></ol><p><a href="https://medium.com/@preetiyadavg76/multiple-linear-regression-understand-with-implementation-707cd35448fd">https://medium.com/@preetiyadavg76/multiple-linear-regression-understand-with-implementation-707cd35448fd</a></p><p>The ß values are known as weights (ß0 is also called intercept and the subsequent ß1, ß2, etc. are called coefficients). The error, ϵ is assumed to be normally distributed with a constant variance.</p><p>Let’s proceed with</p><p><strong>Simple Linear Regression Model:</strong> We are going to frame a model to predict the time to repair a computer (number of faulty units) using a simple linear regression model. Time taken to repair a computer = ß0 + (ß1 * Units being replaced) + ε</p><p>We have to find out the best values of (ß0, ß1) that can represent the true nature of the relationship between the number of faulty units in a computer and the time taken to repair the computer.</p><p><strong>Creating and visualizing the Speculated Regression Models</strong>: We will try understanding simple linear regression with the help of 3 models, named model0, model 1, and model 2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*ikoxfm8sSitn-PWV8vSoDg.png" /></figure><p>The plots identified by the models are as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*lEOT78zQ3FggLP3H4g-PjQ.png" /></figure><p>From the plot, it can be observed that Model 1 and Model 2 predict the values of time taken to repair a computer better than Model 0.</p><p>To separately analyze each model, I have written a separate article you can prefer to read out for a deep understanding of the concept.</p><p>Link: <a href="https://medium.com/@preetiyadavg76/simple-linear-regression-understand-with-implementation-732e923674d2">https://medium.com/@preetiyadavg76/simple-linear-regression-understand-with-implementation-732e923674d2</a></p><p>That’s all about the Linear Regression Models, if you wanna read about more machine learning techniques, please let me know.</p><p>Thanks for reading the article.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8928111bf354" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Multiple Linear Regression Understand with Implementation]]></title>
            <link>https://medium.com/@preetiyadavg76/multiple-linear-regression-understand-with-implementation-707cd35448fd?source=rss-32a57e7197f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/707cd35448fd</guid>
            <category><![CDATA[multiple-linearregression]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[regression]]></category>
            <category><![CDATA[supervised-learning]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[PreetiYadav]]></dc:creator>
            <pubDate>Thu, 21 Jul 2022 21:04:45 GMT</pubDate>
            <atom:updated>2022-07-21T21:04:45.738Z</atom:updated>
            <content:encoded><![CDATA[<p>Written by: Preeti Yadav(GLA University, 201550105)</p><p><strong>Multiple Linear Regression model:</strong> If a linear regression model involves multiple predictor variables, it is called a Multiple Linear Regression model. f(X) = ß0 + ß1x1 + ß2x2 + … + ßnxn + ∈. The ß values are known as weights (ß0 is also called intercept and the subsequent ß1, ß2, etc. are called coefficients). The error, ϵ is assumed to be normally distributed with a constant variance.</p><p>We will understand the multiple linear regression using a delivery dataset, providing information about the time taken to deliver a soft drink by vending machines.</p><p>The delivery dataset is a data frame with 25 observations on the following 3 variables. <a href="https://github.com/Preeti-Yadav-CS1/computers/blob/main/delivery.ipynb">https://github.com/Preeti-Yadav-CS1/computers/blob/main/delivery.ipynb</a></p><ul><li>n.prod: Number of products stocked in a vending machine.</li><li>distance: Distance traversed by the driver mechanism of the vending machine to deliver a soft drink.</li><li>delTime: Time required to deliver the soft drink.</li></ul><p><strong>f(delTime) = ß0 + ß1(n.prod) + ß2(distance) + ∈.</strong></p><p>Start with importing the dataset:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/475/1*wF4fWDUb2wnxCjVcxz699g.png" /></figure><h3>Visualizing the delivery dataset</h3><p>A scatter plot can be used to get an insight into the nature of the relationship between the variables. Using a scatter plot, a linear association between the variables can be visually determined.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*Fr551WOi-xSSFJk2kSjdzg.png" /></figure><h3>Building a Multiple Linear Regression model</h3><p>To build a multiple linear regression model, sklearn.linear_model.LinearRegression to be used, as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*XUvXU6O2MWulZjKk_6ouOw.png" /></figure><h3>Visualizing Multiple Linear Regression model</h3><p>By now, we know that the Simple Linear Regression model represents a line and the Multiple Regression Model represents a plane (in cases of two predictors) or a hyperplane (in cases of more than two predictors).</p><p>The best fit model obtained for predicting the delTime for the given sample dataset can be visualized as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*fG8oQv7apDZrWLl87eOZKg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*m7a70txKTdvXPRzYAhdj1g.png" /></figure><h3>MultiCollinearity</h3><p>In a multiple regression model where two or more predictor variables are involved, it is possible that one predictor can be linearly predicted from the others, with a substantial degree of accuracy. In such a situation, the predictors are said to be highly correlated. In statistics, this phenomenon is called multicollinearity, or in other words collinearity between variables (Definition from Wikipedia: Multicollinearity).</p><p>Due to collinearity, the coefficient estimates (ß0, ß1, ß2.) ​of the multiple regression may change erratically in response to small changes in the model or the data. But, for a linear regression model to be valid, it is essential that the predictors of the model are linearly independent of each other.</p><p>In the case of the delivery time dataset, seen previously, the obtained best fit model shall be valid only if the predictor variables (n.prod and distance) are linearly independent of each other.</p><p><strong>f(delTime) = 2.34123+ 1.615(n.prod) + 0.0143(distance) + ∈.</strong></p><p>The variables are suggested to be linearly dependent if the correlation values are close to -1 or 1.</p><p>Hence, to determine the strength of the linear relationship between the variables, correlation can be used.</p><p>That’s the most Multiple Linear Regression, if you wanna read about more machine learning techniques, please let me know.</p><p>Thanks for reading the article.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=707cd35448fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simple Linear Regression Understand with Implementation]]></title>
            <link>https://medium.com/@preetiyadavg76/simple-linear-regression-understand-with-implementation-732e923674d2?source=rss-32a57e7197f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/732e923674d2</guid>
            <category><![CDATA[machinele]]></category>
            <category><![CDATA[regression]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[supervised-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[PreetiYadav]]></dc:creator>
            <pubDate>Thu, 21 Jul 2022 19:54:08 GMT</pubDate>
            <atom:updated>2022-07-21T21:09:53.835Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Written by: Preeti Yadav(GLA University, 201550105)</blockquote><p>This article is a sub-part of the article <strong><em>Regression and Various Techniques( </em></strong><a href="https://medium.com/@preetiyadavg76/regression-and-various-techniques-8928111bf354">https://medium.com/@preetiyadavg76/regression-and-various-techniques-8928111bf354</a>),<strong><em> </em></strong>you can access the code and dataset from my GitHub profile(<a href="https://github.com/Preeti-Yadav-CS1/computers">https://github.com/Preeti-Yadav-CS1/computers</a>)</p><p><strong>Simple Linear Regression Model:</strong> We are going to frame a model to predict the time to repair a computer (number of faulty units) using a simple linear regression model. We have to find out the best values of (ß0, ß1) that can represent the true nature of the relationship between the number of faulty units in a computer and the time taken to repair the computer.</p><p>Time taken to repair a computer = ß0 + (ß1 * Units being replaced) + ε.</p><p><strong>Creating and visualizing the Speculated Regression Models</strong>: We will try understanding simple linear regression with the help of 3 models, named model0, model 1, and model 2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*ikoxfm8sSitn-PWV8vSoDg.png" /></figure><p>The plots identified by the models are as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*lEOT78zQ3FggLP3H4g-PjQ.png" /></figure><p>From the plot, it can be observed that Model 1 and Model 2 predict the values of time taken to repair a computer better than Model 0.</p><h4><strong>Analyze model_0:</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*5X13yafJxgFm2mgzJW3_GA.png" /></figure><p>Here, it can be seen that the predicted values are significantly away from the observed values. This difference between the predicted value and the observed value is termed as an error in prediction.</p><h4>Analyze model_1:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*ouzFPb25zeL6wrGieb4yJQ.png" /></figure><p>The predicted value is close to the observed value. This further strengthens the argument that Model 1 is a better predictor than Model 0. The sum of squared errors for Model 1 is also significantly lower than Model 0.</p><h4>Analyze model_2:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*TX_FR1IB8tpI1Kupo7mj3g.png" /></figure><p>The predicted value is close to the observed value. This further strengthens the argument that Model 2 is a better predictor than Model 0.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8Nat9aOw_94-2uZ1PtD2cQ.png" /></figure><p>Until now we have learned to use coefficient values(intercept and subsequent) to fit in the model for better performance. Let’s continue with <strong>best-fit models,</strong> by using the formula for, b0, and b1 for the given sample dataset is determined as approximately 4.162 and 15.509 respectively. That’s something like the estimated time taken to repair a computer = 4.16165 + 15.50877 * the number of faulty units.</p><h4><strong>Best-fit Model:</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*p_QDUPyWLOXucOwWaoHO2g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*1ze_hGBg4h-3krdxXoKy6Q.png" /></figure><h3>Visualizing the Best Fit Model:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/1*tXSpS_Vr9J3kyOLEUGiGDQ.png" /></figure><p>This regression line (or function) gives the best estimate of the time taken to repair a computer, given the number of faulty units.</p><p>That’s all about the Simple Linear Regression Models, if you wanna read about more machine learning techniques, please let me know.</p><p>Wanna read about multiple linear regression, check this out:</p><p><a href="https://medium.com/@preetiyadavg76/multiple-linear-regression-understand-with-implementation-707cd35448fd">https://medium.com/@preetiyadavg76/multiple-linear-regression-understand-with-implementation-707cd35448fd</a></p><p>Thanks for reading the article.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=732e923674d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Popular Machine Learning Algorithms]]></title>
            <link>https://medium.com/@preetiyadavg76/popular-machine-learning-algorithms-3cc90fdf0782?source=rss-32a57e7197f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/3cc90fdf0782</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[unsupervised-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[supervised-learning]]></category>
            <category><![CDATA[naive-bayes]]></category>
            <dc:creator><![CDATA[PreetiYadav]]></dc:creator>
            <pubDate>Mon, 27 Jun 2022 04:52:42 GMT</pubDate>
            <atom:updated>2022-06-27T04:52:42.596Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Written by: Preeti Yadav( 201550105, GLA University)</blockquote><p>In this article, we’ll take a look at some of the most popular machine learning algorithms. These are algorithms that have been widely studied and used in many different applications. We’ll briefly go over what each algorithm does and how it works.</p><p><strong>Supervised Learning:</strong> Supervised learning is a type of machine learning that is used to create models that predict outputs based on the given inputs. There are two main types of supervised learning: <strong><em>classification and regression.</em></strong></p><p><strong>Classification</strong>: Classification is a type of supervised learning that is used to predict outputs that are discrete, or categorical. For example, a classification model could be used to predict whether an email is a spam or not. Algorithms that fall under the umbrella of classification are:</p><blockquote><strong>Naïve Bayes Classifier Algorithm</strong>: The Naive Bayes classifier is a machine learning algorithm that is used for classification tasks. This algorithm is based on the Bayes theorem, which states that the probability of an event is equal to the product of the prior probability and the likelihood of the event. The Naive Bayes classifier makes the assumption that the features in the data are independent of each other. This assumption is called the independence assumption. This assumption is the reason why the algorithm is called “naive”.</blockquote><ul><li>The Naive Bayes classifier is a very popular machine learning algorithm and it is used in a variety of applications such as spam filtering and text classification. The Naive Bayes classifier is a very simple algorithm and it is easy to implement. It is also very efficient and it can scale to large datasets. Despite its simplicity, the classifier does surprisingly well and is often used due to the fact it outperforms more sophisticated classification methods.</li></ul><blockquote><strong>Logistic Regression:</strong> Logistic regression is a statistical technique that is used to predict the probability of a binary outcome. In other words, it can be used to predict whether an event will occur or not.</blockquote><p>For example, you could use logistic regression to predict whether a student will pass or fail a test. In this case, the outcome would be binary (pass/fail).</p><ul><li>Logistic regression can be used when the outcome is not binary. For example, you could use logistic regression to predict the likelihood of somebody contracting a disease. In this case, the outcome would be categorical (e.g. Low, medium, high).</li><li>Logistic regression is a powerful tool that can be used in many different situations. However, it is important to remember that it is a statistical technique, and as such, it is not perfect. The predictions made by logistic regression are never 100% accurate.</li></ul><p><strong>Regression: </strong>Regression is a type of supervised learning that is used to predict outputs that are continuous, or numerical. For example, a regression model could be used to predict the price of a house based on its size. Algorithms that fall under the umbrella of regression is Linear Regression.</p><blockquote><strong>Linear Regression:</strong> Linear regression is a powerful tool that can be used to predict future values. However, it is important to understand how it works in order to get the most accurate predictions. Linear regression works by using a line of best fit to determine the relationships between variables. This line is created by using past data to find the line that minimizes the sum of the squared errors. Once this line is found, it can be used to predict future values.</blockquote><ul><li>It is important to remember that linear regression is only one tool that can be used for prediction. It is important to consider all variables when making predictions. However, linear regression can be a powerful tool when used correctly.</li></ul><p><strong>Algorithms that use Supervised Learning (Classification/Regression) both:</strong> Both classification and regression models are created using training data. This data is used to create a model that can then be used to make predictions on new data. The accuracy of the predictions made by the model will depend on the quality of the training data. Algorithms that fall under the umbrella of both classification/regression are <em>Support Vector Machine Algorithm, Decision Tree, Random Forests, and Nearest neighbors.</em></p><blockquote><strong>Support Vector Machine Algorithm: </strong>The Support Vector Machine algorithm is a powerful tool for machine learning. It is a supervised learning algorithm that can be used for both classification and regression tasks.</blockquote><p>The algorithm is based on finding a hyperplane that best separates the data into classes. They essentially filter data into categories, which is achieved by providing a set of training examples, each set marked as belonging to one or the other of the two categories. The algorithm then works to build a model that assigns new values to one category or the other.</p><blockquote><strong>Decision Tree:</strong> If you’re looking for a supervised learning algorithm that is both powerful and easy to use, you can’t go wrong with a decision tree. Decision trees are a type of machine learning algorithm that can be used for both regression and classification tasks.</blockquote><ul><li>One of the main advantages of decision trees is that they are relatively easy to understand and interpret. This is because the algorithm is based on a series of if-then-else rules, which makes it easy for humans to follow.</li><li>Another advantage of decision trees is that they are relatively robust to overfitting. This is because the algorithm automatically stops splitting when it reaches a point of diminishing returns.</li></ul><p>If you’re looking for a supervised learning algorithm that is both powerful and easy to use, you can’t go wrong with a decision tree.</p><blockquote><strong>Random Forests</strong>: Random forests are a type of supervised learning algorithm that can be used for both classification and regression tasks. The algorithm works by creating a series of decision trees, each of which is a little different from the others. The final predictions are made by averaging the predictions of all the individual trees.</blockquote><ul><li>Random forests have a number of advantages over other machine learning algorithms. They are very accurate, and they can handle large data sets with lots of features. They are also relatively easy to tune, and they don’t overfit the data as easily as some other algorithms.</li><li>One of the main disadvantages of random forests is that they can be slow to train. They are also not as easy to interpret as some other algorithms, which can be a downside if you are trying to understand how the algorithm is making predictions.</li></ul><p>If you are looking for a powerful machine-learning algorithm that can handle both classification and regression tasks, then random forests are a good option. They are accurate, robust, and relatively easy to tune. Just be aware that they can be slow to train, and they may not be as easy to interpret as some other algorithms.</p><blockquote><strong>Nearest neighbors</strong>: The nearest neighbor is a supervised learning algorithm that can be used for both classification and regression tasks. The algorithm works by finding the closest training examples to the new data point and then using those examples to make predictions.</blockquote><ul><li>The algorithm is simple to implement and can be very effective when used with large datasets. However, it can be susceptible to overfitting if the training data is not representative of the true underlying distribution.</li><li>The nearest neighbor is a powerful tool that can be used to solve many real-world problems. However, it is important to remember that the algorithm is not a panacea and must be used with care to avoid overfitting.</li></ul><p><strong>Unsupervised Learning: </strong>Unsupervised learning is a type of machine learning where the algorithm is not given any labels or target outputs to learn from. Instead, it must find structure in the data itself to learn how to label or cluster the data. This is a more difficult task than supervised learning, but can be more rewarding since it can find hidden patterns and relationships in data.</p><p><strong>Clustering:</strong> Clustering is a common technique used in unsupervised learning. This involves grouping data points together into clusters based on similarity. For example, you could cluster together data points that are close together in space. This can be useful for finding groups of similar data points, even if there are no labels or target outputs available. An algorithm that falls under the umbrella of clustering is a <em>K Means Clustering Algorithm.</em></p><blockquote><strong>K Means Clustering Algorithm:</strong> The K Means clustering algorithm is a popular choice for unsupervised learning. This algorithm can be used to group data points into clusters, based on their similarity. The K Means algorithm is relatively simple to understand and implement and can be used to find clusters in data sets of all sizes.</blockquote><ul><li>One of the advantages of K Means is that it can be used to find clusters in data sets with arbitrary shapes. This is because the algorithm only relies on the distance between data points, and not on the underlying data structure. This makes K Means a versatile tool for exploratory data analysis.</li><li>Another advantage of K Means is that it is relatively fast and efficient, even for large data sets. This is because the algorithm only needs to calculate the distances between data points, and does not need to perform any complex optimization.</li><li>One disadvantage of K Means is that it can be sensitive to outliers. This is because the algorithm only considers the distances between data points, and does not take into account the density of the data. This can lead to incorrect results if there are outliers in the data set.</li></ul><p>Overall, K Means is a powerful and popular clustering algorithm that can be used to find clusters in data sets of all sizes. This algorithm is relatively simple to understand and implement and can be used to find clusters in data sets with arbitrary shapes. However, K Means can be sensitive to outliers, and so it is important to be aware of this when using the algorithm.</p><p><strong>Reinforcement learning:</strong> The most popular reinforcement learning algorithm is Q-learning.</p><blockquote><strong>Q-learning</strong>: Q-learning is a model-free algorithm that can be used to solve problems with stochastic transitions. Q-learning is an off-policy algorithm, which means that it can learn from data that is not collected by the algorithm itself.</blockquote><ul><li>Other popular reinforcement learning algorithms include SARSA, TD learning, and Dyna-Q. SARSA is an on-policy algorithm that is used to solve problems with deterministic transitions. TD learning is an on-policy algorithm that is used to solve problems with stochastic transitions. Dyna-Q is a model-based algorithm that is used to solve problems with stochastic transitions.</li></ul><p>Reinforcement learning algorithms are a powerful tool for solving complex problems. However, they are not without their limitations. One limitation of reinforcement learning algorithms is that they can be slow to converge. Another limitation is that they can be sensitive to changes in the environment.</p><p>Despite their limitations, reinforcement learning algorithms have been shown to be effective at solving a wide range of problems. In the future, reinforcement learning algorithms will likely become more widely used as they continue to be.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*uAmOXuDuJoyOH-qvGKOiuA.png" /><figcaption>Source: <a href="https://www.edureka.co/">https://www.edureka.co/</a></figcaption></figure><p><strong>Conclusion:</strong> Clearly, there are a lot of things to consider when it comes to choosing the right machine learning algorithms. We have studied various algorithms of machine learning and found that the best one for a specific task depends on the data set and the desired outcome.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3cc90fdf0782" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Machine Learning]]></title>
            <link>https://medium.com/@preetiyadavg76/machine-learning-544257171d4c?source=rss-32a57e7197f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/544257171d4c</guid>
            <category><![CDATA[reinforcement-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[unsupervised-learning]]></category>
            <category><![CDATA[supervised-learning]]></category>
            <category><![CDATA[semi-supervised-learning]]></category>
            <dc:creator><![CDATA[PreetiYadav]]></dc:creator>
            <pubDate>Sun, 26 Jun 2022 10:58:04 GMT</pubDate>
            <atom:updated>2022-06-26T10:58:04.059Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Written by: Preeti Yadav(201550105, GLA University)</blockquote><p>This post will talk about what types of machine learning exist, and how they are different from each other. And finally, we’ll offer some practical examples of when it would be appropriate to use these technologies in your software development process.</p><p><strong>Introduction:</strong> Machine Learning is an approach to building computer programs that can learn from data without being explicitly programmed. In machine learning, a computer learns from data and experiences to produce meaningful results. It’s done by feeding the software with large amounts of data, which is all categorized and broken down into numerical values. The software learns from this information and, through repetition, starts to figure out patterns in the data that can predict future outcomes.</p><p><strong>For example</strong>, let’s say you want to predict whether a fruit fly will be male or female. You could gather data on the color, body mass, and wingspan of flies (for instance), and feed that into machine-learning software that uses an algorithm to learn the relationship between these features and gender. Then, when it sees new data from flies it hasn’t seen before, it can predict whether they are male or female with some confidence.</p><p>Four Types of machine learning:</p><ol><li>Supervised Learning</li><li>Semi-Supervised Learning</li><li>Unsupervised Learning</li><li>Reinforcement Learning</li></ol><p><strong>Supervised Learning:</strong> Supervised Learning algorithms make a model by showing examples and their corresponding output labels; the algorithm then generates rules that map inputs to outputs. The algorithm identifies patterns in data, learns from observations, and makes predictions. The algorithm makes predictions and is corrected by the operator — and this process continues until the algorithm achieves a high level of accuracy/performance. Under the umbrella of supervised learning, falls:</p><ol><li><strong>Classifications:</strong> In machine learning, classification is a supervised learning task in which the computer program learns to assign labels to examples from a training set. The training set is a collection of labeled examples, where each label corresponds to a class. The classes can be anything, such as “spam” or “not spam,” “positive” or “negative,” etc. The goal of classification is to find the label that best describes each new example that the program encounters.</li></ol><p>There are many different algorithms that can be used for classification, but some of the most popular include support vector machines, decision trees, and k-nearest neighbors. Each algorithm has its own strengths and weaknesses, so it’s important to choose the right one for your data and your task. Classification is a powerful tool for understanding and predicting the behavior of data. It can be used for everything from detecting fraudulent activity to analyzing consumer behavior. If you’re working with data, chances are you’ll need to use classification at some point.</p><p><strong>2. Regression:</strong> Regression is a supervised learning algorithm that is used to predict continuous values. Linear regression is the most common type of regression, and it works by finding the line of best fit for a given set of data points. To do this, the algorithm looks at the relationship between dependent and independent variables.</p><ul><li>Independent variables are those that can be controlled, while dependent variables are those that depend on the independent variables. In linear regression, the dependent variable is usually denoted by y, while the independent variable is denoted by x.</li></ul><p>The line of best fit is found by minimizing the sum of squared residuals. This means that the line will be such that the sum of the squares of the distances between each data point and the line will be minimized. Once the line of best fit has been found, predictions can be made for new data points by plugging them into the equation for the line.</p><p><strong>3. Forecasting: </strong>Forecasting is a common application of supervised learning. By providing a historical dataset of past data points, a supervised learning algorithm can learn to predict future data points. This can be used to forecast demand for a product, traffic patterns, or other time-based data.</p><p><strong>Semi-Supervised Learning:</strong> Semi-supervised learning is a type of machine learning that uses both labeled and unlabelled data to train models. This can be useful when there is not enough labeled data available to train a model accurately. With semi-supervised learning, the model can still learn from the unlabelled data, which can help improve its accuracy.</p><p><strong>Unsupervised Learning:</strong> Unsupervised learning is a type of machine learning algorithm that looks for patterns in data without any pre-existing labels. Under the umbrella of unsupervised learning, falls:</p><p><strong>1. Clustering: </strong>Clustering is a machine learning technique that groups data points together so that they can be more easily analyzed. This is done by finding similarities between data points and then grouping them into clusters. Clustering is often used for exploratory data analysis to find hidden patterns or groupings in data. It can also be used for predictive modeling to group new data points with similar groups.</p><p><strong>2. Dimension Reduction: </strong>One of the most popular methods for dimension reduction is Principal Component Analysis (PCA). PCA is a statistical procedure that finds the linear combination of features that best explains the variance in the data. This new feature is called the first principal component, and it captures the most variance in the data. The second principal component captures the second most variance, and so on.</p><p><strong>Reinforcement Learning:</strong> Reinforcement learning is a type of machine learning where computers are taught by rewards and punishments. In this type of learning, the computer tries different actions and is rewarded or punished based on the outcome. This helps the computer to learn which actions are more likely to lead to the desired result.</p><h4>Other terms used in the article:</h4><p><strong>Principal Component Analysis:</strong> PCA is a powerful tool for dimension reduction because it can handle both continuous and categorical data, and it doesn’t make any assumptions about the data. However, PCA does have some drawbacks. First, it can be sensitive to outliers, and second, it can be difficult to interpret the results.</p><p><strong>Multi-dimensional Scaling:</strong> MDS also finds the linear combination of features that best explains the variance in the data. However, unlike PCA, MDS can only handle continuous data.</p><p>MDS is a good choice for dimension reduction when you have continuous data and you want to preserve the relationships between points. MDS is also less sensitive to outliers than PCA. However, MDS can be also more difficult to interpret than PCA.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pbJtl40SWwLyIPturWbhJA.png" /><figcaption>Source: <a href="https://www.javatpoint.com/">https://www.javatpoint.com/</a></figcaption></figure><p>Thanks for reading the article!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=544257171d4c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Java Streams for Summing Numbers]]></title>
            <link>https://medium.com/@preetiyadavg76/java-streams-for-summing-numbers-cb0bde26e8b0?source=rss-32a57e7197f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb0bde26e8b0</guid>
            <category><![CDATA[javastreams]]></category>
            <category><![CDATA[java8]]></category>
            <category><![CDATA[java-development]]></category>
            <category><![CDATA[javacode]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[PreetiYadav]]></dc:creator>
            <pubDate>Sat, 25 Jun 2022 06:27:06 GMT</pubDate>
            <atom:updated>2022-06-25T06:27:06.701Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Written by: Preeti Yadav(201550105, GLA University)</blockquote><p><strong>Introduction: </strong>We will analyze some ways to tackle the sum of integer problems using Stream API. For simplicity we will use integers however, these can also be applicable to doubles and longs also.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ieXaavHBhInXJiKyK4RTEA.jpeg" /></figure><ol><li><strong>Stream.reduce():</strong> It is a terminal operation that is used for the reduction of the elements of the stream.</li></ol><p>Example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/386/1*S8Vw2DtT7gkk7jSC9V39lw.png" /></figure><p><strong>2 </strong>. <strong>Using Stream.collect()</strong>: The second method for calculating the sum of a list of Integers by using the collect() terminal operation.’</p><p>Example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*ZVEHc2f1ZwKFuLc8a0X5tg.png" /></figure><p><strong>3</strong>. <strong>IntStream.sum(): </strong>This method makes use of a mapper as a parameter, then calls the sum() method to calculate the sum of the stream’s element.</p><p>Example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/465/1*_XDiTRC7CePWo3O2iXC20Q.png" /></figure><p><strong>4 . Stream#sum with Map:</strong> To calculate the sum of values of a mapped object we create a stream from the values of the map.</p><p>Example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*0IWOqgsAEZskJ7MVdInqsA.png" /></figure><p><strong>5 . Stream#sum with String:</strong> Convert String into an Array, the filter out all non-integer elements.</p><p>Example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/425/1*QbLNaF0KOEEJnb-DSdPyvA.png" /></figure><p><strong>Conclusion: </strong>In this article, we discussed several methods of how calculating the sum of a list of integers by using the Stream API. The help to write the article was taken from the book “Thinking in Java” book by the 4th edition by Bruce Eckel (Author) and also from some of the articles on the website Baeldung(<a href="https://www.baeldung.com/">https://www.baeldung.com/</a>).</p><p>Thanks for reading the article.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb0bde26e8b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Artificial Neural Networks]]></title>
            <link>https://medium.com/@preetiyadavg76/artificial-neural-networks-514896f89ebe?source=rss-32a57e7197f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/514896f89ebe</guid>
            <category><![CDATA[artificial-neural-network]]></category>
            <category><![CDATA[convolutional-network]]></category>
            <category><![CDATA[backpropagation]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[PreetiYadav]]></dc:creator>
            <pubDate>Fri, 24 Jun 2022 09:29:14 GMT</pubDate>
            <atom:updated>2022-06-24T09:29:14.725Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>Written by: Preeti Yadav(201550105, GLA University), Akshat Saxena(201550016, GLA University), Mohit(202093, Central University of Haryana)</em></blockquote><p><strong>Artificial Neural Network: </strong>ANN is a subset of machine learning usually called NN’s neural network(also called “perceptrons”) or brain-inspired machine-learning model. The Neural Networks go back to the early 1970s when Warren S McCulloch and Walter Pitts coined this term. Neural network consist of input layer, hidden layer and an output layer used for finding patterns that are too complicated for a human to analyse and to teach machines to extract. Artificial neural network become so important in machine learning due to recognition of technique named “backpropagation” that fine-tune mathematical weight functions and improve the accuracy of an artificial neural network’s outputs.</p><p>Structure of a ANN is completely based on human brain, nodes in artificial neural network imitate biological neurons of human being.</p><p><strong>Input Layer: </strong>The vary first layer of neural network that receive information as input in form of text, audio files, images, numbers, etc.</p><p><strong>Hidden Layer: </strong>Multiple nodes in neural network is connected with each other via links, where nodes take input and perform mathematical computations on the input data in hidden layer where each link in hidden layer is connected with weight, and recognize the patterns that are part of.</p><p><strong>Output layer: </strong>Result that we obtain through rigorous computations performed by the middle layer/ hidden layer is then passed to output layer. Output of each node in output layer is called node value/ activation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/1*H8v3JZB6knTTQzGwuCaTdw.png" /></figure><p><strong>Types of Artificial Neural Network:</strong></p><ol><li>FeedForward ANN</li><li>FeedBack ANN</li></ol><p><strong>FeedForward ANN:</strong> Frist and simple form of neural network, where flow of information in neural network is unidirectional as their is no backward link connected to receive information or we can say there is no feedback loop or not forming any kind of cycle(directed acyclic Graph). It has an input layer, an output layer, and a hidden layer. In general, there can be multiple hidden layers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*A1yYFfwF4RMzRrXgogrJhQ.png" /></figure><p><strong>FeedBack ANN: </strong>Flow of information in this neural network is bidirectional and work as an directed cyclic graph, having a feedback loop. Mainly used for memory retention such as in the case of recurrent neural networks because these NN’S are most suited for areas where the data is sequential or time-dependent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*G93ZNWgCrNl5jKvJ9834UQ.png" /></figure><ul><li>An Artifical Neuron is the basic unit of a neural network, that calculates the weighted sum of its inputs and then applies an activation function to normalize the sum.</li></ul><p><strong>BACKPROPAGATION:</strong> Backpropagation in neural network is a short form for “backward propagation of errors”, help to calculate the gradient of a loss function with respect to all the weights in the network. Backpropagation fine-tune the weights of a neural network based on the error rate obtained in the previous iteration, and reduce error rates and make the model reliable by increasing its generalization. ERROR= Actual output- Desired Output.</p><p><strong>Working of Backpropagtion Algorithm:</strong></p><ol><li>Inputs , arrive through the connected path</li><li>Input is modeled using randomly selected weights W.</li><li>Calculate the output for every neuron from the input layer, to the hidden layers, to the output layer.</li><li>Calculate the error in the outputs.</li><li>Travel back from the output layer to the hidden layer to adjust the weights such that the error is decreased.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*-kFmHt8iKtGzdqDUSUm9wA.png" /></figure><p><strong>Activation Function:</strong> Activation Function helps the neural network to use important information while suppressing irrelevant data points, decide whether the neuron’s input to the network is important or not using simpler mathematical operations.</p><p><strong>Types of Activation Function:</strong></p><ol><li>Linear Activation Function</li><li>Non- Linear Activation Function</li></ol><p><strong>Linear Activation Function:</strong> The linear activation function, also known as “no activation,” or “identity function” where the activation is proportional to the input. The function doesn’t do anything to the weighted sum of the input, it simply spits out the value it was given. Example: Linear f(x)=x.</p><p><strong>Non- Linear Activation Function:</strong> Mainly two errors of linear are resolved through non- linear activation function.</p><ol><li>Allow backpropagation because the derivative function would be related to the input, and it’s possible to go back and understand which weights in the input neurons can provide a better prediction.</li><li>They allow the stacking of multiple layers of neurons as the output would be a non-linear combination of input passed through multiple layers.</li></ol><p>Example:</p><ol><li><strong>Sigmoid/Logistic function:</strong> It is commonly used for models which predict the probability as an output(range of 0 and 1). The function is differentiable and provides a smooth gradient, prevent jumps in output values. i.e; f(x)= 1/(1+e^-x) or f’(x) = sigmoid(x)*(1-sigmoid(x)).</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/365/1*cu9o764KU02WObUWuo7LiA.png" /></figure><p>2.<strong> ReLU(Rectified Linear Unit) Function</strong>: A certain number of neurons are activated, the ReLU function is far more computationally efficient when compared to the sigmoid function. i.e; f(x)= max(0,x)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/1*UxztuuLTD7CWArNL57Qj_A.png" /></figure><p><strong>Other terms used in Neural Network:</strong></p><ol><li><strong>Weigth:</strong> A weight decides how much influence the input will have on the output.</li><li><strong>Bias:</strong> Bias is the difference between the average prediction of our model and the correct target value which model is trying to predict.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/403/1*nGZb8yzTAqg62-QckbN7YQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=514896f89ebe" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>