<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: kainat Raisa</title>
    <description>The latest articles on DEV Community by kainat Raisa (@kainatraisa21).</description>
    <link>https://dev.to/kainatraisa21</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F970519%2F1e52d3e4-46b9-4a36-ac25-2437ef361a8a.jpeg</url>
      <title>DEV Community: kainat Raisa</title>
      <link>https://dev.to/kainatraisa21</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kainatraisa21"/>
    <language>en</language>
    <item>
      <title>🔍 Understanding Logistic Regression for Classification</title>
      <dc:creator>kainat Raisa</dc:creator>
      <pubDate>Sun, 24 Nov 2024 06:04:32 +0000</pubDate>
      <link>https://dev.to/kainatraisa21/understanding-logistic-regression-for-classification-1f8p</link>
      <guid>https://dev.to/kainatraisa21/understanding-logistic-regression-for-classification-1f8p</guid>
      <description>&lt;p&gt;Logistic regression is a powerful tool in machine learning, especially when dealing with binary, multinomial, or ordinal classification tasks. Here’s a quick breakdown of how it works and when to use it:&lt;/p&gt;

&lt;p&gt;1️⃣ Logistic Regression Basics:&lt;/p&gt;

&lt;p&gt;It’s mainly used for binary classification (where the output is either 0 or 1).&lt;br&gt;
The model uses a sigmoid function to output a probability value between 0 and 1.&lt;br&gt;
The logistic curve, or S-shaped curve, predicts values between 0 and 1, giving us a probabilistic interpretation.&lt;br&gt;
2️⃣ Sigmoid Function:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flpquf8w9l02i1kfap8eb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flpquf8w9l02i1kfap8eb.png" alt="Image description" width="744" height="400"&gt;&lt;/a&gt;&lt;br&gt;
​&lt;/p&gt;

&lt;p&gt;If the sigmoid function output is greater than 0.5, the datapoint is classified as Class 1, otherwise Class 0.&lt;/p&gt;

&lt;p&gt;3️⃣ Softmax for Multiclass Classification: For problems with more than two classes, we use the Softmax function to handle multiclass classification:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F850p1sgfbyoc3fyfdg09.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F850p1sgfbyoc3fyfdg09.png" alt="Image description" width="800" height="662"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;4️⃣ How Logistic Regression Works:&lt;/p&gt;

&lt;p&gt;The model computes a linear combination of the input features:&lt;br&gt;
𝑧 = 𝑤 ⋅ 𝑋 + 𝑏&lt;/p&gt;

&lt;p&gt;Where w represents the weights and b is the bias.&lt;br&gt;
Then, it applies the sigmoid function:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpnbc7w2x7m5d1sxk8gu1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpnbc7w2x7m5d1sxk8gu1.png" alt="Image description" width="720" height="302"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This converts the linear output to a probability.&lt;br&gt;
5️⃣ When to Use Logistic Regression:&lt;/p&gt;

&lt;p&gt;Best suited for datasets without outliers.&lt;br&gt;
It works well when there’s a clear decision threshold.&lt;br&gt;
If you're diving into machine learning, logistic regression is a must-know! It's a great starting point for understanding classification problems. 🚀&lt;/p&gt;

&lt;h1&gt;
  
  
  MachineLearning #DataScience #LogisticRegression #AI #Classification #SigmoidFunction #Softmax #BinaryClassification
&lt;/h1&gt;

</description>
    </item>
    <item>
      <title>Space Mission ML Project - Part 2(Data Visualization)</title>
      <dc:creator>kainat Raisa</dc:creator>
      <pubDate>Mon, 13 Nov 2023 14:13:43 +0000</pubDate>
      <link>https://dev.to/kainatraisa21/space-mission-ml-project-part-2data-visualization-36cm</link>
      <guid>https://dev.to/kainatraisa21/space-mission-ml-project-part-2data-visualization-36cm</guid>
      <description>&lt;p&gt;&lt;strong&gt;Let's Visualize the Story, our Space Mission Dataset is trying to tell&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In the first part of this blog have tried to separate the mission details of each organization.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--CDrA2_lW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7gcckv6kuzxyw2prz0ez.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--CDrA2_lW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7gcckv6kuzxyw2prz0ez.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now we are going to visualize how the cost/price of the space missions of a specific organization have varied/changed over time. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---ia6iisM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4oz5ats75t352p5d6hyt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---ia6iisM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4oz5ats75t352p5d6hyt.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;br&gt;
Here we have used the Plotly visualization library to create a date v/s price for ISRO.&lt;/p&gt;

