<?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 Sadaf Saleem on Medium]]></title>
        <description><![CDATA[Stories by Sadaf Saleem on Medium]]></description>
        <link>https://medium.com/@sadafsaleem5815?source=rss-f3231af090cb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*K7Xomg1VCt5-A2GltKdH3w.png</url>
            <title>Stories by Sadaf Saleem on Medium</title>
            <link>https://medium.com/@sadafsaleem5815?source=rss-f3231af090cb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 16:10:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sadafsaleem5815/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[Neural Networks in 10mins. Simply Explained!]]></title>
            <link>https://medium.com/@sadafsaleem5815/neural-networks-in-10mins-simply-explained-9ec2ad9ea815?source=rss-f3231af090cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ec2ad9ea815</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[backpropagation]]></category>
            <dc:creator><![CDATA[Sadaf Saleem]]></dc:creator>
            <pubDate>Mon, 15 May 2023 11:35:23 GMT</pubDate>
            <atom:updated>2023-05-15T11:35:23.614Z</atom:updated>
            <content:encoded><![CDATA[<h3>What are Neural Networks?</h3><p>Neural networks are the fundamental building blocks of deep learning algorithms. A neural network is a type of machine learning algorithm that is designed to simulate the behavior of the human brain. It is made up of interconnected nodes, also known as artificial neurons, which are organized into layers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dVU2SuYaw6dZWYHnt2y13Q.png" /><figcaption>Source: victorzhou.com</figcaption></figure><h3>How Neural Network differs from Machine Learning?</h3><p>Neural networks are a type of machine learning algorithm, but they differ from traditional machine learning in several key ways. Most importantly, neural networks learn and improve on their own, <strong>without human intervention</strong>. It learns<strong> features directly from the data</strong>, making it better suited for large datasets. However, in traditional machine learning, features are manually provided.</p><h3>Why to use Deep Learning?</h3><p>One of the key benefits of deep learning is its ability to handle big data. As the volume of data increases, traditional machine learning techniques can become inefficient in terms of performance and accuracy. Deep learning, on the other hand, continues to perform well, making it an ideal choice for data-heavy applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/0*8w0AsftaLjPy7BVj.jpeg" /><figcaption>Source: towardsdatascience.com</figcaption></figure><p>It’s a valid question to ask why we should bother studying the structure of deep learning, rather than simply relying on the computer to generate outputs for us. However, there are many compelling reasons why a deeper understanding of the underlying structure of deep learning can lead to better results.</p><h3>Benefits of understanding the structure?</h3><p>By analyzing the structure of a neural network, we can identify ways to optimize it for better performance. For example, we can adjust the number of layers or nodes, or <strong>tweak</strong> the way the network processes input data. we can also we can <strong>develop neural networks</strong> that are better suited for analyzing medical images, or for predicting the stock market. If we know which nodes in the network are activated for a particular input, we can better <strong>understand how the network arrived at its decision</strong> or prediction.</p><h3>How Neural Network works?</h3><p>Each neuron represents a unit of computation that takes in a set of inputs, performs a set of calculations, and produces an output that is passed on to the next layer.</p><p>Just like the neurons in our brains, each node in a neural network receives input, processes it, and passes the output on to the next node. As the data moves through the network, the connections between the nodes are strengthened or weakened, depending on the patterns in the data. This allows the network to learn from the data and make predictions or decisions based on what it has learned.</p><p>Imagine a 28 by 28 grid, where a number is drawn in such a way that some pixels are darker than others. By identifying the brighter pixels, we can decipher the number that was written on the grid. This grid serves as the input for a neural network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4g7XNL75fg1Mveuc.png" /><figcaption>Source: 3Blue1Brown</figcaption></figure><p>The rows of the grid are arranged in a horizontal 1-D array, which is then transformed into a vertical array, forming the first layer of neurons. Just like this;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*PPOrlyeO7fnWo_sXeFTTMg.gif" /><figcaption>Source: 3Blue1Brown</figcaption></figure><p>In the case of the first layer, each neuron corresponds to a single pixel in the input image, and the value inside each neuron represents the <strong>activation</strong> or intensity of that pixel. The input layer of a neural network is responsible for taking in the raw data (in this case, an image) and transforming it into a format that can be processed by the rest of the network.</p><p>In this case, we have 28x28 input pixels, which gives us a total of 784 neurons in the input layer. Each neuron will have an activation value of either 0 or 1, depending on whether the corresponding pixel in the input image is black or white, respectively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AU1wW2CnRFWAd1am.gif" /><figcaption>Source: 3Blue1Brown</figcaption></figure><p>The output layer of the neural network consists of 10 neurons in this case, each of which represents a possible output class (in this case, the digits 0 through 9). The output of each neuron in the output layer represents the probability that the input image belongs to that particular class. The highest probability value determines the predicted class for that input image.</p><h3>Hidden Layers</h3><p>In between the input and output layers, we have one or more hidden layers, which perform a series of non-linear transformations on the input data. The purpose of these hidden layers is to extract higher-level features from the input data that are more meaningful for the task at hand. It is upto you how many hidden layers you want to add in your network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_oLtMBUfvBANOk5-.gif" /><figcaption>Source: 3Blue1Brown</figcaption></figure><p>Each neuron in the hidden layer receives inputs from all neurons in the previous layer, and applies a set of weights and biases to those inputs before passing the result through a non-linear activation function. This process is repeated across all neurons in the hidden layer until the output layer is reached.</p><h3>Forward Propagation</h3><p>Forward propagation is the process by which input data is passed through a neural network to generate an output. It involves computing the output of each neuron in each layer of the network by applying the weights and biases to the inputs and passing the results through an activation function.</p><p><strong>Mathematical Equation:</strong></p><pre>y = g (wo + Sigma xi. wi) or y = g (wo + Xt. W)</pre><p>where <strong>y </strong>is the output of the neural network,<strong> g</strong> is the non-linear activation function, <strong>xi</strong> refers to the i-th input feature or input variable, <strong>wi</strong> is the weight associated with the i-th input feature or variabl, and <strong>wo</strong> is the bias term, which is a constant value that is added to the linear combination of inputs.</p><p><strong>Sigma xi. wi:</strong> This is the linear combination of the input features and their associated weights. This term is also sometimes referred to as the “weighted sum” of the inputs.</p><h3><strong>Backpropagation</strong></h3><figure><img alt="Backpropagation for Dummies. All the math behind, simplest than… | by  Diletta Goglia | Analytics Vidhya | Medium" src="https://cdn-images-1.medium.com/proxy/1*VF9xl3cZr2_qyoLfDJajZw.gif" /><figcaption>Backpropagation illustration by <a href="https://machinelearningknowledge.ai/wp-content/uploads/2019/10/Backpropagation.gif">machinelearningknowledge.ai</a></figcaption></figure><p>Backpropagation is a popular algorithm used in training neural networks. It involves calculating the <strong>gradient</strong>, which is <strong>a measure of the change in the loss function</strong> with respect to each weight in the network. The <strong>loss function is a measure of how well the neural network is able to predict the correct output for a given input</strong>. By calculating the gradient of the loss function, backpropagation allows the neural network to update its weights in a way that reduces the overall error or loss during training.</p><p>The algorithm works by propagating the error from the output layer back through the layers of the network, using the chain rule of calculus to calculate the gradient of the loss function with respect to each weight. This gradient is then used in gradient descent optimization to update the weights and minimize the loss function.</p><h3><strong>Terminologies used in Neural Networks</strong></h3><ul><li><strong>Training of the neural network</strong> is the process of adjusting the weights of a neural network based on input data and desired output, in order to improve the accuracy of the network’s predictions.</li><li><strong>Weight:</strong> weights refer to the parameters that are learned during training, and they determine the strength of the connections between neurons. Each connection between neurons is assigned a weight, which is multiplied by the input value to the neuron to determine its output.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*w1w091o_Cwdk0t_UvHApyQ.png" /></figure><ul><li><strong>Bias: </strong>Bias is another learned parameter that is added to the weighted sum of inputs to a neuron in a given layer. It is an additional input to the neuron that helps to adjust the output of the activation function.</li><li><strong>Non-linear activation function:</strong> A non-linear activation function is applied to the output of a neuron to introduce non-linearity into the network. Non-linearity is important because it allows the network to model complex, nonlinear relationships between inputs and outputs. Common activation functions used in neural networks include the sigmoid function, the ReLU (Rectified Linear Unit) function, and the softmax function.</li><li><strong>Loss function:</strong> This is a mathematical function that measures the error or difference between the predicted output of the neural network and the true output. The <em>empirical loss</em> measures the total loss over our entire dataset. <em>Cross-entropy loss</em> is commonly used with models that output a probability between 0 and 1, while <em>mean squared error loss</em> is used with regression models that output continuous real numbers. The goal is to minimize the loss function during training in order to improve the accuracy of the network’s predictions.</li><li><strong>Loss optimization:</strong> This is the process of minimizing the error or loss incurred by the neural network when making predictions. This is done by adjusting the weights of the network.</li><li><strong>Gradient descent:</strong> This is an optimization algorithm used to find the minimum of a function, such as the loss function of a neural network. It involves iteratively adjusting the weights in the direction of the negative gradient of the loss function. The idea is to keep moving the weights in the direction that reduces the loss, until we reach the minimum.</li></ul><h3>Let’s remember the terms with real-life examples</h3><p>1.Consider a scenario where a company wants to maximize their profit by selling a product. They may have a model that predicts the profit based on various factors like price, marketing spend, etc. <strong>Bias </strong>could refer to any fixed factors that affect the profit of the product, but are not directly related to the price or marketing spend. For example, if the product is a seasonal item, there may be a bias towards higher profits during certain times of the year. The difference between the actual profit and predicted profit is the <strong>loss function</strong>. <strong>Gradient descent </strong>involves calculating the gradient of the loss function with respect to each input feature, and using this gradient to iteratively adjust the feature values until the optimal values are found and the process that involves finding the optimal values for the input features to minimize the loss function is the <strong>loss optimization</strong>. The profit prediction model could use a non-linear <strong>activation function</strong> to transform the input features (e.g. price, marketing spend) into a predicted profit value. This function could be used to introduce non-linear relationships between the input features and the output profit.</p><p>2.Imagine you are playing a video game where you are a character trying to reach a destination, but you can only move in two dimensions (forward/backward and left/right). You know the exact coordinates of the destination, but you don’t know how to get there. Your goal is to find the shortest path to the destination. In this scenario, the loss function could be the distance between your current position and the destination. The gradient of the loss function would be the direction and magnitude of the steepest slope towards the destination, which you can use to adjust your movement and get closer to the destination. As you move closer to the destination, the loss function decreases (since you are getting closer to your goal), and the gradient changes accordingly. By repeatedly using the gradient to adjust your movement, you can eventually reach the destination in the shortest possible path.</p><p><em>I hope you are leaving while having a good knowledge towards neural networks. For better understanding of this concept watch the video in reference.</em></p><h4>References:</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FaircAruvnKk%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DaircAruvnKk&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FaircAruvnKk%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c7ac21113d23bde7832e5a390b5a21c3/href">https://medium.com/media/c7ac21113d23bde7832e5a390b5a21c3/href</a></iframe><p><em>P.S: I pay my thanks to 3Blue1Brown community from whom I got inspired to write this article.. :)</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ec2ad9ea815" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[29 Plotting Techniques. When To Use Which Plot?]]></title>
            <link>https://medium.com/@sadafsaleem5815/29-plotting-techniques-when-to-use-which-plot-18b1b9a1a7a2?source=rss-f3231af090cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/18b1b9a1a7a2</guid>
            <category><![CDATA[visualization]]></category>
            <category><![CDATA[techniques]]></category>
            <category><![CDATA[seaborn]]></category>
            <category><![CDATA[plotting]]></category>
            <category><![CDATA[matplotlib]]></category>
            <dc:creator><![CDATA[Sadaf Saleem]]></dc:creator>
            <pubDate>Mon, 03 Apr 2023 12:28:46 GMT</pubDate>
            <atom:updated>2023-04-03T12:28:46.642Z</atom:updated>
            <content:encoded><![CDATA[<ol><li><strong>0.0. Introduction</strong></li></ol><p>Data visualization is the representation of data and information through graphs, charts, and other graphical elements, to help make sense of the data and find insights. It is a way to present data in a clear and meaningful manner, allowing for quick and easy interpretation.</p><p><strong>1.2.1. Different types of Data Visualization</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*osK-SEATZQXrftGG" /></figure><p>Pandas, a powerful data analysis library in Python, provides several types of plotting for data visualization. Here we would divide the charts into categories:</p><p><strong>1.2.2. Capture trends over time</strong></p><p>A line graph or a time series plot is commonly used to capture trends over time. The x-axis represents the time period, while the y-axis represents the measured variable. Points are plotted and connected by a line to show the change in the variable over time. A bar graph or column chart can also be used to show trends over time, especially when comparing multiple variables or categories. In this case, each bar represents a single time period and the height of the bar indicates the value of the variable for that time period.</p><p>Let’s study the details of each graphing tools that we can use to plot trends over time.</p><ol><li>Line chart</li><li>Seasonal charts</li><li>Time-series plots</li><li>Autocorrelation plots</li><li>Box-and-whisker plots</li><li>Area Chart</li><li>Stacked Area Chart</li><li>Splined Chart</li><li>Moving Average plots</li></ol><p><strong>1. Line Plot:</strong></p><p>A line plot, also known as a line graph or a time series plot, is a type of chart used to display the trend of a continuous variable over time. The x-axis represents the time period, while the y-axis represents the value of the continuous variable. Points are plotted on the chart and connected by a line, which helps to visualize the change in the value of the variable over time. Line plots are commonly used in fields such as economics, finance, and engineering to track and analyze trends and patterns in data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NhocXnhLJyevOplm.png" /></figure><p>source: <a href="https://data-to-viz.com/story/TwoNumOrdered.html">data-to-viz.com</a></p><p><strong>2. Seasonal Charts:</strong></p><p>Seasonal charts are a type of time series plot that are used to visualize the pattern of a variable that occurs at regular intervals, such as daily, weekly, or annually. The pattern of the variable is usually referred to as the “seasonality.” Seasonal charts are useful for identifying patterns and trends in data that are related to the time of year, such as sales, weather, or consumer behavior.</p><p>A seasonal chart is similar to a line plot, with the x-axis representing time and the y-axis representing the value of the variable. The difference is that the x-axis is divided into segments that represent the different seasons, and the line plot is repeated for each season to show the pattern of the variable for that season. This makes it easy to identify patterns that are specific to each season, and to compare the patterns across seasons.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/0*_pE38NWhGZN5PFoi.png" /></figure><p>source: <a href="https://www.google.com/url?sa=i&amp;url=https%3A%2F%2Fsupport.stockcharts.com%2Fdoku.php%3Fid%3Dother-tools%3Aseasonality&amp;psig=AOvVaw3pBRZsp1Bum3cxcqk0O0WV&amp;ust=1675541251874000&amp;source=images&amp;cd=vfe&amp;ved=0CBAQjRxqFwoTCLjW09yT-vwCFQAAAAAdAAAAABAE">stockcharts.com</a></p><p><strong>3. Time-series Plots</strong></p><p>A time-series plot is a type of chart used to display the trend of a continuous variable over time. The x-axis represents the time period, while the y-axis represents the value of the continuous variable. Points are plotted on the chart and connected by a line, which helps to visualize the change in the value of the variable over time. Time-series plots are commonly used in fields such as economics, finance, and engineering to track and analyze trends and patterns in data.</p><p>In a time-series plot, the time period can be represented as a continuous line, or as a sequence of discrete time steps. The plotted points can be connected with a line, a step function, or scattered without any line connecting them. Additionally, the time-series plot can be annotated with labels, markers, and shaded regions to highlight specific events or patterns in the data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eJEh5GsRyGv6VyYF.jpg" /></figure><p>source: <a href="https://sigmamagic.com/blogs/images/timeseries.jpg">sigmamusic.com</a></p><p>Time-series plots are often used to perform time series analysis, which involves statistical techniques for modeling and predicting the future values of a variable based on its past values. Time-series analysis can be used for applications such as forecasting sales, stock prices, and energy demand.</p><p><strong>4. Autocorrelation Plots</strong></p><p>Autocorrelation plots are graphical representations of the correlation between the values of a time series and its lagged (shifted) values. Autocorrelation plots are used to evaluate the presence of serial dependence (also known as autocorrelation) in a time series, which occurs when the value of the series at time t is related to the value of the series at a previous time t-k.</p><p>Autocorrelation plots display the correlation between the time series and its lagged values, for different lag values k, on the y-axis. The x-axis represents the different lag values, and the plotted points indicate the correlation coefficient for each lag. A value close to 1 on the y-axis indicates a strong positive correlation between the time series and its lagged values, while a value close to -1 indicates a strong negative correlation. A value close to zero indicates weak or no correlation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/0*dY7U891rHK9kwtA9.png" /></figure><p>source: <a href="https://otexts.com/fpp2/fpp_files/figure-html/acfelec-1.png">otexts.com</a></p><p>Autocorrelation plots are used in time series analysis to help identify patterns in the data and to select appropriate models for forecasting future values of the time series. Autocorrelation plots can also be used to determine the order of differencing required to make the time series stationary, which is a necessary step in some time series models.</p><p><strong>5. Box-and-whisker plots</strong></p><p>A box-and-whisker plot, also known as a box plot, is a type of chart used to display the distribution of a set of numerical data. It is particularly useful for comparing the distribution of multiple datasets or for identifying outliers in the data.</p><p>Box-and-whisker plots are widely used in data analysis and statistics for their simplicity and ability to provide a clear visual representation of the distribution of a dataset. They are particularly useful for comparing the distribution of multiple datasets, as well as for identifying skewness, symmetry, and outliers in the data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/0*UBHJ8f_bpgYy3IJh.png" /></figure><p>source: datavizcatalogue.com</p><p>A box plot consists of a box and two “whiskers” drawn from the box, which represent the range of the middle 50% of the data (the interquartile range or IQR). The box is drawn between the lower quartile (25th percentile) and upper quartile (75th percentile), which mark the boundaries of the middle 50% of the data. The median of the data is indicated by a line inside the box.</p><p>Outliers in the data are plotted as individual points outside the whiskers. The presence of outliers can indicate that the data is skewed or that there are exceptional values that may warrant further investigation.</p><p>6. <strong>Area Chart</strong></p><p>An area chart is a type of chart that is used to represent the evolution of a quantitative variable over time. It is similar to a line chart, but with the area between the line and the x-axis filled with color or shading. The x-axis represents the time period, while the y-axis represents the value of the quantitative variable.</p><p>In an area chart, the evolution of the variable over time is displayed by plotting points and connecting them with a line, and then filling the area between the line and the x-axis with color or shading. The filled area helps to emphasize the magnitude of the change in the variable over time, and makes it easier to visualize trends and patterns in the data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/0*O0-cQOKxsKv2P77c.PNG" /></figure><p>source: statisticshowto.com</p><p>Area charts are often used in fields such as finance, economics, and marketing to track and analyze trends and patterns in data. They are particularly useful for visualizing the evolution of cumulative variables, such as cumulative sales or cumulative stock prices, as well as for comparing the evolution of multiple variables over time.</p><p><strong>7. Stacked Area chart</strong></p><p>A stacked area chart is a type of area chart that is used to display the evolution of multiple quantitative variables over time. It is similar to a traditional area chart, but each variable is displayed as a separate layer, with the layers stacked on top of each other.</p><p>The x-axis represents the time period, while the y-axis represents the sum of the values of the variables for each time period. The area for each variable is displayed as a separate layer, with the layers stacked on top of each other to form a composite picture of the evolution of the variables over time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/0*wJ84AquaPdLSUO-5.jpg" /></figure><p>source: <a href="https://ppcexpo.com/blog/wp-content/uploads/2022/06/stacked-area-chart-excel.jpg">ppcexpo.com</a></p><p>In a stacked area chart, the evolution of each variable is displayed by plotting points and connecting them with a line, and then filling the area between the line and the x-axis with color or shading. The filled areas help to emphasize the magnitude of the change in each variable over time, and make it easier to visualize trends and patterns in the data.</p><p>Stacked area charts are often used in fields such as finance, economics, and marketing to track and analyze trends and patterns in data. They are particularly useful for comparing the evolution of multiple variables over time and for visualizing the relative contribution of each variable to the total value.</p><p><strong>8. Splined Chart</strong></p><p>A spline chart is a type of chart that is used to display the relationship between two variables. Unlike a traditional line chart, a spline chart uses curved lines, rather than straight lines, to connect the data points. The curved lines in a spline chart are smoothed and provide a more visually appealing representation of the relationship between the variables.</p><p>A spline chart typically consists of a single line connecting the data points, which can be represented as a scatter plot. The x-axis represents one variable, while the y-axis represents the other. The line in the chart is created by fitting a smooth curve to the data points, rather than simply connecting them with straight lines.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*I5ZkwcZI6XvXxIOD.png" /></figure><p>source: <a href="https://www.fusioncharts.com/dev/images/chart-anatomy/single-series-spline-2d-chart.png">fusioncharts.com</a></p><p>Spline charts are often used in fields such as engineering, finance, and statistics to visualize the relationship between two variables. They are particularly useful for analyzing and interpreting data with a high degree of variability, as the curved lines can help to identify trends and patterns in the data that might not be immediately apparent in a traditional line chart.</p><p><strong>9. Moving Average Plots</strong></p><p>A moving average plot is a type of chart used to analyze time series data. It is used to smooth out fluctuations in the data and identify trends and patterns in the underlying data over time.</p><p>A moving average is calculated by taking the average of a set of consecutive data points, and then plotting this average as a new data point. The moving average is calculated for a set of data points that “slide” over the data set, so that the moving average for each time point is based on a fixed number of surrounding data points.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PntLxpH3ufIS3vUq.png" /></figure><p>source: <a href="https://www.georgiaruralhealth.org/wp-content/uploads/2020/07/graph-1-1-1024x499.png">georgiaruralhealth.com</a></p><p>The number of data points used to calculate the moving average is called the “window size”. A smaller window size will result in a more sensitive moving average, highlighting smaller fluctuations in the data, while a larger window size will result in a smoother moving average, highlighting trends and patterns in the data.</p><p>Moving average plots are often used in fields such as finance, economics, and engineering to analyze trends and patterns in time series data. They are particularly useful for smoothing out fluctuations in the data and for identifying underlying trends and patterns in the data that might not be immediately apparent in the raw data.</p><p>In the upcoming articles, we would also be covering more plotting technique that includes;</p><p><strong>1.2.3. Capture Distributions</strong></p><ol><li>Histograms</li><li>Box plot</li><li>Violin plot</li><li>Density plots</li><li>Kernel Density plots</li><li>Swarm plots</li><li>Empirical cumulative distribution function (ECDF) plots</li></ol><p><strong>1.2.4. Visualizing Relationships</strong></p><ol><li>Bar chart</li><li>Scatter plot</li><li>Multi-line chart</li><li>Bubble chart</li><li>Column chart</li><li>Correlation matrix plot</li><li>Simple linear regression plots</li><li>Connected scatterplot</li><li>LOWEES (Locally Weighted Scatterplot Smoothing) plots</li></ol><p><strong>1.2.5. Whole-Charts</strong></p><ol><li>Pie chart</li><li>Heatmaps</li><li>Donut pie chart</li><li>Stacked Column chart</li></ol><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FkOnoObmFUE0k8%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FkOnoObmFUE0k8%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FkOnoObmFUE0k8%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="248" frameborder="0" scrolling="no"><a href="https://medium.com/media/9fa2a0a6ca7f248118c4da96329989a9/href">https://medium.com/media/9fa2a0a6ca7f248118c4da96329989a9/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18b1b9a1a7a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python OOP Fundamentals: Understanding the Basics of Object Oriented Programming]]></title>
            <link>https://medium.com/@sadafsaleem5815/python-oop-fundamentals-understanding-the-basics-of-object-oriented-programming-c649552ac490?source=rss-f3231af090cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/c649552ac490</guid>
            <category><![CDATA[class]]></category>
            <category><![CDATA[instance]]></category>
            <category><![CDATA[basics]]></category>
            <category><![CDATA[methods]]></category>
            <category><![CDATA[oop]]></category>
            <dc:creator><![CDATA[Sadaf Saleem]]></dc:creator>
            <pubDate>Wed, 29 Mar 2023 01:32:52 GMT</pubDate>
            <atom:updated>2023-03-31T21:14:33.231Z</atom:updated>
            <content:encoded><![CDATA[<p>Object-Oriented Programming (OOP) is a powerful programming paradigm that is widely used in modern software development. At its core, OOP is all about creating objects that encapsulate data and behavior, making it easy to organize code, reuse functionality, and build complex systems.</p><p>Whether you’re building a web application, a game, or a machine learning model, understanding OOP is essential to writing clean, modular, and maintainable code.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FM9kgjEsLG6LMbYC9dl%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FM9kgjEsLG6LMbYC9dl%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FM9kgjEsLG6LMbYC9dl%2F200.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="326" frameborder="0" scrolling="no"><a href="https://medium.com/media/584bc339b0b0f9787a22d60adb6b9f80/href">https://medium.com/media/584bc339b0b0f9787a22d60adb6b9f80/href</a></iframe><p>In this article, we will explore the basics of creating and instantiating classes in Python, a popular language that supports OOP natively.</p><p>Object-Oriented Programming (OOP) provides a way to model real-world objects and systems in code, making it easier to understand and modify large and complex programs.</p><p>In OOP, classes and objects are fundamental concepts that allow developers to organize code and create modular, reusable components. Let’s take an overview of basic terms we are mainly working with;</p><blockquote>Class: A class is like a blueprint or template that defines how an object/instance should look and behave.</blockquote><blockquote>Instance: An object/instance is a specific example of that blueprint, with its own unique characteristics.</blockquote><blockquote>Methods: Methods are functions that are defined inside a class and can be called on instances of that class to perform specific actions.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*vNh4NF8J4BLVqHkjeQlNdQ.png" /></figure><h3><strong>Creating a Class</strong></h3><p>To create a class in Python, you can use the class keyword followed by the name of the class.</p><pre>class Person:<br>    pass</pre><p>In this example, we’ve defined a class called “Person” that doesn’t have any properties or methods yet. The “pass” keyword is a placeholder that tells Python to do nothing when this class is defined.</p><p>To write an object in Python, you first need to define a class, which serves as a blueprint for creating objects. Once you have defined the class, you can create objects (also known as instances) of that class.</p><p>To define a method, you simply define a function inside the class. This function can then be called on instances of the class to perform specific actions.</p><p>Here’s an example:</p><pre>class Car:<br>    def __init__(self, make, model, year):<br>        self.make = make<br>        self.model = model<br>        self.year = year<br>def start_engine(self):<br>        print(f&quot;The is starting the engine.&quot;)<br>my_car = Car(&quot;Toyota&quot;, &quot;Camry&quot;, 2021)<br>my_car.start_engine()</pre><p>In this example, we have defined a Car class with a constructor that takes in make, model, and year parameters to initialize <em>instance</em> <em>variables</em>. We have also defined a start_engine <em>method </em>that simply prints a message indicating that the engine is starting.</p><p>We then create an <em>instance</em> of the Car class called my_car and call its start_engine method. This causes the message to be printed to the console, indicating that the engine is starting.</p><p><strong>Why to use </strong><strong>__init__ here?</strong></p><p>The __init__ method in Python is a constructor that gets called when a new object/instance of a class is created. It allows you to initialize the object with default values or values provided by the user.</p><p>In the above code example, __init__ method initializes the instance variables make, model, and year with values passed as arguments while creating an object of the class. If we don’t use the __init__ method to initialize the instance variables, we would have to manually set the make, model, and year properties for each instance of the Car class using dot notation. Here&#39;s an example:</p><pre>class Car:<br>    def start_engine(self):<br>        print(f&quot;The car is starting the engine.&quot;)<br><br>my_car = Car()<br>my_car.make = &quot;Toyota&quot;<br>my_car.model = &quot;Camry&quot;<br>my_car.year = 2021<br><br>my_car.start_engine()</pre><p>In this example, we create an instance of the Car class and then set the make, model, and year values using dot notation. However, this method of initializing instance variables can become tedious and error-prone if there are many variables to set or if they have complex dependencies. That&#39;s why it&#39;s generally recommended to use the __init__ method to initialize the instance variables.</p><h3>Creating Instances</h3><p>To create an instance of a class in Python, you need to call the class constructor, which is a special method that creates and initializes the instance. Here’s an example:</p><pre>person1 = Person(&quot;John&quot;, 25)</pre><p>In this example, we’ve created an instance of the “Person” class called “person1” with the name “John” and age “25”. Now we can access the instance variables using dot notation, like this:</p><pre>print(person1.name)   # Output: John<br>print(person1.age)    # Output: 25</pre><p><strong>Tip to remember terms:</strong></p><p>Here it is. Use the acronym “<strong>COM</strong>” or “”Connecting Our Minds” to remember the order of the terms: Class, Object, and Method.</p><p>To differentiate between the terms, try to think of them as a hierarchy:</p><ul><li>Classes define the properties and methods that all instances (i.e., objects) of the class will have, so classes are at a higher level of the hierarchy than objects.</li><li>Objects are instances of classes, so objects are at the lowest level of the hierarchy.</li><li>Methods are functions that are defined within a class and operate on instances of that class.</li></ul><p><strong>Still confused?</strong></p><p>Then let’s converge all the concepts in a real-life example. Think of a class as a blueprint for building something, like a ‘house’. The blueprint defines the structure, layout, and features of the house, but it doesn’t actually exist until someone builds it. When someone builds the house, they are creating an instance of the blueprint. Each instance of the house (i.e., each actual physical house that is built from the blueprint) is unique and may have different colors, decorations, or furniture, but it shares the same underlying structure and layout as defined in the blueprint In this analogy,</p><ul><li>The class is like the blueprint i.e. house features.</li><li>The instance is like the actual physical house,</li><li>The object is the tangible thing you can touch and interact with (like a door handle or a light switch) that exists within the house (i.e., the instance).</li><li>A method is like a set of instructions that you can follow to interact with the object (e.g., “turn the light switch on” or “open the door”).</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F13Qumr2SLqrl5e%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F13Qumr2SLqrl5e%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2F13Qumr2SLqrl5e%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="297" frameborder="0" scrolling="no"><a href="https://medium.com/media/ff456ed16b9af622d04da8e3e49f7fe1/href">https://medium.com/media/ff456ed16b9af622d04da8e3e49f7fe1/href</a></iframe><p>That’s it for today. Hope you’re leaving with a good understanding of OOP’s basic concepts.</p><p><strong>Next Steps:</strong></p><p>Here are some other resources you may find helpful for learning more about object-oriented programming!</p><ol><li><a href="https://www.youtube.com/watch?v=Ej_02ICOIgs">freeCodeCamp</a> —Object Oriented Programming with Python — Full Course for Beginners</li><li><a href="https://www.youtube.com/playlist?list=PL-osiE80TeTsqhIuOqKhwlXsIBIdSeYtc">Corey Schafer</a> — Python OOP Tutorials — Working with Classes</li><li><a href="https://realpython.com/python3-object-oriented-programming/">Real Python</a> — Object-Oriented Programming (OOP) in Python 3</li><li><a href="https://realpython.com/inheritance-composition-python/">Real Python</a> — Inheritance and Composition: A Python OOP Guide</li></ol><p>Best of Luck for your learning journey!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c649552ac490" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Beginner’s Guide to Python Programming]]></title>
            <link>https://medium.com/@sadafsaleem5815/a-beginners-guide-to-python-programming-8329ff735fa4?source=rss-f3231af090cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/8329ff735fa4</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[loop]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[basics]]></category>
            <dc:creator><![CDATA[Sadaf Saleem]]></dc:creator>
            <pubDate>Fri, 24 Mar 2023 13:15:44 GMT</pubDate>
            <atom:updated>2023-03-26T10:10:18.573Z</atom:updated>
            <content:encoded><![CDATA[<h3>Installation of Python &amp; Environment Setup</h3><p>Before we start coding in Python, we need to install it on our computer. Python is an open-source programming language, which means it is free to download and use. You can download the latest version of Python from the official website <a href="https://www.python.org/downloads/">here</a>. Once you download and install Python, you can access the Python interpreter from the command prompt.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*7Um31bnxaFv9PJPX" /></figure><p>Setting up the environment is important to make your programming experience more efficient. An environment is a place where you can install specific packages and modules for a particular project. You can use tools like <em>virtualenv, Anaconda, </em>or <em>PyCharm</em> to set up an environment. These tools create a virtual environment that contains its own version of Python and the required packages.</p><h3>Variables in Python</h3><p>Variables are containers that hold data in Python. We can assign values to variables using the assignment operator (=). Python has a dynamic data type, which means we don’t need to declare the data type of a variable before assigning a value to it.</p><p>For example:</p><pre>x = 5<br>y = &quot;Hello, World!&quot;</pre><p>In the above example, we assigned an integer value to the variable x and a string value to the variable y. We can also reassign a variable to a different value, as shown below:</p><pre>x = 10</pre><h3>Operations in Python</h3><p>Python supports various types of operators, such as arithmetic operators, comparison operators, logical operators, and assignment operators.</p><p>Python supports various types of operators, such as arithmetic operators, comparison operators, logical operators, and assignment operators.</p><p><strong>Arithmetic Operators:</strong></p><pre>+   Addition<br>-   Subtraction<br>*   Multiplication<br>/   Division<br>%   Modulus<br>**  Exponentiation<br>//  Floor Division</pre><p><strong>Comparison Operators:</strong></p><pre>==  Equal to<br>!=  Not equal to<br>&gt;   Greater than<br>&lt;   Less than<br>&gt;=  Greater than or equal to<br>&lt;=  Less than or equal to</pre><p><strong>Logical Operators:</strong></p><pre>and   Logical AND<br>or    Logical OR<br>not   Logical NOT</pre><p><strong>Assignment Operators:</strong></p><pre>=    Assign<br>+=   Add and assign<br>-=   Subtract and assign<br>*=   Multiply and assign<br>/=   Divide and assign<br>%=   Modulus and assign<br>**=  Exponentiate and assign<br>//=  Floor divide and assign</pre><h3>Control Flow</h3><p>Control flow is the order in which the instructions are executed in a program. In Python, you use control flow statements to change the order of execution of the program based on certain conditions. Control flow statements include</p><ul><li>If-else statements</li><li>Loops</li><li>Break/continue statements.</li></ul><p>Let’s explore these control flow statements in detail.</p><p><strong>If-Else Statements:</strong></p><p>If-else statements are used to execute a block of code if a condition is true or false. The syntax for an if-else statement is as follows:</p><pre>if condition:<br>    statement(s)      # execute if condition is true<br>else:<br>    statement(s)      # execute if condition is false</pre><p>For example, let’s say you want to check if a number is positive or negative. You can use an if-else statement as follows:</p><pre>num = -5<br>if num &gt;= 0:<br>    print(&quot;The number is positive.&quot;)<br>else:<br>    print(&quot;The number is negative.&quot;)</pre><p>In this example, if the number is greater than or equal to zero, the first print statement will be executed. Otherwise, the second print statement will be executed.</p><p><strong>Loops</strong></p><p>Loops are used to execute a block of code repeatedly until a certain condition is met. There are two types of loops in Python: for loops and while loops.</p><p><strong>1. For Loops</strong></p><p>For loops are used to iterate over a sequence of values. The syntax for a for loop is as follows:</p><pre>for variable in sequence:<br>    statement(s)</pre><p>For example, let’s say you want to print the numbers from 1 to 5. You can use a for loop as follows:</p><pre>for i in range(1, 6):<br>    print(i)</pre><p>In this example, the range() function returns a sequence of numbers from 1 to 5. The for loop then iterates over this sequence and prints each number.</p><p><strong>2. While Loops</strong></p><p>While loops are used to execute a block of code repeatedly as long as a certain condition is true. The syntax for a while loop is as follows:</p><pre>while condition:<br>    statement(s)</pre><p>For example, let’s say you want to print the numbers from 1 to 5 using a while loop. You can use a while loop as follows:</p><pre>i = 1<br>while i &lt;= 5:<br>    print(i)<br>    i += 1</pre><p>In this example, the while loop continues to execute as long as the condition i &lt;= 5 is true. The variable i is initialized to 1, and then incremented by 1 after each iteration of the loop.</p><p><strong>3. Break and Continue Statements</strong></p><p>In addition to if-else statements and loops, you can also use break and continue statements to control the flow of your program.</p><p><em>The break statement</em> is used to exit a loop prematurely. For example, let’s say you want to print the numbers from 1 to 5, but stop if the number 3 is encountered. You can use a for loop and a break statement as follows:</p><pre>for i in range(1, 6):<br>    if i == 3:<br>        break<br>    print(i)</pre><p>In this example, the loop iterates over the numbers from 1 to 5, but when the number 3 is encountered, the break statement is executed and the loop is exited prematurely.</p><p><em>The continue statement</em> is used to skip over an iteration of a loop. For example, let’s say you want to print the numbers from 1 to 5, but skip the number 3. You can use a for loop and a continue statement as follows:</p><pre>for i in range(1, 6):<br>    if i == 3:<br>        continue<br>    print(i)</pre><p>In this example, the loop iterates over the numbers from 1 to 5, but when the number 3 is encountered, the continue statement is executed and the loop skips over the number 3. The loop then continues to iterate over the remaining numbers and prints them.</p><h3>Common Data Structures in Python</h3><p>Python is a popular programming language used for a wide range of applications, from data analysis to web development. One of the reasons for its popularity is the built-in data structures that make it easy to store and manipulate data.</p><p>There are four collection data types in the Python programming language:</p><blockquote><a href="https://www.w3schools.com/python/python_lists.asp"><strong>List</strong> </a>is a collection which is ordered and changeable. Allows duplicate members.</blockquote><blockquote><a href="https://www.w3schools.com/python/python_tuples.asp"><strong>Tuple</strong></a> is a collection which is ordered and unchangeable. Allows duplicate members.</blockquote><blockquote><a href="https://www.w3schools.com/python/python_sets.asp"><strong>Set</strong></a> is a collection which is unordered, unchangeable*, and unindexed. No duplicate members.</blockquote><blockquote><a href="https://www.w3schools.com/python/python_dictionaries.asp"><strong>Dictionary</strong></a> is a collection which is ordered** and changeable. No duplicate members.</blockquote><p>Let’s explore more about data structures in Python and how we can use them.</p><p><strong>Lists</strong></p><p>Lists are one of the most versatile and widely used data structures in Python. A list is an ordered collection of elements, and it can contain elements of different data types, including integers, strings, and other lists. You can create a list in Python by enclosing a sequence of elements in square brackets, separated by commas.</p><p>For example, you can create a list of integers as follows:</p><pre>numbers = [1, 2, 3, 4, 5]</pre><p>You can access individual elements in a list by their index, which starts at 0. For example, to access the first element in the list above, you would use the following code:</p><pre>first_number = numbers[0]</pre><p>You can also modify individual elements in a list by their index. For example, to change the third element in the list above to 6, you would use the following code:</p><pre>numbers[2] = 6</pre><p><strong>Tuples</strong></p><p>Tuples are similar to lists in that they are ordered collections of elements, but they are immutable, which means that you cannot modify individual elements once the tuple is created. You can create a tuple in Python by enclosing a sequence of elements in parentheses, separated by commas.</p><p>For example, you can create a tuple of strings as follows:</p><pre>fruits = (&quot;apple&quot;, &quot;banana&quot;, &quot;cherry&quot;)</pre><p>You can access individual elements in a tuple by their index, just like with a list. However, you cannot modify individual elements in a tuple.</p><p><strong>Sets</strong></p><p>A set is an unordered collection of unique elements. You can create a set in Python by enclosing a sequence of elements in curly braces, separated by commas.</p><p>For example, you can create a set of integers as follows:</p><pre>numbers = {1, 2, 3, 4, 5}</pre><p>Sets are useful for performing mathematical operations such as union, intersection, and difference. For example, you can use the union operator “|” to combine two sets:</p><pre>set1 = {1, 2, 3}<br>set2 = {3, 4, 5}<br>union = set1 | set2</pre><p>In this example, the union set contains the elements {1, 2, 3, 4, 5}. You can also use the intersection operator “&amp;” to find the common elements between two sets.</p><p>Sets are mutable, which means that you can add and remove elements from a set. To add an element to a set, you can use the add() method:</p><pre>numbers.add(6)</pre><p>In this example, the number 6 is added to the set. You can also use the remove() method to remove an element from a set.</p><p><strong>Dictionaries</strong></p><p>Dictionaries are another commonly used data structure in Python. A dictionary is an unordered collection of key-value pairs, where each key is associated with a value. You can create a dictionary in Python by enclosing a sequence of key-value pairs in curly braces, separated by commas.</p><p>For example, you can create a dictionary of prices for fruits as follows:</p><pre>prices = {&quot;apple&quot;: 0.99, &quot;banana&quot;: 0.75, &quot;cherry&quot;: 1.25}</pre><p>You can access individual values in a dictionary by their key. For example, to get the price of an apple from the dictionary above, you would use the following code:</p><pre>apple_price = prices[&quot;apple&quot;]</pre><p>You can also add new key-value pairs to a dictionary, modify existing values, or delete key-value pairs.</p><p>References:</p><p><a href="https://youtu.be/qI3P7zMMsgY">https://youtu.be/qI3P7zMMsgY</a></p><p><a href="https://youtu.be/ixNGMASKcSU">https://youtu.be/ixNGMASKcSU</a></p><p><a href="https://youtu.be/Ctqi5Y4X-jA">https://youtu.be/Ctqi5Y4X-jA</a></p><p><a href="https://www.w3schools.com/python/python_lists.asp">https://www.w3schools.com/python/python_lists.asp</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8329ff735fa4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Survey of Major AI Techniques: A Guide to Build AI in Company]]></title>
            <link>https://medium.com/@sadafsaleem5815/survey-of-major-ai-techniques-a-guide-to-build-ai-in-company-358a9069d9e?source=rss-f3231af090cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/358a9069d9e</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[robotics]]></category>
            <category><![CDATA[projects]]></category>
            <dc:creator><![CDATA[Sadaf Saleem]]></dc:creator>
            <pubDate>Mon, 20 Mar 2023 16:17:05 GMT</pubDate>
            <atom:updated>2023-03-20T16:17:05.554Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*O66tgqBtvPfy-KB5" /></figure><p>The field of Artificial Intelligence (AI) has come a long way since its inception. AI products and services have been revolutionizing various industries, ranging from healthcare to finance, and everything in between. In this article, we will delve into some case studies of complex AI products, discuss the various roles involved in developing AI, and provide an AI transformation playbook for those looking to take their first step in the world of AI.</p><h3><strong>Case Studies of Complex AI Products</strong></h3><p>1One of the most complex AI products on the market today is self-driving cars. Self-driving cars use a combination of sensors, machine learning algorithms, and predictive analytics to safely navigate roads and highways. These AI algorithms are continuously learning from their environment and are able to make decisions on their own.</p><p>2Another example of a complex AI product is facial recognition technology. Facial recognition technology is used in a variety of applications, including security systems and social media platforms. This technology uses deep learning algorithms to analyze and identify facial features.</p><p>3Also there are four case studies of popular virtual assistants, including Amazon’s Echo/Alexa, Google Home, Apple’s Siri, and Baidu’s DuerOS. Each of these virtual assistants operates differently but is designed to interact with users through voice commands and provide helpful responses or actions.</p><ol><li><strong>Amazon Echo/Alexa:</strong> Amazon’s Echo and Alexa are one of the most popular virtual assistants available today.</li><li><strong>Google Home: </strong>Google Home is another popular virtual assistant that uses Google’s powerful search algorithms to answer questions and perform tasks.</li><li><strong>Apple Siri: </strong>Apple’s Siri was one of the first virtual assistants to gain widespread popularity. Siri can perform a range of tasks, including sending messages, making phone calls, setting reminders, and playing music.</li><li><strong>Baidu DuerOS:</strong> Baidu DuerOS is a virtual assistant developed by Baidu, a Chinese technology company. It is similar to Alexa and Google Home in that it responds to voice commands and performs tasks.</li></ol><h3>Steps Involved in Processing Commands for Virtual Assistants</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*Le-O0PMEWwWcOvUE" /></figure><p>When interacting with virtual assistants like Alexa, Google Home, Siri, and DuerOS, there are several steps involved in processing a command. These are following;</p><ol><li>Trigger Word/Wakeword Detection</li><li>Speech Recognition</li><li>Intent Recognition</li><li>Execute Request</li></ol><p>The first step is “Wake Word Detection,” where the device recognizes a wake word, such as “Alexa” or “Hey Siri,” to activate the virtual assistant. The second step is “Speech Recognition,” where the virtual assistant uses natural language processing and machine learning algorithms to understand the user’s request. The third step is “Natural Language Understanding,” where the virtual assistant interprets the user’s request and determines the appropriate response. The final step is “Action,” where the virtual assistant performs the desired task or provides the requested information.</p><p>The <strong>first step </strong>is “Wake Word Detection,” This is the word or phrase that activates the virtual assistant, such as “Alexa” or “Hey Siri.” The device is always listening for this specific phrase and when it is detected, the virtual assistant is activated. Once the virtual assistant is activated, the<strong> next step</strong> is “Speech Recognition,” This is where the device listens to the user’s request and converts the spoken words into text. The device uses advanced speech recognition algorithms to accurately transcribe the user’s words into text.</p><p>The <strong>third step</strong> is “Intent Recognition,”. This is where the virtual assistant analyzes the text and determines what the user’s request is. For example, if the user says “Play some music,” the virtual assistant will recognize that the intent is to play music and will proceed to the next step.</p><p><strong>Final step</strong>, the virtual assistant executes the request. If the request is to play music, the device will start playing music. If the request is to turn off a smart light, the device will send a signal to the light to turn it off.</p><p>In conclusion, virtual assistants like Alexa, Google Home, Siri, and DuerOS have become an integral part of our daily lives. They use sophisticated natural language processing and machine learning algorithms to understand and respond to user requests. By following the steps involved in processing a command, these virtual assistants can perform a range of tasks and provide helpful information to users.</p><h3>Roles in an AI</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*L4RTA2H1bXBXQr4v" /></figure><p>Developing an AI product requires a diverse set of skills and expertise. Here are some of the key roles involved in developing AI:</p><ol><li><strong>Data Scientist:</strong> Data scientists are responsible for designing and implementing algorithms that can extract insights from large amounts of data.</li><li><strong>Machine Learning Engineer:</strong> Machine learning engineers are responsible for designing and implementing machine learning algorithms that can learn from data and make predictions.</li><li><strong>Software Engineer:</strong> Software engineers are responsible for designing and building the software components that enable an AI system to function.</li><li><strong>AI Ethicist:</strong> AI ethicists are responsible for ensuring that AI systems are designed and deployed in an ethical and responsible manner.</li></ol><h3>AI Transformation Playbook</h3><p>If you are looking to take your first step into the world of AI, here are some key steps to consider:</p><ol><li><strong>Start Small: </strong>Begin by identifying a specific business problem that AI can solve. This will help you focus your efforts and ensure that you are working towards a tangible goal.</li><li><strong>Build a Strong Data Foundation:</strong> AI is only as good as the data it has access to. Therefore, it is important to build a strong data foundation by collecting and organizing data in a way that makes it easy to analyze.</li><li><strong>Leverage Existing AI Tools and Platforms:</strong> There are many existing AI tools and platforms that can help you get started with AI. These tools can help you build and deploy AI models quickly and efficiently.</li><li><strong>Focus on Business Value:</strong> It is important to focus on the business value of AI, rather than just the technology itself. By focusing on the business value, you can ensure that your AI efforts are aligned with the strategic objectives of your organization.</li></ol><p>Developing AI can be a complex and challenging endeavor. However, by starting small, building a strong data foundation, leveraging existing AI tools and platforms, and focusing on business value, you can take your first step into the world of AI with confidence.</p><h3>AI Pitfalls To Avoid</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*AvVSj1w8HDSdFyTtqUC8Cw.png" /></figure><h3>Survey of Major AI Application Areas</h3><p>Artificial Intelligence (AI) has come a long way in recent years, transforming the way we interact with technology and making our lives more convenient. From virtual assistants to self-driving cars, AI has revolutionized a broad range of industries. In this article, we will explore some of the major AI application areas that have emerged and how they are changing the world.</p><p><strong>Computer Vision</strong></p><p>Computer vision is a rapidly growing field that focuses on enabling computers to interpret and understand digital images and videos. It includes,</p><ul><li>Image classification/ Object Recognition</li><li>Object Detection</li><li>Image Segmentation</li><li>Tracking</li></ul><p>Applications of computer vision include facial recognition, autonomous vehicles, and medical imaging.</p><p><strong>Natural Language Processing</strong></p><p>Natural Language Processing (NLP) is an AI technology that enables machines to understand, interpret, and generate human language. Applications of NLP include virtual assistants, chatbots, and language translation. Some of the key areas of NLP are:</p><ul><li>Text Classification</li><li>Information Retrieval</li><li>Name Entity Recognition</li><li>Machine Translation</li><li>Parsing</li><li>Part-of-Speech Tagging</li></ul><p><strong>Speech</strong></p><p>Applications of speech AI include virtual assistants, voice-controlled devices, and speech-to-text transcription. Some of the key areas of speech AI include;</p><ul><li>Speech Recognition</li><li>Trigger Word, Wake word Detection</li><li>Speaker ID</li><li>Speech Synthesis (Text-to-Speech, TTS)</li></ul><p><strong>Robotics</strong></p><p>Robotics is the intersection of AI and engineering that focuses on creating intelligent machines that can perform tasks autonomously. Applications of robotics include industrial automation, surgical robots, and self-driving cars. key areas of robotics includes;</p><ul><li>Perception</li><li>Motion Planning</li><li>Control</li></ul><p><strong>General Machine Learning</strong></p><p>General Machine Learning refers to a broad range of AI applications that use algorithms and statistical models to learn from data. Unstructured data, such as text and images, and structured data, such as databases and spreadsheets, are both used in general machine learning. Applications of general machine learning include fraud detection, predictive maintenance, and recommendation engines.</p><h3>Survey of Major AI Techniques</h3><p>Artificial intelligence (AI) is revolutionizing various industries, from healthcare to finance, and from retail to transportation. With the advent of AI, machines can learn and improve their performance over time without being explicitly programmed. In this article, we will explore the major AI techniques and applications discussed by experts in the field.</p><ul><li><strong>Clustering:</strong></li></ul><p>Clustering is a technique used in unsupervised learning, where data points are grouped into clusters based on their similarities. This technique is widely used in customer segmentation, recommendation systems, and anomaly detection.</p><ul><li><strong>Transfer Learning:</strong></li></ul><p>Transfer learning is a technique used in machine learning, where a pre-trained model is used as a starting point for a new task. This technique allows for faster training and better performance, especially in cases where the amount of training data is limited.</p><ul><li><strong>Reinforcement Learning:</strong></li></ul><p>Reinforcement learning is a type of machine learning that involves an agent interacting with an environment to learn how to make decisions. This technique has been used to train machines to play games, such as chess and Go, and to control autonomous vehicles.</p><ul><li><strong>GANs (Generative Adversarial Network):</strong></li></ul><p>GANs are a type of neural network used for generating realistic images, videos, and audio. This technique has been used in various applications, such as video game development and movie production.</p><ul><li><strong>Knowledge Graph:</strong></li></ul><p>A knowledge graph is a type of database that stores information in a way that can be easily processed by machines. This technique has been used in various applications, such as chatbots and virtual assistants.</p><p>In conclusion. the potential applications of AI are endless. From image recognition to natural language processing, AI has the potential to transform our world. As we continue to explore the various AI techniques, it is essential to remain aware of the challenges, such as the need for vast amounts of data, and to develop ethical frameworks for AI development and implementation.</p><p>Thank you for reading. I hope you found this article helpful. For more updates you can follow me <a href="https://www.linkedin.com/in/sadafsaleem">here</a>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FAC1PtbdsJZyOQ%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FAC1PtbdsJZyOQ%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FAC1PtbdsJZyOQ%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="351" frameborder="0" scrolling="no"><a href="https://medium.com/media/46453216a044d0b8eb48ae1d18776616/href">https://medium.com/media/46453216a044d0b8eb48ae1d18776616/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=358a9069d9e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Comprehensive Guide to Starting Your AI Project: From Idea to Implementation]]></title>
            <link>https://medium.com/@sadafsaleem5815/comprehensive-guide-to-starting-your-ai-project-from-idea-to-implementation-7a819b19e9bb?source=rss-f3231af090cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a819b19e9bb</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[projects]]></category>
            <dc:creator><![CDATA[Sadaf Saleem]]></dc:creator>
            <pubDate>Sat, 18 Mar 2023 09:39:08 GMT</pubDate>
            <atom:updated>2023-03-18T10:02:20.731Z</atom:updated>
            <content:encoded><![CDATA[<p>From self-driving cars to personalized recommendations on streaming platforms, machine learning is transforming the world around us. With the exponential growth of data and advancements in technology, the potential applications of machine learning seem limitless. But for beginners, it can be daunting to know where to start.</p><p>In this article, we’ll provide a comprehensive guide on how to get started with machine learning projects, covering everything from project planning and team building to selecting the right tools and algorithms. Whether you’re a data enthusiast, a developer, or a business owner, this guide will help you take the first steps towards implementing machine learning in your projects.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FBpGWitbFZflfSUYuZ9%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FBpGWitbFZflfSUYuZ9%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia2.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExMXo0bTV5a285Znp6Zjg1OGJwanAwMTF0dDdtYnoyOGUxbGpyY2d4ciZlcD12MV9naWZzX2dpZklkJmN0PWc%2FBpGWitbFZflfSUYuZ9%2Fgiphy.gif&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="363" frameborder="0" scrolling="no"><a href="https://medium.com/media/3f3adc02048a2e7c8a20f23b21df942f/href">https://medium.com/media/3f3adc02048a2e7c8a20f23b21df942f/href</a></iframe><h3>Workflows of Machine Learning Project</h3><p>Steps involved in creating an AI based projects are:</p><ol><li>Collect data</li><li>Train model</li><li>Deploy model.</li></ol><p><strong>1Collecting data</strong> is the first step in building an AI project. This data should be relevant to the problem you are trying to solve and should be of high quality.</p><blockquote>“AI is a very data-driven technology. The quality of the data you have is almost always going to be more important than the choice of algorithm.” — Andrew Ng</blockquote><p>For example, if you are building a model to predict whether a customer will buy a product or not, you would want to collect data on their purchasing history, demographic information, and other relevant factors.</p><p><strong>2Training the model</strong> involves selecting an appropriate algorithm and optimizing its parameters to achieve the best possible results. This process can be iterative, and you may need to try several different algorithms and parameter settings before finding the best one. For instance, if you are building a model to detect fraud, you might use a logistic regression algorithm or a decision tree algorithm.</p><p>If you’re confused on how to choose the right algorithm for your AI project, you can check out this helpful guide: <a href="https://builtin.com/data-science/machine-learning-algorithms">How to Choose the Right Machine Learning Algorithm for Your Project</a>.</p><p><strong>3Deploying the model</strong> is the final step in the machine learning workflow. After you have trained your model, you will need to integrate it into an application or system that can be used by others.</p><p>For instance, let’s say you’re building a self-driving car. The car’s sensors would collect data on its surroundings, including objects on the road and traffic signs. The model would be trained to recognize these objects and respond accordingly. Once the model has been trained, it would be deployed in the car’s system, allowing it to make decisions in real-time.</p><p>For a real-life example of how deploying a model works in the development of a self-driving car, check out this informative video by The Verge.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F4Y7zG48uHRo%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D4Y7zG48uHRo&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F4Y7zG48uHRo%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/65fa368d76624b9312a0547f7f5fac7d/href">https://medium.com/media/65fa368d76624b9312a0547f7f5fac7d/href</a></iframe><p>In conclusion, understanding the workflows of machine learning is crucial for anyone who wants to get started in this exciting field. By collecting data, training the model, and deploying it, you can create powerful applications and systems that can make a real difference in people’s lives.</p><h3>Workflows of Data Science Project</h3><p>When creating a data science project, there are several key steps that you need to follow in order to be successful. These steps are critical to ensuring that you are able to identify the problem, collect relevant data, analyze the data, and make informed decisions based on the results.</p><p><strong>1Collect Data:</strong> The first step in building a data science project is to collect data relevant to the problem you are trying to solve. The data should be of high quality and should be sufficient to train your model. Depending on the problem, you may need to collect data from various sources, including databases, APIs, or data scraped from websites.</p><p>For example, if you’re working on a project that requires collecting data from websites, you can use web scraping tools like BeautifulSoup or Scrapy. Here’s a link to a tutorial on web scraping with Python using BeautifulSoup <a href="https://realpython.com/beautiful-soup-web-scraper-python/">Web Scraping with Python: A Beginner’s Guide</a>.</p><p><strong>2Analyze the Data:</strong> After you have collected the data, the next step is to analyze it. This involves exploring the data to identify patterns, trends, and correlations that can be used to make informed decisions.</p><p>This step often involves using a variety of techniques such as statistical analysis, machine learning algorithms, and data visualization tools to uncover insights that may be hidden in the data. By carefully analyzing the data, data scientists can gain a deeper understanding of the problem they are trying to solve and make informed decisions based on the insights they uncover.</p><blockquote>“How we use data is ultimately what will set us apart.” — Dr. Jennifer Golbeck</blockquote><p><strong>3Suggest Hypotheses/Actions: </strong>Based on the results of the analysis, you will need to suggest hypotheses or actions that can be taken to address the problem you identified. . For example, if you identified that customer churn is a problem for your business, you may suggest implementing a customer loyalty program or improving customer service to address this issue.</p><p>This is often an iterative process, meaning you might need to go back and analyze your data again, collect more data, or test different ideas until you find something that works. It’s important to stay flexible and open to new ideas during this phase of the project.</p><p>In conclusion, creating a successful data science project requires careful planning, attention to detail, and a willingness to iterate on your approach until you achieve the desired result. By following these key steps, you can ensure that your project is built on a solid foundation of relevant data and informed decision-making.</p><h3>How to Choose an AI Project ?</h3><p>Artificial intelligence (AI) is revolutionizing the way we do business. From chatbots to predictive analytics, companies are increasingly turning to AI to automate processes, streamline operations, and drive growth. But with so many potential applications, how do you choose the right AI project for your business? In this section, we’ll explore some key considerations for choosing an AI project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*20nIyN0NW-0gWm5t.jpg" /></figure><p>First and foremost, it’s important to understand <strong>what AI can do</strong>. AI is a broad field that encompasses a range of technologies, including machine learning, natural language processing, computer vision, and robotics. Each of these technologies has its own strengths and weaknesses, and can be used to solve different types of problems. AI experts have good knowledge about it</p><p>To choose an AI project, you’ll need to identify areas where <strong>AI can add value to your business</strong>. This could be anything from improving customer service to optimizing supply chain operations. Look for opportunities where AI can automate repetitive tasks, reduce errors, or provide insights that would be difficult or impossible for humans to uncover. Domain experts have good knowledge about it</p><p>Look for projects that have a clear business case and can deliver measurable value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*34DPaCkEsoFymS6IQvBVAg.png" /></figure><p>Once you have identified potential areas for AI, it’s important to consider the <strong>expertise of your team</strong>. AI is a complex field that requires a mix of technical and domain expertise. You’ll need to assemble a cross-functional team that includes both AI experts and domain experts who can work together to build and deploy your AI solution.</p><p>In conclusion, choosing an AI project requires careful consideration of a range of factors, including the potential applications of AI, the expertise of your team, the potential impact on your business, and the alignment with your overall business strategy. By taking these factors into account, you can choose an AI project that delivers real value to your business and helps you achieve your long-term objectives.</p><h3>How to Brainstorm Projects for Your Business?</h3><p>Brainstorming AI projects can be a daunting task, especially for those who are new to the technology. We’ll explore three key principles for brainstorming AI projects that automate tasks in your business.</p><p><strong>1Identify Tasks That Can Be Automated</strong></p><p>The first step in brainstorming AI projects is to identify tasks that can be automated. Look for tasks that are repetitive, time-consuming, and have a clear set of rules or criteria. By automating these tasks, businesses can save time and money, reduce errors, and improve overall efficiency.</p><p>For example, imagine you have a call center that receives a large number of customer calls every day. Call center agents have to spend a lot of time manually routing calls to the appropriate department or agent. This is a task that can be automated using AI. By analyzing customer data, such as the reason for their call or their previous interactions with your company, AI can route calls automatically to the best-suited agent, improving the overall efficiency of your call center.</p><p>Other examples of tasks that can be automated include email routing, data entry, and scheduling. By automating these tasks, businesses can free up employee time to focus on higher-level tasks that require human input, such as problem-solving, creativity, and critical thinking.</p><p><strong>2Focus on Business Value Drivers</strong></p><p>The second principle for brainstorming AI projects is to focus on business value drivers. Business value drivers are the activities that create value for customers, employees, and stakeholders. By automating tasks that align with business value drivers, businesses can create a more efficient and effective operation.</p><p>For example, in a healthcare setting, radiologists can spend hours analyzing medical images. By automating the image analysis process using AI, radiologists can save time and improve patient outcomes. This not only creates value for patients but also for healthcare providers and insurance companies.</p><p><strong>3Address Pain Points in Your Business</strong></p><p>The third principle for brainstorming AI projects is to address pain points in your business. Pain points are areas where your business is struggling or experiencing challenges. By automating tasks that address these pain points, businesses can create a more resilient operation.</p><p>For example, businesses with a high volume of customer emails can use AI to automate email routing and response. This not only improves customer satisfaction but also reduces employee stress and burnout.</p><p><strong>It’s Not Always About Big Data</strong></p><blockquote>“The value of AI isn’t just about big data. It’s about identifying the right data and using it effectively, regardless of the size of the dataset.” — Cathy O’Neil</blockquote><p>While big data can be a valuable resource for AI projects, it’s not always necessary to have large datasets. Even with small datasets, businesses can make progress with AI projects by using techniques like transfer learning and data augmentation.</p><p>Transfer learning involves using pre-trained AI models and adapting them to your specific use case. Data augmentation involves creating new data by manipulating existing data in creative ways. By using these techniques, businesses can leverage smaller datasets to create effective AI solutions.</p><p><strong>Conclusion:</strong></p><p>Brainstorming AI projects can be challenging, but by following these three principles, businesses can identify tasks that can be automated, focus on business value drivers, and address pain points in their business. With the right approach, businesses can leverage AI to create a more efficient, effective, and resilient operation.</p><p>Great! It sounds like you have everything under control and are well on your way to starting a successful AI project.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fv8hyMlWUv2s0zOIQm2%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fv8hyMlWUv2s0zOIQm2%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2Fv8hyMlWUv2s0zOIQm2%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/52517dc1eca41aef76aab7d03a1baa40/href">https://medium.com/media/52517dc1eca41aef76aab7d03a1baa40/href</a></iframe><p>Hey hey, stop! It’s time to revise and ensure that everything is aligned with the project goals and business objectives. When considering an AI project, it’s important to take the time to confirm that your assumptions about the project are true. This involves conducting a thorough evaluation of the feasibility and potential value of the project.</p><h3>How to Double Check if an AI Project is Worth Pursuing</h3><p>To determine if an AI project is feasible, you should conduct technical diligence, business diligence and also ethical diligence.</p><p><strong>Technical Diligence</strong></p><p>This involves assessing the technical requirements of the project and determining if the AI system you hope to build is truly feasible. Some of the key questions to ask during technical diligence include:</p><ul><li>Can the AI system meet the desired performance?</li><li>How much data is needed to train the AI system?</li><li>What is the expected engineering timeline for the project?</li></ul><p><strong>Business Diligence:</strong></p><p>Once you’ve determined that the project is technically feasible, you should conduct business diligence to assess its potential value. This involves assessing the potential impact of the project on your business, and can help you determine if the project is worth pursuing. Some of the key questions to ask during business diligence include:</p><ul><li>Will the project lower costs or increase revenue for our current business?</li><li>Can the project be used to launch a new product or business for our company?</li><li>What is the potential return on investment (ROI) for the project?</li></ul><p><strong>Ethical Diligence:</strong></p><p>In addition to technical and business diligence, you should also conduct ethical diligence to ensure that the project aligns with your company’s values and ethical standards. This involves assessing the potential impact of the project on stakeholders, including customers, employees, and the wider community.</p><p>By conducting a thorough evaluation of the feasibility and potential value of an AI project, you can determine if it’s worth pursuing and avoid investing time and resources into a project that is unlikely to deliver the desired results.</p><h3>Build vs. Buy: Making the Right Choice for Your AI Project</h3><p>Deciding whether to build or buy resources for your AI project can be a complex decision that depends on several factors, such as the specific needs of your project, your company’s expertise and resources, and your budget.</p><p><strong>When to Build:</strong></p><ul><li>If your AI project requires customization that cannot be achieved with off-the-shelf solutions</li><li>If you have the necessary expertise and resources in-house to build and maintain the AI resources</li><li>If the AI resource is core to your business and you want to maintain full control over it</li><li>If you want to maintain complete ownership of your data and the AI models that are trained on it</li></ul><p><strong>When to Buy:</strong></p><ul><li>If you have a limited budget or a tight timeline and need a quick and cost-effective solution</li><li>If your AI project requires resources that are not core to your business and can be easily outsourced without compromising the quality of your project</li><li>If you do not have the necessary expertise or resources in-house to build and maintain the AI resources</li><li>If the AI resource you need has already been developed and is available as an off-the-shelf solution, it may be more cost-effective to buy it rather than build it from scratch.</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fns9WLkIBrBhEA%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fns9WLkIBrBhEA%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2Fns9WLkIBrBhEA%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="258" frameborder="0" scrolling="no"><a href="https://medium.com/media/0787fed300d7a550792f315e436f7081/href">https://medium.com/media/0787fed300d7a550792f315e436f7081/href</a></iframe><p><strong>For machine learning (ML) projects</strong>, it’s common to see a mix of in-house and outsourced resources. For example, a company may choose to develop their own ML algorithms and models in-house, while outsourcing tasks like data labeling or cloud infrastructure management to external providers.</p><p>On the other hand,<strong> data science projects</strong> are more commonly done in-house, as they require a deep understanding of the company’s specific data and business processes.</p><p>Ultimately, the decision of whether to build or buy will depend on the specific requirements and goals of the project, as well as the resources and capabilities of the organization. It’s important to carefully evaluate the options and choose the approach that will best meet your needs while minimizing costs and maximizing efficiency.</p><h3>Working with an AI team:</h3><p>Working with an AI team can be a daunting task, especially if you’re not familiar with the technical aspects of machine learning. We will explore some key concepts about working with an AI team and how to ensure successful outcomes.</p><p><strong>1Specify Your Acceptance Criteria:</strong></p><p>Before embarking on an AI project, it’s essential to define your acceptance criteria — the minimum requirements that must be met for the solution to be considered successful. This involves determining the key performance indicators (KPIs) that will be used to evaluate the AI system’s performance.</p><p>For example, if you are building a chatbot for customer service, your acceptance criteria might include metrics such as response time, accuracy, and customer satisfaction. By setting clear acceptance criteria, you can ensure that everyone involved in the project is aligned on its objectives and that the end product meets your business requirements.</p><p><strong>2Provide AI Team a Dataset:</strong></p><p>Provide an AI Team with a Dataset To measure the AI team’s performance accurately, you need to provide them with a dataset to <strong>train</strong> their machine learning models. The dataset should contain examples of the input data (e.g., customer inquiries), along with the corresponding output data (e.g., correct responses). Additionally, you should provide a <strong>test </strong>set that is separate from the training data that the AI team can use to evaluate their model’s performance. This ensures that the AI system is capable of generalizing to new data, not just memorizing the training set.</p><p><strong>What is training and test set?</strong></p><p>It’s essential to understand the difference between the training set and the test set. The training set is the dataset used to train the AI model. In contrast, the test set is the dataset used to evaluate the model’s performance. It’s crucial to keep these two datasets separate to prevent the AI model from “memorizing” the training data, which can lead to overfitting.</p><p><strong>Example:</strong></p><p>Consider an example of detecting defective cups with 95% accuracy. To achieve this, the AI team was provided with a training set consisting of images of both defective and non-defective cups. They used this training set to develop an AI model that could identify defective cups. Once the model was trained, the AI team used a test set of images to evaluate the model’s performance. The model achieved an accuracy of 95%, indicating that it could identify defective cups with a high level of accuracy.</p><p><strong>Pitfall: Expecting 100% Accuracy</strong></p><p>It’s essential to recognize that no AI model can achieve 100% accuracy. Following are the Reasons that May Cause Low Accuracy Even with the best AI team and dataset, there are several reasons why an AI system may have low accuracy. These include:</p><ul><li>Limitations of machine learning algorithms</li><li>Insufficient data</li><li>Mislabeled data</li><li>Ambiguous labels</li></ul><p>In conclusion, working with an AI team can be a rewarding experience if you approach it correctly. By defining your acceptance criteria, providing a test set, and understanding the training and test sets, you can ensure that your AI project is on the right track. Additionally, recognizing the limitations of machine learning and avoiding the pitfall of expecting 100% accuracy can help you set realistic expectations and achieve successful outcomes.</p><h3>Technical Tools for an AI team</h3><p>There are several machine learning frameworks available, and choosing the right one can be challenging. Here are some of the most popular frameworks:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/337/0*5PsKxCQhgIcsvb93" /></figure><ol><li><strong>TensorFlow: </strong>TensorFlow is an open-source machine learning framework that is widely used in industry and academia. It was developed by Google and is written in Python. TensorFlow supports several programming languages, including C++, Java, and R.</li><li><strong>PyTorch: </strong>PyTorch is a popular machine learning framework that is known for its ease of use and flexibility. It was developed by Facebook and is also written in Python. PyTorch supports dynamic computational graphs, making it ideal for researchers and developers.</li><li><strong>Keras: </strong>Keras is an open-source neural network library written in Python. It is designed to be easy to use and supports both convolutional and recurrent neural networks.</li><li><strong>MXNet: </strong>MXNet is an open-source deep learning framework that was developed by Amazon. It supports several programming languages, including Python, R, and Julia.</li><li><strong>CNTK: </strong>CNTK is a deep learning framework that was developed by Microsoft. It is written in C++ and supports several programming languages, including Python and C#.</li><li><strong>Caffe: </strong>Caffe is a deep learning framework that was developed by Berkeley AI Research (BAIR). It is written in C++ and supports both CPU and GPU computation.</li><li><strong>PaddlePaddle: </strong>PaddlePaddle is an open-source deep learning framework that was developed by Baidu. It supports several programming languages, including Python, C++, and Java.</li><li><strong>Scikit-learn: </strong>Scikit-learn is a popular machine learning library for Python. It provides simple and efficient tools for data mining and data analysis.</li><li><strong>R: </strong>R is a programming language that is widely used for statistical computing and graphics. It has several machine learning libraries, including caret, randomForest, and xgboost.</li></ol><p><strong>Open Source Repositories:</strong></p><p><em>GitHub </em>is a web-based hosting service for version control using git. It provides a platform for collaboration between developers and is widely used for open-source projects. There are several AI-related projects available on GitHub, including machine learning frameworks, deep learning models, and natural language processing libraries. Other open source repositories include; <em>SourceForge, Bitbucket, GitLab, </em>and <em>Apache Software Foundation</em>.</p><h3>Hardware Options for Deep Learning</h3><p>When it comes to deep learning, the choice of processing hardware can have a significant impact on the performance and speed of the algorithm. Two common options are CPU and GPU.</p><p>A <strong>CPU (Central Processing Unit) </strong>is the primary processor in a computer system and is designed to handle general-purpose tasks such as running applications, managing files, and executing instructions. CPUs can handle parallel processing but are not optimized for it.</p><p>On the other hand, a <strong>GPU (Graphics Processing Unit)</strong> is designed to perform parallel processing tasks, making it ideal for running deep learning algorithms. GPUs have a larger number of cores than CPUs and can perform many calculations simultaneously, making them much faster for deep learning tasks.</p><p>Many companies are now using GPUs for deep learning tasks, and some are even developing specialized hardware to optimize their performance. For example, Google has developed its own Tensor Processing Units (TPUs), and Qualcomm has developed the Snapdragon Neural Processing Engine.</p><h3><strong>Deployment Method for Deep Learning</strong></h3><p>In addition to the choice of hardware, there is also the choice of where to run the algorithms: <strong>on-premises or in the cloud</strong>.</p><p>On-premises means running the algorithms on hardware owned and operated by the organization, while cloud computing means using remote servers accessed over the internet.</p><p>The cloud can offer several advantages, including scalability, flexibility, and cost savings, as organizations can pay for only the resources they need. However, on-premises deployments can offer greater security and control over the infrastructure.</p><p><strong>Conclusion:</strong></p><p>Working with an AI team requires careful consideration of technical tools, deployment options, and expectations for accuracy. By following best practices and avoiding common pitfalls, organizations can successfully leverage AI for their business needs.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fj1Xyt3DHfJcmk%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fj1Xyt3DHfJcmk%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2Fj1Xyt3DHfJcmk%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="324" frameborder="0" scrolling="no"><a href="https://medium.com/media/33648f4b8bc07e96a6dba8b2d4785739/href">https://medium.com/media/33648f4b8bc07e96a6dba8b2d4785739/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a819b19e9bb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Demystifying AI: A Guide for Everyone]]></title>
            <link>https://medium.com/@sadafsaleem5815/demystifying-ai-a-guide-for-everyone-8a4a41ef4b4b?source=rss-f3231af090cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a4a41ef4b4b</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Sadaf Saleem]]></dc:creator>
            <pubDate>Wed, 15 Mar 2023 10:16:10 GMT</pubDate>
            <atom:updated>2023-03-15T15:20:57.413Z</atom:updated>
            <content:encoded><![CDATA[<p>Artificial Intelligence, or AI, is a rapidly growing field that is changing the way we live and work. In this article, we will demystify AI by breaking down some of the key concepts and exploring how it works in practice.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fl3dj09hpsfuYkijDi%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fl3dj09hpsfuYkijDi%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia4.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExdjN2b3d5MnV3ajAzeDNrMzk4NnNjM2F2NGJ5NjN6c2NqdXZ3eTRydSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2Fl3dj09hpsfuYkijDi%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/5653d4f85ad8d4cc2fdbba0a1a23bd97/href">https://medium.com/media/5653d4f85ad8d4cc2fdbba0a1a23bd97/href</a></iframe><p>Firstly, let’s look at the different types of AI.</p><ol><li>ANI (Artificial Narrow Intelligence)</li><li>AGI (Artificial General Intelligence)</li></ol><p><strong>What is ANI?</strong></p><p>Artificial Narrow Intelligence, also known as ANI, is designed to do one thing and do it well. ANI is capable of performing specific tasks like speech recognition, image classification, natural language processing, and more. Some examples of ANI include smart speakers like Alexa, self-driving cars, and web search engines. These systems are highly specialized and can only perform the task they are programmed to do.</p><p><strong>What is AGI?</strong></p><p>Artificial General Intelligence, also known as AGI, is the next level of AI. AGI is designed to do anything that a human can do, from playing a game of chess to writing an article like this one. AGI is a highly exciting area of AI, but it is progressing at a slower pace than ANI.</p><h3>What is AI?</h3><p>In this article, we will be discovering following topics for understanding what AI actually is.</p><ul><li>Machine Learning</li><li>Data</li><li>The terminology of AI</li><li>What makes an AI company</li><li>What machine learning can and cannot do</li><li>Intuitive explanation of Deep Learning</li></ul><h3>1.0. Machine Learning</h3><p>One of the key techniques used in AI is Machine Learning, which is a subfield of AI that involves teaching machines to learn from data. There are many types of Machine Learning, but one of the most popular is supervised learning.</p><p><strong>1.0.1 Supervised learning</strong>:</p><p>Supervised learning involves training an AI model to learn the relationship between inputs and outputs. As an example, following are all the applications that lies under the umbrella of supervised learning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*gyYl6eKQH7dWI4pwdeSM7g.png" /></figure><p><strong>1.0.2. So why is supervised learning taking off now?</strong></p><p>Supervised learning is taking off now mainly because of two factors</p><ol><li>Availability of large amounts of data</li><li>The ability to train very large neural networks</li></ol><p>These two factors has resulted in significant improvements in performance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*TgHIxGQ5RtouecvvcMdnkQ.png" /></figure><p>As you can see there is a positive correlation between the amount of data and the performance of supervised learning algorithms, especially with the use of large neural networks. In the past, traditional AI algorithms were limited by the amount of data that could be used to train them. As a result, these algorithms were unable to achieve high levels of performance, especially for complex tasks. However, with the advent of deep learning and neural networks, which are able to process massive amounts of data, it is now possible to achieve much higher levels of performance for a wide range of tasks.</p><p>The graph given above clearly illustrates how the performance of different models, such as traditional AI algorithms and small, medium, and large neural networks, improves as the amount of data increases. This is why large companies like Google and Facebook are leading the way in AI research and development. They have access to vast amounts of data and the computing power to train massive neural networks. By doing so, they are able to drive business value and stay ahead of the competition.</p><h3>1.1. What is Data?</h3><p>Data is a fundamental component of any AI/ML project. It refers to any information or facts that can be used for analysis and decision making. In the context of AI/ML, data is typically used to train and improve machine learning models.</p><p><strong>1.1.1. How to get data?</strong></p><p>Data is the foundation of machine learning and AI, and it can be obtained in a variety of ways. We will discuss three common method is</p><ol><li>Manual labeling</li><li>Observing user behavior</li><li>Downloading from websites or partnerships</li></ol><p>In <em>manual labeling</em>, humans label data to create a labeled dataset for supervised learning. For example, an image dataset of cats may require manual labeling where each image is labeled as either “cat” or “not cat”.</p><p><em>Observing user behavior</em> is often used in website data collection, where various features of a website can be monitored and analyzed to predict user behavior. By detecting patterns in user behavior, it becomes possible to optimize the website’s design for better user engagement.</p><p>Data can also be obtained through <em>downloading from websites or partnerships</em>. Many companies and organizations make their data publicly available, while others may require a partnership or special agreement for access to their data.</p><p><strong>1.1.2. Misuses of data</strong></p><p>Misuse of data can have serious consequences, particularly when it comes to AI and machine learning. It’s a common misconception that simply throwing data at an AI model will lead to valuable insights. In reality, the quality of the data is just as important as the algorithm used to analyze it.</p><p>One major issue is collecting irrelevant or low-quality data, as this can lead to inaccurate results. This is commonly referred to as</p><blockquote>“garbage in, garbage out”</blockquote><p>To avoid this, it’s important to not only collect a sufficient amount of data, but to also ensure that the data is relevant, accurate, and properly labeled.</p><p><em>Solution?</em> To prevent misuse of data, AI teams should work closely with IT teams to determine what type of data should be collected, and to give feedback on the quality and relevance of the data being collected. By working together, AI teams can ensure that the data they are using is of high quality and relevant to the problem they are trying to solve.</p><p><strong>1.1.3. Data problems:</strong></p><p>Data problems can include various issues that can affect the quality and usefulness of the data. Two such issues are</p><ol><li>Incorrect labels</li><li>Missing values.</li></ol><p><strong>1.1.4. Multiple types of data</strong></p><p>Data can be classified into two broad categories:</p><ol><li>Structured data</li><li>Unstructured data</li></ol><p>Structured data refers to data that is organized in a well-defined manner, typically in a spreadsheet or database, and can be easily processed by machines. On the other hand, unstructured data does not have a predefined format, making it difficult for machines to interpret without human intervention. Examples of unstructured data include images, audio, and text data.</p><h3>1.2. The terminology of AI</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/416/1*3dlmJfyw8D-JMscWY6mrZA.png" /></figure><p>Note: The circles here illustrates the buzzwords that may also be included in the fields of AI/ML, such as, Machine Intelligence, Intelligent Automation, Natural Language Processing (NLP) and others for AI. The buzzwords for ML includes Deep Learning, Neural Networks, Supervised Learning, Reinforcement Learning etc.</p><p>Let’s dive into the basic terms;</p><p><strong>1.2.1. Artificial Intelligence (AI):</strong></p><p>A branch of computer science that aims to create intelligent machines that can perform tasks that normally require human intelligence, such as understanding natural language, recognizing images, and making decisions.</p><p><strong>1.2.2. Machine Learning (ML):</strong></p><blockquote>“Field of study that gives computers the ability to learn without being explicitly programmed” (Arthur Samuel)</blockquote><p>A subfield of AI that involves training algorithms to automatically recognize patterns in data and learn from experience, without being explicitly programmed. In terminologies, it used A to B mapping or say input to output mapping.</p><p>The output of an ML project is often a piece of software, which can be used to automate or enhance various applications such as image recognition, speech processing, or natural language processing.</p><p><strong>1.2.3. Deep Learning:</strong></p><p>A subfield of machine learning that uses artificial neural networks (ANNs) to model complex patterns in large amounts of data. These networks are composed of layers of interconnected “neurons” that can learn to recognize features in the data and make predictions.</p><p>Deep Learning and Neural Networks are almost interchangeable terms, with deep learning being a specific approach to using neural networks with multiple layers to achieve more advanced results.</p><p><strong>1.2.4. Data Science:</strong></p><blockquote>“Science of extracting knowledge and indights from data”</blockquote><p>An interdisciplinary field that involves using statistical and computational methods to extract insights and knowledge from data. Data scientists typically work with large, complex data sets to identify patterns, trends, and relationships, and communicate their findings to stakeholders.</p><p>The output of a data science project is often a slide deck or a report summarizing the findings and conclusions from the analysis.</p><h3><strong>1.3. </strong>What makes an AI company</h3><p><strong>1.3.1. Internet Era:</strong></p><blockquote>A shopping mall with a website is not necessarily an “Internet company.”</blockquote><p>Just having an online presence doesn’t automatically make a company an Internet company. An Internet company is one that fully embraces the potential of the internet, and utilizes its capabilities to create innovative and disruptive business models, products, and services that couldn’t be possible without the internet.</p><p>One of the key characteristics of an Internet company is</p><ol><li>Its ability to move quickly and iterate rapidly, that is, they have short iteration time. This allows them to test and learn from experiments and adjust their products or services based on customer feedback.</li><li>Additionally, they often push decision-making power down from the CEO to engineers and other specialized roles. This promotes a culture of innovation and enables the company to react quickly to changing market conditions.</li></ol><p><strong>1.3.2. AI Era:</strong></p><blockquote>Any company using deep learning is not necessarily an “AI company.”</blockquote><p>That means simply adding deep learning technology to a company’s operations does not automatically make it an AI company. AI companies have more complex and integrated systems that involve <em>strategic data acquisition, unified data warehousing, pervasive automation, new roles such as Machine Learning Engineers (MLE), and a division of labor</em> that includes specialized personnel to develop, implement, and maintain AI systems. In other words, an AI company is more than just the use of deep learning technology, but rather a comprehensive approach to incorporating artificial intelligence into their operations.</p><p><strong>1.3.3. AI transformation for every company</strong></p><p>those are some of the steps that a company can take in order to undergo an AI transformation:</p><ol><li>Execute pilot projects to gain momentum</li><li>Build an in-house AI team</li><li>Provide broad AI training.</li><li>Develop an AI strategy</li><li>Develop internal and external communications</li></ol><h3>1.4. What machine learning can and cannot do</h3><p><strong>1.4.1. Machine learning can:</strong></p><ul><li>Automate tasks that involve input to output mapping, such as image or speech recognition, natural language processing, and predictive modeling.</li><li>Make predictions based on patterns and correlations in data.</li><li>Continuously improve and adapt to new data inputs, making it suitable for tasks that involve changing environments.</li></ul><p><strong>1.4.2. Machine learning cannot:</strong></p><ul><li>Replace human creativity or decision-making in tasks that require high-level reasoning, critical thinking, or empathy.</li><li>Learn from or make decisions based on subjective or value-laden data such as moral or ethical judgments.</li><li>Analyze vast amounts of data more quickly and accurately than humans.</li><li>Guarantee complete accuracy or eliminate bias, as it is only as good as the data it is trained on and the algorithms used.</li></ul><h3>1.5. Intuitive Explanation of Deep Learning</h3><p>As we know, deep learning uses artificial neural networks to learn from large amounts of data. It is like a brain made of connected cells called neurons that can learn from examples to solve complex problems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*Oin_8cI2Y1BRfdhgQA4Ing.png" /></figure><p>For example, we run a small <em>online store</em> and we want to predict how much of a certain product we should order. Here we could use deep learning to build a model that takes into account different factors, such as the price of the product, the shipping cost, the marketing budget, and the material cost, and predicts the demand for that product.</p><p>This model would use many neurons that are connected to each other in a way that allows the model to learn and make predictions without requiring explicit programming. With deep learning, the model can automatically discover patterns and relationships in the data to make accurate predictions.</p><p><strong>References:</strong></p><p><a href="https://www.youtube.com/watch?v=bf_ZjYTOgAY&amp;t=2s">https://www.youtube.com/watch?v=bf_ZjYTOgAY&amp;t=2s</a></p><p><a href="https://www.youtube.com/playlist?list=PLjF7dMeHalL8GU2Xh7vY6xn8kPlaKhpGw">https://www.youtube.com/playlist?list=PLjF7dMeHalL8GU2Xh7vY6xn8kPlaKhpGw</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a4a41ef4b4b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Regression Analysis: A Beginner’s Guide to Understanding Supervised Learning]]></title>
            <link>https://medium.com/@sadafsaleem5815/regression-analysis-a-beginners-guide-to-understanding-supervised-learning-757cd8652e61?source=rss-f3231af090cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/757cd8652e61</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[supervised-learning]]></category>
            <category><![CDATA[regression]]></category>
            <dc:creator><![CDATA[Sadaf Saleem]]></dc:creator>
            <pubDate>Sun, 12 Mar 2023 02:14:34 GMT</pubDate>
            <atom:updated>2023-03-12T02:14:34.154Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever wondered how businesses are able to predict future trends or consumer behavior? The answer lies in regression analysis, a powerful technique in supervised learning that can help make accurate predictions based on historical data.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fa7NBvg3Ss8UYo%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fa7NBvg3Ss8UYo%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2Fa7NBvg3Ss8UYo%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/c268335453d04c92e557456343e1e0cb/href">https://medium.com/media/c268335453d04c92e557456343e1e0cb/href</a></iframe><p>Don’t worry, even the smartest machine learning experts started out as clueless beginners like you. So grab a coffee, get comfortable, and let’s learn together!</p><p>In this beginner’s guide, we’ll explore the regression model in supervised learning, one of the most fundamental and widely used machine learning techniques. The figure below provides a general overview of the hierarchy of machine learning algorithms and types.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*cQFCBToVHHkfR6tk.jpg" /></figure><p>1. Supervised Learning:</p><ul><li>Regression: linear regression, polynomial regression, logistic regression, etc.</li><li>Classification: decision trees, random forests, support vector machines, neural networks, etc.</li></ul><p>2. Unsupervised Learning:</p><ul><li>Clustering: k-means clustering, hierarchical clustering, DBSCAN, etc.</li><li>Dimensionality Reduction: principal component analysis, t-distributed stochastic neighbor embedding, etc.</li></ul><p>3. Reinforcement Learning:</p><ul><li>Q-Learning</li><li>Deep Reinforcement Learning</li></ul><p>In this article, we’ll explain the basics of regression models and how they work in the context of machine learning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*SjtvbgUCtSXNsQge5fyKaA.png" /></figure><h3>Regression:</h3><p><strong>1. Introduction</strong></p><p>Regression is a type of supervised learning where the goal is to predict a continuous value or quantity based on a labeled data. It involves finding a relationship between a dependent variable (the value you want to predict) and one or more independent variables (the factors that affect the value you want to predict).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/281/0*hC7aI5KVHWo_PqPa" /></figure><p><strong>2. Types of Regression</strong></p><p>Some of the most common regression techniques in machine learning can be grouped into the following types of regression analysis:</p><ul><li>Simple Linear Regression</li><li>Multiple linear regression</li><li>Logistic regression</li></ul><p>Note: These are the main types of regression, but there are many other types and variations depending on the specific problem being solved and the data available for modeling such as, Time Series Regression, Poisson Regression, and Polynomial Regression etc.</p><p><strong>4. Algorithms used for Regression technique</strong></p><p>Following are all specific algorithms that can be used for supervised learning under the technique of regression.</p><p>i. Decision Trees</p><p>ii. Random Forest</p><p>iii. Gradient Boosting</p><p>iv. Neural Networks</p><p>v. Ridge Regression</p><p>vi. Lasso Regression</p><p>vii. Bayesian Regression</p><p>viii. Gaussian Process Regression</p><p>Note: These are just a few examples of the many algorithms that can be used for regression analysis. The choice of algorithm depends on the specific problem and the characteristics of the data.</p><h3>Types of Regression Analysis</h3><p>There are several types of regression analysis, each with its own unique purpose and characteristics. Here we will only describe two of the most commonly used forms of regression analysis, including simple linear regression, and multiple linear regression.</p><h3>1. Simple Linear Regression:</h3><p>Simple linear regression is a statistical technique used to model the relationship between two variables, where one variable (the dependent variable) is predicted based on the value of the other variable (the independent variable). It is the most basic type of regression in which we assume that there is a linear relationship between the two variables, meaning that the dependent variable can be expressed as a linear function of the independent variable.</p><p><strong>Why to use simple linear regression?</strong></p><p>Simple linear regression is useful in situations where we want to predict the value of a dependent variable based on the value of a single independent variable. It is often used in fields such as economics, social sciences, and engineering, where we want to model the relationship between two variables and make predictions based on that relationship.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F3ohzdIuqJoo8QdKlnW%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Freactionseditor-yes-awesome-3ohzdIuqJoo8QdKlnW&amp;image=https%3A%2F%2Fmedia4.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExYjdjM2FlNTcyNWFmZGM2ZjA4ZTlkMjIyYzllYWRkYmZjOThlZDFmYSZjdD1n%2F3ohzdIuqJoo8QdKlnW%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/4fabfc35a2abb2f0f55973f1b4f944ab/href">https://medium.com/media/4fabfc35a2abb2f0f55973f1b4f944ab/href</a></iframe><p><strong>Example:</strong></p><p>For instance, if you want to predict the price of a house based on its size, location, and number of bedrooms, you could use regression to find a mathematical equation that relates those variables to the price. There are many datasets available online for linear regression. I used the one from this <a href="https://www.kaggle.com/datasets/shivsharma272/house-data-set">here</a>. Let’s see an example code snippet demonstrating simple linear regression for predicting the price of a house based on its size:</p><pre>import pandas as pd<br>from sklearn.linear_model import LinearRegression<br><br># Load the dataset<br>data = pd.read_csv(&#39;house_data.csv&#39;)<br><br># Separate the feature (size) from the target variable (price)<br>X = data[[&#39;size&#39;]]<br>y = data[&#39;price&#39;]<br><br># Create a linear regression model and fit it to the data<br>model = LinearRegression()<br>model.fit(X, y)<br><br># Make predictions on new data<br>new_data = pd.DataFrame([1500, 2000], columns=[&#39;size&#39;])<br>predictions = model.predict(new_data)<br>print(predictions)<br></pre><p>This code loads the dataset of house data and separates the feature size from the target variable price. Then, a linear regression model is created and fit to the data using only the size feature. Finally, the model is used to make predictions on new data (i.e. houses with sizes 1500 and 2000 sq. ft.) and the predicted prices are printed to the console.</p><p>Note that the location variable in this example is categorical, so we would need to encode it as a numerical variable before fitting the model. We can do this using techniques like one-hot encoding or ordinal encoding.</p><p><strong>Assumptions of Simple Linear Regression:</strong></p><p>Before moving forward with simple linear regression, it is important to understand the assumptions involved in this model. These assumptions are:</p><p>Linearity: The relationship between the independent and dependent variable should be linear.</p><p>Homoscedasticity: The variance of the error term should be the same for all values of the independent variable.</p><p>Independence: The error terms should be independent of each other.</p><p>Normality: The error terms should be normally distributed.</p><p>No Multicollinearity: The independent variables should not be highly correlated with each other.</p><p><strong>Mathematical Formulation of Simple Linear Regression:</strong></p><p>The equation of a simple linear regression model can be written as:</p><p>y = mx + c</p><p>where y is the dependent variable, x is the independent variable, m is the slope of the line, and c is the intercept.</p><p>m = (nΣxy — ΣxΣy) / (nΣx² — (Σx)²)</p><p>c = (Σy — mΣx) / n</p><p>where n is the number of data points, Σxy is the sum of the product of x and y, Σx is the sum of x, Σy is the sum of y, and Σx² is the sum of squares of x.</p><p><strong>Prediction:</strong></p><p>Once we have the values of a and b, we can use the equation of the regression line to predict the value of the dependent variable for a given value of the independent variable.</p><h3>Multiple Linear Regression:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5hghA3V14qbVGjVN.jpg" /></figure><p>Multiple linear regression is an extension of simple linear regression and is used to model the relationship between a dependent variable and two or more independent variables. It is a powerful statistical technique that is used in many fields, including finance, economics, social sciences, and engineering.</p><p>Multiple linear regression is a statistical technique that models the relationship between a dependent variable and two or more independent variables. The general form of the multiple linear regression equation is:</p><p>Y = β0 + β1X1 + β2X2 + … + βnXn + ε</p><p>Where: Y is the dependent variable X1, X2, …, Xn are the independent variables β0, β1, β2, …, βn are the regression coefficients ε is the error term</p><p>The goal of multiple linear regression is to estimate the values of the regression coefficients such that the sum of the squared errors between the predicted and actual values of the dependent variable is minimized.</p><p><strong>Example:</strong></p><p>Here’s an example code snippet in Python using multiple linear regression to predict house prices based on size, location, and number of bedrooms:</p><pre>import pandas as pd<br>from sklearn.linear_model import LinearRegression<br><br># Load the dataset<br>data = pd.read_csv(&#39;house_data.csv&#39;)<br><br># Separate the features (size, location, and number of bedrooms) from the target variable (price)<br>X = data[[&#39;size&#39;, &#39;location&#39;, &#39;bedrooms&#39;]]<br>y = data[&#39;price&#39;]<br><br># Create a linear regression model and fit it to the data<br>model = LinearRegression()<br>model.fit(X, y)<br><br># Make predictions on new data<br>new_data = pd.DataFrame([[2000, &#39;city&#39;, 3], [1500, &#39;suburb&#39;, 2]], columns=[&#39;size&#39;, &#39;location&#39;, &#39;bedrooms&#39;])<br>predictions = model.predict(new_data)<br><br>print(predictions)</pre><p>In this example, we first load the dataset containing information about house prices, sizes, locations, and number of bedrooms. We then separate the features (size, location, and number of bedrooms) from the target variable (price). Next, we create a linear regression model using scikit-learn’s LinearRegression class and fit it to the data using the fit method.</p><p>Finally, we use the model to make predictions on new data by creating a new DataFrame with the same columns as the original dataset, but with different values for the features. We then call the predict method on the model to get predicted prices for the new houses, and print the results.</p><p>Note that the location variable in this example is categorical, so we would need to encode it as a numerical variable before fitting the model. We can do this using techniques like one-hot encoding or ordinal encoding.</p><p><strong>Assumptions of multiple linear regression:</strong></p><p>Multiple linear regression makes several assumptions about the data:</p><p>Linearity: The relationship between the dependent variable and each independent variable is linear.</p><p>Independence: The observations are independent of each other.</p><p>Normality: The residuals follow a normal distribution.</p><p>Homoscedasticity: The variance of the residuals is constant across all levels of the independent variables.</p><p>If these assumptions are not met, the results of the multiple linear regression analysis may not be accurate.</p><p><strong>Model evaluation:</strong></p><p>The goodness of fit of a multiple linear regression model can be evaluated using several metrics, including the coefficient of determination (R-squared), adjusted R-squared, root mean squared error (RMSE), and mean absolute error (MAE). These metrics help to assess the accuracy of the model in predicting the values of the dependent variable.</p><p><strong>Interpreting the results of multiple linear regression:</strong></p><p>The regression coefficients in a multiple linear regression model indicate the change in the dependent variable associated with a one-unit change in each independent variable, holding all other independent variables constant. The p-values associated with each coefficient indicate whether the coefficient is statistically significant. If the p-value is less than the significance level (usually 0.05), we can conclude that the coefficient is statistically significant and that the independent variable has a significant effect on the dependent variable.</p><h3><strong>Conclusion with Key Differences:</strong></h3><p>The key differences between simple linear regression and multiple linear regression are as follows:</p><ol><li>Number of Independent Variables: Simple linear regression has only one independent variable, whereas multiple linear regression has two or more independent variables.</li><li>Complexity of Model: As multiple linear regression involves two or more independent variables, it is more complex than simple linear regression, which has only one independent variable.</li><li>Types of Relationships: Simple linear regression models the relationship between two variables as a straight line, whereas multiple linear regression models the relationship between the dependent variable and two or more independent variables as a hyperplane.</li><li>Degree of Accuracy: Multiple linear regression is generally more accurate than simple linear regression as it considers multiple independent variables and their impact on the dependent variable.</li><li>Interpretation: Simple linear regression is easy to interpret as it involves only one independent variable, whereas multiple linear regression is more difficult to interpret due to the presence of multiple independent variables and their interactions.</li><li>Data Requirements: Multiple linear regression requires more data than simple linear regression, as it needs a sufficient number of observations for each independent variable.</li></ol><p>Hence, simple linear regression is suitable for analyzing the relationship between two variables while multiple linear regression is better suited for modeling complex relationships between a dependent variable and multiple independent variables.</p><p><em>If you’re not feeling confident and have more doubts, don’t hesitate to reach out to me </em><a href="https://www.linkedin.com/in/sadafsaleem"><em>here</em></a><em>. And if you’re still scratching your head then,</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FZKhArRA0TZyTWjTO0Z%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FZKhArRA0TZyTWjTO0Z%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FZKhArRA0TZyTWjTO0Z%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/671130e54f6d8a69031cd550d8d2ddee/href">https://medium.com/media/671130e54f6d8a69031cd550d8d2ddee/href</a></iframe><p><strong>References:</strong></p><p><a href="https://www.geeksforgeeks.org/regression-classification-supervised-machine-learning/">https://www.geeksforgeeks.org/regression-classification-supervised-machine-learning</a></p><p><a href="https://web2.qatar.cmu.edu/~gdicaro/15288/lectures/288-S21-2-MLTasks_Problems.pdf">https://web2.qatar.cmu.edu/~gdicaro/15288/lectures/288-S21-2-MLTasks_Problems.pdf</a></p><p><a href="https://towardsdatascience.com/supervised-learning-basics-of-linear-regression-1cbab48d0eba">https://towardsdatascience.com/supervised-learning-basics-of-linear-regression-1cbab48d0eba</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=757cd8652e61" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding the Basics of Machine Learning]]></title>
            <link>https://medium.com/@sadafsaleem5815/understanding-the-basics-of-machine-learning-b4f7d4af8ec7?source=rss-f3231af090cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4f7d4af8ec7</guid>
            <category><![CDATA[reinforcement-learning]]></category>
            <category><![CDATA[supervised-learning]]></category>
            <category><![CDATA[basics-machine-learning]]></category>
            <category><![CDATA[unsupervised-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Sadaf Saleem]]></dc:creator>
            <pubDate>Tue, 07 Mar 2023 08:57:12 GMT</pubDate>
            <atom:updated>2023-03-07T09:02:43.512Z</atom:updated>
            <content:encoded><![CDATA[<p>Machine learning is a rapidly growing field that has applications in a wide range of industries, from healthcare to finance to entertainment. In this post, we’ll explore the basics of machine learning, including what it is, how it works, and some common techniques used in the field.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*i--jln1n8midhj6N.jpg" /></figure><h3>What is Machine Learning?</h3><p>Machine learning is a type of artificial intelligence that allows computers to learn from data, without being explicitly programmed. In other words, instead of writing a set of rules for a computer to follow, machine learning algorithms use statistical methods to learn patterns and relationships in the data, and then use this knowledge to make predictions or decisions.</p><h3>How Does Machine Learning Work?</h3><p>Machine learning algorithms work by first being trained on a dataset. The dataset is typically divided into two parts: a training set and a testing set. The training set is used to train the algorithm, while the testing set is used to evaluate its performance.</p><p>During training, the algorithm learns the patterns and relationships in the data, adjusting its parameters until it can accurately predict the target variable. Once the algorithm has been trained, it can be used to make predictions on new data.</p><h3>Types of Machine Learning</h3><p>There are three main types of machine learning: supervised learning, unsupervised learning, and reinforcement learning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/0*eH45OtKnQu0vxnOw.PNG" /></figure><p><strong>1. Supervised learning</strong></p><p>Supervised learning involves training an algorithm on a labeled dataset, where the target variable is known. The goal of supervised learning is to learn a function that maps the input variables to the output variable.</p><p><strong>2. Unsupervised learning</strong></p><p>Unsupervised learning<strong> </strong>involves training an algorithm on an unlabeled dataset, where the target variable is not known. The goal of unsupervised learning is to learn the underlying structure of the data, such as identifying clusters or patterns.</p><p><strong>3. Reinforcement learning</strong></p><p>Reinforcement learning involves training an algorithm to make decisions based on rewards or penalties. The algorithm learns from its interactions with the environment, and adjusts its behavior to maximize its rewards.</p><h3>Machine Learning Algorithms in Terms of Approaches</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/0*BEElP1bhGnW0Dbsc.jpg" /></figure><p>There are further types of machine learning algorithms within the categories of supervised, unsupervised, and reinforcement learning. Here are some examples:</p><p><strong>1. Supervised Learning:</strong></p><ol><li>Decision trees</li><li>Random forests</li><li>Support Vector Machines (SVM)</li><li>Naïve Bayes</li><li>Gradient Boosting</li></ol><p><strong>2. Unsupervised Learning:</strong></p><ol><li>Association rule learning</li><li>Principal Component Analysis (PCA)</li><li>K-means clustering</li><li>Hierarchical clustering</li><li>Density-based clustering</li></ol><p><strong>3. Reinforcement Learning:</strong></p><ol><li>Q-learning</li><li>SARSA (State-Action-Reward-State-Action)</li><li>Deep reinforcement learning</li><li>Actor-Critic</li><li>Policy Gradient</li></ol><p><strong>Conclusion:</strong></p><p>Machine learning is a powerful tool that has the potential to revolutionize many industries. By understanding the basics of machine learning, you can start to explore its applications and potential, and begin to develop your own machine learning models.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4f7d4af8ec7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AZ900 40+ Important Practice Questions from Microsoft Learn]]></title>
            <link>https://medium.com/@sadafsaleem5815/az900-practice-assessment-questions-by-microsoft-learn-7fd2238cb007?source=rss-f3231af090cb------2</link>
            <guid isPermaLink="false">https://medium.com/p/7fd2238cb007</guid>
            <dc:creator><![CDATA[Sadaf Saleem]]></dc:creator>
            <pubDate>Sun, 05 Mar 2023 16:32:05 GMT</pubDate>
            <atom:updated>2023-03-11T12:09:19.319Z</atom:updated>
            <content:encoded><![CDATA[<h3>Question#01</h3><p>Select the answer that correctly completes the sentence.</p><p>Deploying and configuring cloud-based resources quickly as business requirements change is called [answer choice].</p><p><strong>a. Agility</strong></p><p>b. Scalability</p><p>c. Elasticity</p><p>d. High availability</p><h3>Question#02</h3><p>What are cloud-based backup services, data replication, and geo-distribution features of?</p><p>Only select one answer.</p><p><strong>a disaster recovery plan</strong></p><p>b. an elastic application configuration</p><p>c. a cost reduction plan</p><p>d. a hybrid cloud deployment</p><h3>Question#03</h3><p>What is high availability in a public cloud environment dependent on?</p><p>Only select one answer.</p><p><strong>a. the service-level agreement (SLA) that you choose</strong></p><p>b. the vertical scalability of an app</p><p>c. cloud-based backup retention limits</p><p>d. capital expenditures</p><h3>Question#04</h3><p>Select the answer that correctly completes the sentence.</p><p>An example of [answer choice] is automatically scaling an application to ensure that the application has the resources needed to meet customer demands.</p><p>a. agility</p><p>b. high availability</p><p>c. geo-distribution</p><p><strong>d. elasticity</strong></p><h3>Question#05</h3><p>Select the answer that correctly completes the sentence.</p><p>In cloud computing, [answer choice] allows you to deploy applications to regional datacenters around the world.</p><p>Only select one answer.</p><p>a. high availability</p><p>b. disaster recovery</p><p><strong>c. geo-location</strong></p><p>d. elasticity</p><h3>Question#06</h3><p>In which two deployment models are customers responsible for managing operating systems that host applications? Each correct answer presents a complete solution.</p><p>Select all answers that apply.</p><p>a. software as a service (SaaS)</p><p>b. platform as a service (PaaS)</p><p><strong>c. infrastructure as a service (IaaS)</strong></p><p><strong>d. on-premises</strong></p><h3>Question#07</h3><p>Which type of cloud service are virtual networks?</p><p><strong>a. infrastructure as a service (IaaS)</strong></p><p>b. platform as a service (PaaS)</p><p>c. software as a service (SaaS)</p><h3>Question#08</h3><p>[Answer choice] is the logical container used to combine and organize Azure resources.</p><p>Only select one answer.</p><p><strong>a. a resource group</strong></p><p>b. Azure Resource Manager (ARM)</p><p>c. a management group</p><p>d. an Azure region</p><h3>Question#08</h3><p>[Answer choice] are physically separate datacenters within an Azure region.</p><p>Only select one answer.</p><p>a. Geographies</p><p>b. Region pairs</p><p>c. Resource groups</p><p><strong>d. Availability zones</strong></p><h3>Question#09</h3><p>What is an Azure Storage account named storage001 an example of?</p><p>Only select one answer.</p><p><strong>a. a resource</strong></p><p>b. a resource group</p><p>c. a subscription</p><p>d. a resource manager</p><h3>Question#10</h3><p>Which resource can you use to manage access, policies, and compliance across multiple subscriptions?</p><p>Only select one answer.</p><p><strong>a. management groups</strong></p><p>b. resource groups</p><p>c. administrative units</p><h3>Question#11</h3><p>Which Azure resource is a software emulation of a physical computer that includes a virtual processor, memory, storage, and networking resources?</p><p>Only select one answer.</p><p><strong>a. a virtual machine</strong></p><p>b. an App Service</p><p>c. a function</p><p>d. a container</p><h3>Question#12</h3><p>Which scenario is a use case for a VPN gateway?</p><p>Only select one answer.</p><p><strong>a. connecting an on-premises datacenter to an Azure virtual network</strong></p><p>b. partitioning a virtual network’s address space</p><p>c. communicating between Azure resources</p><p>d. filtering outbound network traffic</p><h3>Question#13</h3><p>You need to allow resources on two different Azure virtual networks to communicate with each other.</p><p>What should you configure?</p><p>Only select one answer.</p><p>a. a network security group (NSG)</p><p>b. a point-to-site VPN</p><p><strong>c. peering</strong></p><p>d. service endpoints</p><h3>Question#14</h3><p>What can you use to connect Azure resources, such as Azure SQL databases, to an Azure virtual network?</p><p>Only select one answer.</p><p>a. ExpressRoute</p><p>b. network security groups (NSGs)</p><p>c. peering</p><p><strong>d. service endpoints</strong></p><h3>Question#15</h3><p>Which two services can you use to establish network connectivity between an-premises network and Azure resources? Each correct answer presents a complete solution.</p><p>Select all answers that apply.</p><p><strong>a. ExpressRoute</strong></p><p><strong>b. Azure VPN Gateway</strong></p><p>c. Azure Bastion</p><p>d. Azure Firewall</p><h3>Question#16</h3><p>What are two services that allow you to run applications in containers? Each correct answer presents a complete solution.</p><p>Select all answers that apply.</p><p><strong>a. Azure Container Instances</strong></p><p><strong>b. Azure Kubernetes Service (AKS)</strong></p><p>c. Azure Logic Apps</p><p>d. Azure Functions</p><h3>Question#17</h3><p>Which two protocols are used to access Azure file shares? Each correct answer presents a complete solution.</p><p>Select all answers that apply.</p><p>a. FTP</p><p>b. HTTP</p><p><strong>c. Network File System (NFS)</strong></p><p><strong>d. Server Message Block (SMB)</strong></p><h3>Question#18</h3><p>Which type of strategy uses a series of mechanisms to slow the advancement of an attack that aims to gain unauthorized access to data?</p><p>Only select one answer.</p><p><strong>a. defense in depth</strong></p><p>b. least privileged access</p><p>c. distributed denial-of-service (DDoS)</p><p>d. perimeter</p><h3>Question#19</h3><p>Which two scenarios are common billing use cases for resource tags? Each correct answer presents a complete solution.</p><p>Select all answers that apply.</p><p><strong>a. categorizing costs by department</strong></p><p><strong>b. associating costs with different environments</strong></p><p>c. resizing underutilized virtual machines</p><p>d. identifying lower cost regions</p><h3>Question#20</h3><p>You need to identify which Azure services are compliant with ISO 27001 Information Security Management Standards.</p><p>Where should you go to locate the information?</p><p>Only select one answer.</p><p><strong>a. Microsoft Trust Center</strong></p><p>b. Microsoft Privacy Statement</p><p>c. the Data Protection Addendum of Microsoft</p><p>d. Microsoft Online Services Terms</p><h3>Question#21</h3><p>Which management layer accepts requests from any Azure tool or API and enables you to create, update, and delete resources in an Azure account?</p><p>Only select one answer.</p><p><strong>a. Azure Resource Manager (ARM)</strong></p><p>b. Azure management groups</p><p>c. Azure CLI</p><p>d. Azure Sphere</p><h3>Question#22</h3><p>What should you use to access Azure Cloud Shell?</p><p>Only select one answer.</p><p><strong>a. a web browser</strong></p><p>b. Azure Resource Manager (ARM)</p><p>c. Microsoft Visual Studio Code</p><p>d. the command-line on a local computer</p><h3>Question#23</h3><p>You need to review the root cause analysis (RCA) report for a service outage that occurred last week.</p><p>Where should you look for the report?</p><p>Only select one answer.</p><p><strong>a. Azure Service Health</strong></p><p>b. Azure Advisor</p><p>c. Azure Monitor</p><p>d. Log Analytics</p><h3>Question#24</h3><p>You need to use thresholds to trigger autoscaling functionality to scale an app up or down to meet the demand.</p><p>What should you include in the solution?</p><p>Only select one answer.</p><p>a. Azure Service Health</p><p>b. Azure Advisor</p><p><strong>c. Azure Monitor</strong></p><p>d. Log Analytics</p><h3>Question#25</h3><p>Which issues require that you take action to avoid service interruptions, such as service retirements and breaking changes?</p><p>Only select one answer.</p><p><strong>a. health advisories</strong></p><p>b. service issues</p><p>c. application insights</p><p>d. Kusto queries</p><h3>Question#26</h3><p>What can you use to create alerts that relate to resource utilization for a specific Azure virtual machine?</p><p>Only select one answer.</p><p>a. Azure Advisor</p><p><strong>b. Azure Monitor</strong></p><p>c. Azure Policy</p><p>d. Azure Service Health</p><h3>Question#27</h3><p>What can you use to find information about planned maintenance for Azure services that are critical to your organization?</p><p>Only select one answer.</p><p><strong>a. Azure Service Health</strong></p><p>b. Azure Advisor</p><p>c. Azure Monitor</p><p>d. Log Analytics</p><h3>Question#28</h3><p>In a platform as a service (PaaS) model, which two components are the responsibility of the cloud service provider? Each correct answer presents a complete solution.</p><p>Select all answers that apply.</p><p><strong>a. operating system</strong></p><p><strong>b. physical network</strong></p><p>c. user access</p><p>d. information and data</p><h3>Question#29</h3><p>Your organization is building a custom application.</p><p>You need to focus on application development rather than configuration and management of servers. Which cloud service model should you use?</p><p>a. infrastructure as a service (IaaS)</p><p><strong>b. platform as a service (PaaS)</strong></p><p>c. software as a service (SaaS)</p><h3>Question#30</h3><p>What uses the infrastructure as a service (IaaS) cloud service model?</p><p>Only select one answer.</p><p><strong>a. Azure virtual machines</strong></p><p>b. Azure App Services</p><p>c. Microsoft Office 365</p><p>d. Azure Cosmos DB</p><h3>Question#31</h3><p>You have an Azure virtual machine that is accessed only between 9:00 and 17:00 each day.</p><p>What should you do to minimize costs but preserve the associated hard disks and data?</p><p>Only select one answer.</p><p><strong>a. Deallocate the virtual machine.</strong></p><p>b. Delete the virtual machine.</p><p>c. Scale down the virtual machine.</p><p>d. Resize the virtual machine.</p><h3>Question#32</h3><p>Your organization plans to deploy several production virtual machines that will have consistent resource usage throughout the year.</p><p>What can you use to minimize the costs of the virtual machines without reducing the functionality of the virtual machines?</p><p>Only select one answer.</p><p>a. Azure Monitor alerts</p><p><strong>b. Azure Reservations</strong></p><p>c. spending limits</p><h3>Question#33</h3><p>What can you use to restrict the deployment of a virtual machine to a specific location?</p><p>Only select one answer.</p><p>a. Azure AD</p><p>b. resource locks</p><p><strong>c. Azure Policy</strong></p><p>d. resource groups</p><h3>Question#34</h3><p>Which two components are created in an Azure subscription? Each correct answer presents a complete solution.</p><p>Select all answers that apply.</p><p><strong>a. resources</strong></p><p><strong>b. resource groups</strong></p><p>c. management groups</p><p>d. Azure AD user accounts</p><h3>Question#35</h3><p>Which Azure component allows you to replicate resources across a geography to ensure business continuity during a natural disaster at the primary site?</p><p>Only select one answer.</p><p><strong>a. region pairs</strong></p><p>b. availability zones</p><p>c. availability sets</p><p>d. Azure Virtual Machine Scale Sets</p><h3>Question#36</h3><p>Which two Azure resources can make use of availability zones? Each correct answer presents a complete solution.</p><p>Select all answers that apply.</p><p><strong>a. Azure SQL databases</strong></p><p><strong>b. virtual machines</strong></p><p>c. Azure subscriptions</p><p>d. resource groups</p><h3>Question#37</h3><p>Which Azure compute service can you use to deploy and manage a set of identical virtual machines?</p><p>Only select one answer.</p><p>a. availability sets</p><p>b. availability zones</p><p>c. Azure Container Instances</p><p><strong>d. Azure Virtual Machine Scale Sets</strong></p><h3>Question#38</h3><p>Which type of cloud service model is typically licensed through a monthly or annual subscription?</p><p>Only select one answer.</p><p>a. Infrastructure as a service (IaaS)</p><p>b. platform as a service (PaaS)</p><p><strong>c. software as a service (SaaS)</strong></p><h3>Question#39</h3><p>Select the answer that correctly completes the sentence.</p><p>Increasing compute capacity for an app by adding RAM or CPUs to a virtual machine is called [answer choice].</p><p>Only select one answer.</p><p><strong>a. vertical scaling</strong></p><p>b. horizontal scaling</p><p>c. disaster recovery</p><p>d. high availability</p><h3>Question#40</h3><p>What can you use to restrict the deployment of a virtual machine to a specific location?</p><p>Only select one answer.</p><p>a. Azure AD</p><p>b. resource locks</p><p><strong>c. Azure Policy</strong></p><p>d. resource groups</p><h3>Question#41</h3><p>Which two actions can be performed by using the graphical user interface (GUI) in the Azure portal? Each correct answer presents a complete solution.</p><p>Select all answers that apply.</p><p><strong>a. Create new resources.</strong></p><p><strong>b. Review a graphical view of all the services you are using.</strong></p><p>c. Change the availability zone of a virtual machine.</p><p>d. Repeatedly set up one or more resources and ensure that all the dependencies are created in the proper order.</p><h3>Question#42</h3><p>What can you use to manage resources, such as virtual machines, across multiple cloud platforms and on-premises environments?</p><p>Only select one answer.</p><p><strong>a. Azure Arc</strong></p><p>b. Azure CLI</p><p>c. Azure Monitor</p><p>d. Azure PowerShell</p><h3>Question#43</h3><p>What can you use to connect Azure resources, such as Azure SQL databases, to an Azure virtual network?</p><p>Only select one answer.</p><p>a. ExpressRoute</p><p>b. network security groups (NSGs)</p><p>c. peering</p><p><strong>d. service endpoints</strong></p><h3>Question#44</h3><p>What can you use to sync identities between Azure AD and an on-premises deployment of Active Directory Domain Services (AD DS)?</p><p>Only select one answer.</p><p><strong>a. Azure AD Connect</strong></p><p>b. Azure Resource Manager (ARM)</p><p>c. Conditional Access</p><p>d. Azure Key Vault</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7fd2238cb007" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>