&lt;p&gt;Now we'll see the frequency distribution of all mission costs. So we have created a distribution plot here using the matplotlib and seraborn library(python's seaborn library has been built on the roof of matplotlib).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--gpYJY3PE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jwit0y7fydzv0qqkjdry.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--gpYJY3PE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jwit0y7fydzv0qqkjdry.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now we'll see counts of the status of the missions which means how many space missions are in each status worldwide.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--S0f0OXx6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bc2tb24cubavt4a5la5n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--S0f0OXx6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bc2tb24cubavt4a5la5n.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Probably a concern is raising in your mind what if we get to see how many total missions have been launched by each space organization?&lt;br&gt;
here we have created a bar plot.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--OlOSgGNR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4ss63ixx0rclwj8fivky.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--OlOSgGNR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4ss63ixx0rclwj8fivky.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--tFVHTQSs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ki7txpx6ep485926zohl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--tFVHTQSs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ki7txpx6ep485926zohl.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To see the success or failure rate of the missions we can create a piechart. When we are creating a piechart with the Mission-status and count column(created using value-counts) using plotly the counts will default converted to percentages.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Tuck7oHA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b1ve953dh0hdc8yo5xm8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Tuck7oHA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b1ve953dh0hdc8yo5xm8.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Understanding Machine learning</title>
      <dc:creator>kainat Raisa</dc:creator>
      <pubDate>Sun, 12 Nov 2023 08:30:52 +0000</pubDate>
      <link>https://dev.to/kainatraisa21/understanding-machine-learning-302c</link>
      <guid>https://dev.to/kainatraisa21/understanding-machine-learning-302c</guid>
      <description>&lt;p&gt;&lt;strong&gt;How do humans learn?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Understanding and explaining how humans learn is a complex discussion as it involves Psychology intensively. But if I have to explain "how humans learn" in simple words I will say that when our brain gets exposed to Data or when we encounter a situation our brain explores the situation and trains itself using the data. When we encounter a similar situation our brain makes decisions or acts based on the pre-training. Now moving forward, why am I talking about the process and psychology behind how humans learn? Machine Learning or how a machine learns has a lot of similarities with the human learning process.&lt;/p&gt;

</description>
      <category>machinelearnin</category>
      <category>algorithms</category>
      <category>machinelearningmodels</category>
    </item>
    <item>
      <title>Converting NASA's Open Data into Insights using EONET API</title>
      <dc:creator>kainat Raisa</dc:creator>
      <pubDate>Mon, 23 Oct 2023 13:29:59 +0000</pubDate>
      <link>https://dev.to/kainatraisa21/converting-nasas-open-data-into-insights-using-eonet-api-5728</link>
      <guid>https://dev.to/kainatraisa21/converting-nasas-open-data-into-insights-using-eonet-api-5728</guid>
      <description>&lt;p&gt;&lt;strong&gt;About the Project&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In this project, I have tried to convert the NASA EONET Open Data into a bit more visualized form. This is a very small project where I have accessed the Data about Earth's Natural Events using the Open EONET API from NASA and created an interactive world map. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Importing the necessary Python Libraries&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Here I am importing the requests, json, pandas, folium, IPython Library of Python. If you are using Jupyter Notebook and don't have the libraries preinstalled on your desktop then just write the code in a cell below (separately for each library) : &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Hg4QQBgk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9cf7x9w0ax3vbjji91ux.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Hg4QQBgk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9cf7x9w0ax3vbjji91ux.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--vjG6hgyY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ba6w983rh3vq7e25qn31.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vjG6hgyY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ba6w983rh3vq7e25qn31.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here I have put the API URL and URL key in two variables named as url and key, and then I have set the parameters for making the API request ( if you want to know more about the NASA Open APIs then click on this link: &lt;a href="https://api.nasa.gov/"&gt;https://api.nasa.gov/&lt;/a&gt; )&lt;/p&gt;

&lt;p&gt;Making the API request and printing the textual part of the response &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5rT6Ugg_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jjrc1r52qk5nkvjmr9lw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5rT6Ugg_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jjrc1r52qk5nkvjmr9lw.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The response is returning us a JSON object (a javascript object), this format of data is almost similar to a Python dictionary.&lt;/p&gt;

&lt;p&gt;Now we'll load the data from the json object. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--YXzC3sn4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g9yh6iglakuvn7mibqvs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--YXzC3sn4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g9yh6iglakuvn7mibqvs.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Converting the title, description, and link part of the response Data into a pandas Dataframe. And then I'll check the head of the Dataframe.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--24Ofh-K2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iqmd99han5269onk64gu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--24Ofh-K2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iqmd99han5269onk64gu.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As you can see all of the are in a single column in our dataframe which means they are not in the normal form so we need to normalize the dataframe.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--J6m9DmKt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ai6yknkmqym5rvtoqx6z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--J6m9DmKt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ai6yknkmqym5rvtoqx6z.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;br&gt;
We have normalized the dataframe using json_normalize method of the pandas dataframe. &lt;/p&gt;

&lt;p&gt;Now we'll need to separate the event ids and category titles from the categories column.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--wglzyRCu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ew52ed8dgftq9z68c74z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wglzyRCu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ew52ed8dgftq9z68c74z.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now we'll see how many of the different natural events happening on earth on that particular data.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--UZyHimfG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gdyzcl0qkhj4jeegslc2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--UZyHimfG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gdyzcl0qkhj4jeegslc2.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now I am using the folium library to create a world map.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--QIUOiPZ---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yejg0qvyegeaxph59bmi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--QIUOiPZ---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yejg0qvyegeaxph59bmi.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I have saved the map on my desktop as an HTML file as world_natural_events_map2.html. Now I'll use the IPython library to display the map.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ShTKDTEC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6gq3u835hlfqhlms6l7a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ShTKDTEC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6gq3u835hlfqhlms6l7a.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;this is an interactive map, we can click on the markers and see further details about the events.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Space Mission ML Project - Part 1(EDA)</title>
      <dc:creator>kainat Raisa</dc:creator>
      <pubDate>Thu, 19 Oct 2023 07:15:31 +0000</pubDate>
      <link>https://dev.to/kainatraisa21/space-mission-ml-project-part-1eda-52eo</link>
      <guid>https://dev.to/kainatraisa21/space-mission-ml-project-part-1eda-52eo</guid>
      <description>&lt;p&gt;&lt;strong&gt;About the Dataset&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The Kaggle Dataset today we'll be using for this machine learning project is the space mission launch dataset. This dataset is about the status, cost, rocket status, etc. of the Space missions launched by different space organizations over time. &lt;br&gt;
You can download the dataset from the link below.&lt;br&gt;
Link of the Kaggle Dataset: &lt;a href="https://www.kaggle.com/datasets/sefercanapaydn/mission-launches"&gt;https://www.kaggle.com/datasets/sefercanapaydn/mission-launches&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;About the Project&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The Machine Learning Project we are going to create today is about exploring how the space mission cost has changed over time, which space organization has seen the most success or failures over time etc., and will create a predictive model to predict the success/failure of the future space missions. We are going to use some amazingly useful Python libraries and Python to create meaningful stories from the data.&lt;/p&gt;

&lt;h2&gt;
  
  
  Unleashing the Magic from the Data Begins
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Importing the Essential Libraries&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In this part of the project, we'll be importing just the libraries we are going to use for the data analysis ( the ML libraries will be introduced in the 3rd part of the project).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--IFKweL4t--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3dpuy9wj5ny9ffzotb43.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--IFKweL4t--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3dpuy9wj5ny9ffzotb43.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;br&gt;
( don't freak out right now, I'll explain everything about the libraries and when to use which one )&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Accessing the Data&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--6-Q-deK8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8ux027sl3fcvgvfw1jtb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--6-Q-deK8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8ux027sl3fcvgvfw1jtb.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;br&gt;
Here we have read the CSV Data file and restructured the data into a pandas DataFrame. Using the head() method we are trying to see the first 5 rows/entries of the dataset. This shows us what and how the datapoints are present in the dataframe. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cleansing and Filtering the Data&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--UK5ctXLs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9jrp11i3id58zx3nxk7n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--UK5ctXLs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9jrp11i3id58zx3nxk7n.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;br&gt;
We are dropping the two unnamed columns using the drop(inplace=True) (inplace=True represents that we are dropping the columns from the original dataframe) method as they are not providing much value to the dataset. Then we'll check the head() of the dataframe again just to ensure that the columns are no longer in the dataframe.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--XotNXTsK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iqnw8ecia33bzjcitm8f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--XotNXTsK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iqnw8ecia33bzjcitm8f.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;br&gt;
The info() method returns the non-null datapoints account and types of the datapoints.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---uOx8Mk4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fio2urov080w235o3ouo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---uOx8Mk4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fio2urov080w235o3ouo.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;br&gt;
the isna() method shows us whether there are null values or not. We usually drop the null values when there are very few of them but in this case, the Price column is carrying a large amount of null values so we'll handle the null entries differently. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--_kDeT49e--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/21ibxxme22kez3xw5kv0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_kDeT49e--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/21ibxxme22kez3xw5kv0.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;br&gt;
here we can see from the info that the price column is carrying non-numeric values so we are converting the prices into numeric data. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Let's see what the Data is telling us&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;We have organized details about all of the missions each organization has launched. Let's see the first 10 entries here:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--HnwbKQUN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yr5gpvmiew0u570geryo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--HnwbKQUN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yr5gpvmiew0u570geryo.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here we are trying to see total number of missions of each organization and the organization name with the maximum missions :&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--tjenco8---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/giwbrdalh7ou0lqv07oc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--tjenco8---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/giwbrdalh7ou0lqv07oc.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--fGZVU73J--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gjiylaw2eyfqc8le4caj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--fGZVU73J--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gjiylaw2eyfqc8le4caj.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now we'll see how many missions have been successful, how many have failed, and how many have prelaunch and partial failures for each organization. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--aROQuA5B--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6j9p1vpg5elnx62zom07.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--aROQuA5B--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6j9p1vpg5elnx62zom07.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As we know a space mission's success or failure is a significant parameter in an organization's space research history so we need to know the name of the organization with the maximum successful missions.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--mZZTUk1b--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/15e8dbbor7thbr3lyxq9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--mZZTUk1b--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/15e8dbbor7thbr3lyxq9.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To know more and all of the details about an organization we are trying to filter out the data by organizations. Enter a space organization's name and their space mission details will be shown. (here we have printed the Data for ISRO. Go and try it out for SpaceX)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--C8uY6qLQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l3ncfxpaq8gvncol088k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--C8uY6qLQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l3ncfxpaq8gvncol088k.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here we are trying to know the status of the rockets of each organization.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--W_g-HdL4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jawlkw0zwc1amgorko7t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--W_g-HdL4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jawlkw0zwc1amgorko7t.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Machine Learning-The modern way of unleashing hidden possibilities</title>
      <dc:creator>kainat Raisa</dc:creator>
      <pubDate>Wed, 19 Apr 2023 08:17:36 +0000</pubDate>
      <link>https://dev.to/kainatraisa21/machine-learning-the-modern-way-of-unleashing-hidden-possibilities-4hpo</link>
      <guid>https://dev.to/kainatraisa21/machine-learning-the-modern-way-of-unleashing-hidden-possibilities-4hpo</guid>
      <description>&lt;p&gt;&lt;strong&gt;Why Machine Learning ?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I always love to start my blogs with explaining "why" we are even talking about that topic. The reason behind this is that i strongly believe that the "why" should always be clear to us whenever we are heading towards something new. When we have the answer of "what is it?" we basically just "know" the topic but when we have the answer of "why this?" we start understanding the topic. You are maybe thinking that why am i discussing all of these philosophical stuff but these words are for those who will become learners from just readers of this blog.&lt;/p&gt;

&lt;p&gt;Getting back to the point, now we will discuss that why Machine Learning had been introduced to human. In typical words Machine Learning is the ability of computational machines to imitate human-like behavior/intelligence. What type of human intelligence we are talking referring to? We are talking about human's ability of recognizing hidden patterns and predicting things. We can teach a machine how to unleash hidden patterns and make predictions based on the patterns. This is basic concept of Machine Learning. Our traditional computation system does not allow the machines to learn from given data by their own but ML allows us to do so. Application of ML in various fields like business, Education, Research etc. has unleashed many hidden possibilities.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Machine Learning Categories&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;There are three ways of a machine to learn from data, discover the hidden patterns and unleash the story behind the dataset. When we train a machine learning model using labelled data which means we tell the machine what the input dataset is about and what to predict is called Supervised Learning. The second way of training an ML model is using un-labelled dataset which means we won't tell the model what is the input dataset about and what to predict. Is is sounding absurd? okay, let me explain this a bit more. Suppose we are giving the medical history of the cardiac patients a doctor has seen in a year as the input dataset to train an ML model. We are not telling the model what we actually want the model to predict. Suppose maximum of the patients who were detected to have severe cardiac issue had diabetes, so if we give the medical history of a new patient who visited to the cardiologist the ML model will be able to predict that whether that person has a severe cardiac issue or not before the physical check-up. &lt;br&gt;
The third way an ML model can be trained is through reward or punishment based learning which is called Reinforcement Learning. In this method the model will get rewarded(in the form of positive feedback) for producing the desired behaviors and will get punished(in the form of negative feedback) for undesired behaviors. &lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>ai</category>
      <category>machinelearnimodels</category>
    </item>
    <item>
      <title>Linked Lists (implementation using Python) and it’s applications</title>
      <dc:creator>kainat Raisa</dc:creator>
      <pubDate>Mon, 27 Mar 2023 14:58:01 +0000</pubDate>
      <link>https://dev.to/kainatraisa21/linked-lists-implementation-using-python-and-its-applications-15pc</link>
      <guid>https://dev.to/kainatraisa21/linked-lists-implementation-using-python-and-its-applications-15pc</guid>
      <description>&lt;p&gt;&lt;strong&gt;Let's talk about Lists first&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In computer programming Lists are a type of data structure through which we store data. List data structures are similar to the "real life list" concept. The way all of the elements of a real life list comes one after another  list data structures also store the data contiguously in the memory. We can access, modify as well as delete the elements of a list data structure.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; (The theoretical part)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;What are Linked Lists&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Linked Lists are the data structures which store data linearly (like a list) but they don’t store the elements contiguously in the memory. Each element of a Linked List is called a Node. The links among the nodes is a unique feature of a Linked List. Based on the connections there are 4 types of Linked Lists. The 4 types of Linked Lists are: Singly Linked List, Circular Singly Linked List, Doubly Linked List and Circular Doubly Linked List.&lt;br&gt;
Enough of the bookish definition of Linked Lists now we'll learn about Linked Lists in our own words. &lt;br&gt;
Every linked list has atleast  concepts/parts. A head node/value, a tail node/value, next and pervious node's reference.&lt;/p&gt;

&lt;p&gt;🔶 Singly Linked List:&lt;br&gt;
Let's assume the Singly Linked list as a train. The way the train compartments are connected to their next compartments with a link, the nodes of a Singly Linked List are linked to their next nodes. Every element of a Linked List is called a node. The very first node of the Linked List is called the Head. The last node is called the tail(the node after which no newnode will exist is the last node). As we know that Linked Lists don’t store data sequentially so index 1 stores the tail node(this is the 2nd node we create). A node stores the memory address of the next node. We can access the next node of a linked list using the node.&lt;/p&gt;

&lt;p&gt;Real life application: Back buttons(for example:- the smartphone back buttons are  created using Singly Linked List so they allow us to go only in a single direction).&lt;/p&gt;

&lt;p&gt;🔶 Circular Singly Linked List:&lt;br&gt;
The only structural difference between Singly Linked List and Circular Singly Linked List is that the Circular Singly Linked List has a link between the Head and Tail node. Which means the Tail node stores the memory value of the Head node.&lt;/p&gt;

&lt;p&gt;Real life application: The Circular Singly Linked List is used in our personal computers. When multiple applications are run on a PC all of the running apps are stored in a CSLL.&lt;/p&gt;

&lt;p&gt;🔶 Doubly Linked List:&lt;br&gt;
The nodes of a Doubly Linked List store the memory locations of both the previous and next node. Which means we can access both the previous and next node using the current node. Otherwise all of the features of DLL are similar to SLL.&lt;/p&gt;

&lt;p&gt;Real life applications: Web browser cache, music player etc.&lt;/p&gt;

&lt;p&gt;🔶 Circular Doubly Linked list:&lt;br&gt;
The only structural difference between Circular Singly Linked List and Circular Doubly Linked List is that in CDLL the Head and Tail nodes are connected with eachother both ways so the tail's next node will be the head and the head's previous node will be the tail node.&lt;/p&gt;

&lt;p&gt;Real life applications: Shopping cart on online websites etc.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    (The implementation part will be added here soon)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
    </item>
    <item>
      <title>Notes on Data Science Fundamentals</title>
      <dc:creator>kainat Raisa</dc:creator>
      <pubDate>Sun, 05 Mar 2023 15:25:42 +0000</pubDate>
      <link>https://dev.to/kainatraisa21/notes-on-data-science-fundamentals-486h</link>
      <guid>https://dev.to/kainatraisa21/notes-on-data-science-fundamentals-486h</guid>
      <description>&lt;p&gt;&lt;strong&gt;Why Data Science?&lt;/strong&gt;&lt;br&gt;
Huge amount of data is produced everyday from virtual platforms, industrial zones, corporate offices, Scientific experiments etc. All of these data needs to be managed, organized, analyzed properly to be used for making better strategies for our businesses, organizations, research work etc. Data is a core part of the development as well as the revolution of 21st century. So we need a whole field where we will work,understand, discover with data and from data. This field of work and study is know as Data Science.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is Data Science?&lt;/strong&gt;&lt;br&gt;
The science of getting insights from data(usually huge amount of data) by collecting, organizing summarizing, and visualizing them for better decision making is called Data Science.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Some Tools we use for Data Science :-&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;▪️Databases (MySQL, MongoDB etc.) : Used for storing data in a structured way.&lt;br&gt;
▪️Spreadsheet softwares (MS Excel, Google Drive Spreadsheet etc.) : Used to prepare Data for analysis.&lt;br&gt;
▪️ Data analysis tools (Python, R, MATLAB etc.) : Used for structure, analyze, visualize data.&lt;br&gt;
▪️ Programming libraries and modules (Matplotlib, seaborn, plotly, Numpy,Pandas etc.) : Used for performing different operations on the Data.&lt;br&gt;
▪️ Apache Spark : Used for big data loads.&lt;br&gt;
▪️ Virtual Environments ( Jupyter Notebook, VSCode etc.) : Used to perform the operations on data using programming languages.&lt;/p&gt;

&lt;p&gt;(There are many more tools which are widely used in the field of Data Science)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Data Science methodology( steps we follow for Data Science) :-&lt;/strong&gt;&lt;br&gt;
▪️Business Understanding &lt;br&gt;
▪️Analytic Approach &lt;br&gt;
▪️Data requirements &lt;br&gt;
▪️Data Collection &lt;br&gt;
▪️Data understanding &lt;br&gt;
▪️Data preparation &lt;br&gt;
▪️Modeling &lt;br&gt;
▪️Evaluation &lt;br&gt;
▪️Deployment &lt;br&gt;
▪️Feedback &lt;/p&gt;

&lt;p&gt;(All of the concepts mentioned above will be broadly explained in another blog)&lt;/p&gt;

</description>
      <category>datascience</category>
      <category>machinelearning</category>
      <category>ai</category>
      <category>python</category>
    </item>
    <item>
      <title>Time Complexity-Diving into the ocean of Algorithms(part 1)</title>
      <dc:creator>kainat Raisa</dc:creator>
      <pubDate>Wed, 01 Mar 2023 11:19:43 +0000</pubDate>
      <link>https://dev.to/kainatraisa21/time-and-space-complexity-diving-into-the-ocean-of-algorithms-1h37</link>
      <guid>https://dev.to/kainatraisa21/time-and-space-complexity-diving-into-the-ocean-of-algorithms-1h37</guid>
      <description>&lt;p&gt;&lt;strong&gt;What do we mean by Time Complexity?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I am assuming that the person who is reading this blog is just like me who always freaks out whenever it comes on understanding Data Structures and Algorithms. Don't worry mate, in this blog we are going to figure out together how to deal this "Problem". &lt;/p&gt;

&lt;p&gt;Let's understand how a computer programming algorithm works. We can compare a computer(any computing machine) with a human brain. In our day to day life our brain follows multiple sequential commands to accomplish a particular task. Just like that a computer follows the sets of instructions we as a computer programmers give to it to perform  any task. The set of instructions/steps a computer follows to accomplish a task is called Algorithm. A computer takes time to execute every programmig algorithm. But the time requirement for every algorithm is not the same. Different algorithms take different amount of time to get executed(just like making tea and doing your assignment requires you different amount of times). On the other hand the execution time of an algorithm varies with the input size(the amount of material we work with). For example: The time you’ll need/spend to make tea for ten people will be more than the time  you’ll need to make one cup of tea,because you’ll need more water/milk for ten cups of tea than a single cup of tea and more amount of water/milk requires more time and heat to boil. Just like this when you write an algorithm of finding sum of "n"(n is a variable which can be any positive integer)numbers the time to execute this algorithm for two numbers will be less than the time required for 100 numbers.&lt;br&gt;
Again, when we are talking about efficiency of performing a task we can not forget to consider the capability of the performer. For example: Your mother takes less time to make tea than you spend to make(as you need to find everything and end up making a mess in the kitchen 😐). This is because your mother is more efficient in executing the tea making process but you are a confused kiddo! Just like this different devices take different amount of times to execute a program. &lt;/p&gt;

&lt;p&gt;The time variation of an algorithm due to the changing input size is called "&lt;em&gt;Time Complexity of an Algorithm"&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How do we measure Time Complexity of an Algorithm&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;As we have already discussed that the execution time of a computer program very easy with the input size as well as the device we run the program on. So it will not be appropriate for us two measure the absolute valuevalue of the execution time. So the mathematicians have come up with the idea of expressing the execution time as a relationship between the input size and time. &lt;br&gt;
This relationship is expressed using different equations for different types of algorithms.The relationship between the input size and the time required can be linear or nonlinear. For example if we loop through a list Data structure using a single loop then the relationship between the input size and execution time can be expressed like a linear funtion. &lt;br&gt;
There are three cases(we will consider these three) of time complexity. These three cases are expressed with three notations which are called the Asymptotic Notations. When the program works with the minimum input size possible and takes minimum possible time to be executed we call it the Best case time complexity and it is expressed with Big Omega(Ω(n))notation. When our program has to work with the maximum possible input size it requires maximum time to execute this case is the Worst case time complexity and it is expressed with Big O (O(n)) notation. The Average case time complexity is the average of Big O and Big Omega complexity which is expressed with Big Theta(θ(n)) notation.&lt;/p&gt;

&lt;p&gt;Often a programming problem is solved using multiple algorithms&lt;br&gt;
but not every algorithm is time efficient. When we talk about time efficiency of a computer program we actually compare the worst case time complexity which means we consider Big O. &lt;br&gt;
Big O or the worst case time complexity expression comes from the relationship of time and input size we talked about. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--RxNhmLXr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fcamjfz7kxkkypf8h30g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--RxNhmLXr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/fcamjfz7kxkkypf8h30g.png" alt="Image description" width="800" height="451"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>pandas, a Python library for data manipulation</title>
      <dc:creator>kainat Raisa</dc:creator>
      <pubDate>Sun, 12 Feb 2023 07:20:34 +0000</pubDate>
      <link>https://dev.to/kainatraisa21/pandas-a-python-library-for-data-manipulation-28ob</link>
      <guid>https://dev.to/kainatraisa21/pandas-a-python-library-for-data-manipulation-28ob</guid>
      <description>&lt;p&gt;&lt;strong&gt;How can a panda manipulate data?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When i first heard the name 'pandas' i wondered "how can these chubby animals work with data?". okay...i know that you are thinking how dumb i was. So now, if in Python 'pandas' are not some chubby entities then what is it???&lt;br&gt;
pandas is a Python library which helps us to work with data. As we know that a code library is a collection of modules or functionalities which can be used by any programmer. Python is one of the languages which provide a huge variety of code libraries. pandas is one of the most helpful and important feature of Python which has made data manipulation way much easier for the tech-people who has to work with bulky datasets. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgqjrl06jc9ihw9q4nm8a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgqjrl06jc9ihw9q4nm8a.png" alt="Image description" width="800" height="670"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why pandas?&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;Fields like Machine Learning, Artificial Intelligence, Deep Learning, Natural Language Processing, Data Science require a huge amount of data. These data can either be raw or organized data. pandas help us to visually represent the data in a comprehensible format. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Some fundamentals of pandas&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Using pandas we can present a data set in a tabular format where all of the data are presented in rows and columns with corresponding row and column headings. In pandas this tabular format of data is called a DataFrame. We can pass CSV files,excel files or even dictionaries as a pandas Dataframe. &lt;br&gt;
We can import pandas just like other python libraries with the import keyword. Here i am inporting pandas as pd( the most convenient abbreviation for pandas). &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fueqxxcnuqsdayv8kbof0.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fueqxxcnuqsdayv8kbof0.jpg" alt="Image description" width="800" height="220"&gt;&lt;/a&gt;&lt;br&gt;
When we pass a dictionary inside a pandas DataFrame the keys correspond to the column names and values are the column elements.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcr6tfwyv93zlszdlq76j.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcr6tfwyv93zlszdlq76j.jpg" alt="Image description" width="800" height="245"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now we are going to pass the dictionary named "dict" inside a DataFrame and store the DataFrame in a variable named "df" (you can give any name to the variable). And we'll print the DataFrame df to see the output. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgqivma8qaif4hgq3phw1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgqivma8qaif4hgq3phw1.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;br&gt;
Yeeeyyyy! We have successfully created our first DataFrame. &lt;/p&gt;

</description>
      <category>watercooler</category>
    </item>
    <item>
      <title>Entering the world of Object Oriented Programming(OOP)</title>
      <dc:creator>kainat Raisa</dc:creator>
      <pubDate>Thu, 08 Dec 2022 06:09:21 +0000</pubDate>
      <link>https://dev.to/kainatraisa21/entering-the-world-of-object-oriented-programmingoop-1ne9</link>
      <guid>https://dev.to/kainatraisa21/entering-the-world-of-object-oriented-programmingoop-1ne9</guid>
      <description>&lt;p&gt;&lt;strong&gt;Why OOP?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Before learning anything we should always find the answer of "Why is this useful/Why are we learning this?". So before knowing what is OOP we are going to know why we are even talking about this.&lt;br&gt;
In the physical world we need to create products which are similar to eachother. The products may have the same functionalities but probably with a little different specifications. As we need to use the same base product everytime we work smartly. We make a base skeleton of the products with the similar functionalities and add the specifications later on while creating a particular object. Let's understand this with an example: Suppose you want to build your own house. So what would you do first? You'll hire an architect to make a blueprint of your house. This blueprint is the class which can be called " House" class. This "House" will/may have windows,doors,rooms,balconies and many more things. All of these features are the functionalities of the house. The blueprint of your house can be used by anyone for building their own house. All of the houses which have been built or will be built are "Objects".&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--9jx5A7a4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5zi6sj7kaymgk3po02q2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--9jx5A7a4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5zi6sj7kaymgk3po02q2.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is OOP?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Just like the physical world we need to create many objects with the same functionalities in the virtual world also. So we create a virtual skeleton for that purpose. This is similar to the Resume templates we use to make our own Resumes.In programming languages we use and create many classes and objects to build virtual products. For example: Suppose we are building an "Animal Planet" comouter game which has multiple animals and they all speak different words. In this case "Animal" will be the class and different animals like Dog,Duck and Cat will be the objects. All of them have the "speak" functionality but they speak "Woof"," Quack" and "Meaw correspondingly. In computer programming all of these together(classes, objects, methods etc.) are called Object Oriented Programming. The functionalities are called " methods" in OOP. &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--GU9KnUqE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xdzxwq12ns9y25n5lxxr.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--GU9KnUqE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xdzxwq12ns9y25n5lxxr.gif" alt="Image description" width="408" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>ai</category>
      <category>oop</category>
      <category>python</category>
    </item>
    <item>
      <title>The Numpy</title>
      <dc:creator>kainat Raisa</dc:creator>
      <pubDate>Mon, 21 Nov 2022 17:33:49 +0000</pubDate>
      <link>https://dev.to/kainatraisa21/the-numpy-33ga</link>
      <guid>https://dev.to/kainatraisa21/the-numpy-33ga</guid>
      <description>&lt;p&gt;&lt;strong&gt;What we do with Numpy?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The biggest reason behind the popularity of Python programming language is the huge number of built-in libraries it has. Now the question comes to your mind, what is a library? In computer programming a library refers to a collection of some pre-written functionalities which can be reused in any Python code. Python has around 137000 built-in libraries. Numpy(can be written also as NumPy or numpy)is one of the most popular library of Python. Python programmers mainly use this library to work with array,linear algebra, fourier transform and many more mathematical operations.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to use Numpy&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Before using, the Numpy library needs to be installed in the virtual environment we are working in. You can install numpy just by writing "pip install numpy" in the terminal/console.&lt;br&gt;
Then you have to import numpy by writing "import numpy" on the top of your Python code.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0c7tzt1hy3ttrkv7ixmx.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0c7tzt1hy3ttrkv7ixmx.jpg" alt="Image description" width="720" height="223"&gt;&lt;/a&gt;&lt;br&gt;
Or you can import this library as another name(programmers are too lazy to type this five letter word so they import numpy as np).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8vvag3jrre5fx9vash22.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8vvag3jrre5fx9vash22.jpg" alt="Image description" width="676" height="161"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to work with Arrays using Numpy&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;An array is a Data structure where large number of data can be stored inside a single named space. Arrays can be both one and multidimensional. We can create and panipulate arrays using Numpy library. "numpy.array()" or "np.array()" can be used to create an array.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F22r2zntddugdrcbxum6s.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F22r2zntddugdrcbxum6s.jpg" alt="Image description" width="677" height="187"&gt;&lt;/a&gt;&lt;br&gt;
This is a one dimensional array. A one dimensional array can be considered as a Python list. You can do indexing,slicing, and assign a new value to the one dimensional array just the way you do it with a list.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faav7w685ypto12j6uw6e.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faav7w685ypto12j6uw6e.jpg" alt="Image description" width="671" height="228"&gt;&lt;/a&gt;&lt;br&gt;
You can check the shape(how many rows and columns are there), the size(how many elements does the array have) or reshape a multinational array with the shape,size attribute and reshape() method.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbwtnvy9d7uig6v5yq7ay.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbwtnvy9d7uig6v5yq7ay.jpg" alt="Image description" width="719" height="519"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;random.choice and random.randint&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The random.randint(lower limit,upper limit) is used(random and randint are methods) to generate random integers between the given range.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjxv5horkrh7ngrfyb6vc.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjxv5horkrh7ngrfyb6vc.jpg" alt="Image description" width="676" height="152"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;On the otherhand random.choice(sequence)&lt;br&gt;
generates a random value from a given sequence(list,tuple,string etc.).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5y9wlotd5c6nx0nxh1dv.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5y9wlotd5c6nx0nxh1dv.jpg" alt="Image description" width="671" height="172"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>flask</category>
      <category>fastapi</category>
      <category>discuss</category>
    </item>
  </channel>
</rss>
