<?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: Fardeen9065</title>
    <description>The latest articles on DEV Community by Fardeen9065 (@fardeen9065).</description>
    <link>https://dev.to/fardeen9065</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%2F925863%2F30e94d8e-3306-41c1-be80-dab95232ba73.png</url>
      <title>DEV Community: Fardeen9065</title>
      <link>https://dev.to/fardeen9065</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/fardeen9065"/>
    <language>en</language>
    <item>
      <title>Neural Network</title>
      <dc:creator>Fardeen9065</dc:creator>
      <pubDate>Sat, 07 Jan 2023 14:38:41 +0000</pubDate>
      <link>https://dev.to/fardeen9065/neural-network-271</link>
      <guid>https://dev.to/fardeen9065/neural-network-271</guid>
      <description>&lt;p&gt;In deeplearning, neural network most of the time uses various layers for doing a work. The neural networks can be both simple and complex. The concept of working with several layers comes from the functions of the brain.&lt;br&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%2Fsfg6sx1nmjnhu78ltw6d.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%2Fsfg6sx1nmjnhu78ltw6d.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this image, we are seeing a neural network with 3 layers. The input x is taken as 0th layer. Then the layer containing three circles is the 1st layer. The circles are usually called units and they are actually information. After that, the 2nd layer that comes is the output layer where we get the output after passing an input x to a machine learning model. Lastly we use logistic regression to find out if the data is effective or not. Now, we are also going to see an example of complex neural network layers. Below is the image of a more complex neural network layer.&lt;br&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%2F1heiwvpyjqsvw1ejcd2d.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%2F1heiwvpyjqsvw1ejcd2d.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this image, we can see that there are more layers than the previous image. In this image, the outputs of a particular layer are working as the input of the next layer. In this case a formula is also working. For determing the result of a particular unit of a given layer, a formula is used which is the equation of a straight line.&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%2F8z52st99pxzxg7ovd72b.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%2F8z52st99pxzxg7ovd72b.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here, g = wa + b is the formula. In this formula w and a are vector quantities. This is all about neural network layers.&lt;/p&gt;

</description>
      <category>socialmedia</category>
      <category>watercooler</category>
    </item>
    <item>
      <title>Array Vs List</title>
      <dc:creator>Fardeen9065</dc:creator>
      <pubDate>Wed, 04 Jan 2023 02:27:16 +0000</pubDate>
      <link>https://dev.to/fardeen9065/array-vs-list-38cl</link>
      <guid>https://dev.to/fardeen9065/array-vs-list-38cl</guid>
      <description>&lt;p&gt;Arrays and Lists are similar data structures. But there are some differences between arrays and lists. Lists are dynamic data structures. It means that lists can be manipulated. In other words, lists can be changed. An element can be easily added or removed in a list. For example if we want to add an element 3 in the list [7,5,1,8]. In case of list, we can easily do it using the list.append() function. But in this case the length of the list changes. Before the length of the list was 4. After the addition of 3 the length of the list now has become 5 and the list is now [7,5,1,8,3]. But this method will not work for arrays. That is because the size of the arrays are fixed. It means if we take the same array [7,5,1,8] like before then we cannot just add 3 to it. The reason is if we add 3 to the list then the size of the list will be changed. What we can do is that we can create another array setting the length of the array 1 greater than the previous array. As the length of the array is 4 we have to make another array with the length of 5. Then we will copy the previous elements in the new array. After that at the last index we can add 3. Thus, these are the differences between arrays and lists.&lt;/p&gt;

</description>
      <category>cloudcomputing</category>
      <category>cybersecurity</category>
      <category>devops</category>
      <category>learning</category>
    </item>
    <item>
      <title>Supervised and Unsupervised Learning</title>
      <dc:creator>Fardeen9065</dc:creator>
      <pubDate>Sun, 18 Sep 2022 03:36:20 +0000</pubDate>
      <link>https://dev.to/fardeen9065/supervised-and-unsupervised-learning-480p</link>
      <guid>https://dev.to/fardeen9065/supervised-and-unsupervised-learning-480p</guid>
      <description>&lt;p&gt;Supervised and Unsupervised Learning are an important part of Machine Learning. These two models of machine learning are used frequently in many works.&lt;/p&gt;

&lt;p&gt;So what is Supervised Learning? Supervised Learning is that part of machine learning which takes an input x and gives a corresponding output. We can take the example of house price predictor. For predicting the price of the house, we can take the size of the house as input x and predict the price of the house. But how will we do this? First, let's see the graph of size and price of the house.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--vdum_AOz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pzsg777ybmosytuay3jy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vdum_AOz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pzsg777ybmosytuay3jy.png" alt="Image description" width="880" height="611"&gt;&lt;/a&gt;&lt;br&gt;
In this graph we have plotted some points for house price. Now we can pass a straight line through these points and this straight is the prediction of the house of the house like this image below.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--4tfqxnwM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qg42twp8r4tehaizww82.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4tfqxnwM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qg42twp8r4tehaizww82.png" alt="Image description" width="880" height="598"&gt;&lt;/a&gt;&lt;br&gt;
This method of passing a straight line for predicting an output is called regression. There is another part of Supervised Learning which is called classification. It has a fixed set of outputs. We can take the example of spam detection for an email. In this case, we can have only two outputs which are that the email will be a spam or it won't.&lt;/p&gt;

&lt;p&gt;Now we can talk about Unsupervised Learning. Unlike Supervised Learning, Unsupervised Learning is used to find a pattern within a data and  seperating a boundary for the data. We an see the example in the following graph.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--TFPx7kjo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ebl5zilctciv30d2wk8o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--TFPx7kjo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ebl5zilctciv30d2wk8o.png" alt="Image description" width="431" height="402"&gt;&lt;/a&gt;&lt;br&gt;
Clustering is a good example of Unsupervised Learning.&lt;br&gt;
In conclusion, Supervised Learning Learning takes an input variable x and finds the corresponding output y and Unsupervised Learning finds a pattern within the data and predicts a solution for the data.&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Time Complexity</title>
      <dc:creator>Fardeen9065</dc:creator>
      <pubDate>Wed, 14 Sep 2022 17:20:49 +0000</pubDate>
      <link>https://dev.to/fardeen9065/time-complexity-25o0</link>
      <guid>https://dev.to/fardeen9065/time-complexity-25o0</guid>
      <description>&lt;p&gt;Time complexity is an important part of algorithms in programming. By using time complexity, we can estimate how much time is needed for a code to run. Usually 3 symbols are used to denote the time complexity. They are big O notation, omega and theta. omega represents best case scenario, theta represents average case scenario and big O notation represents worst case scenario. Mostly during analyzing time complexity, worst case scenarios are calculated. That's why big O notation is used. There are some notations for time complexity like O(1), O(n), O(n^2), O(logn), O(nlogn) etc. &lt;/p&gt;

&lt;p&gt;Firstly, we will talk about O(1). This actually means that our code will run for constant time. For example, we can write the python code like&lt;code&gt;x = 9&lt;/code&gt;. This line of code will have a time complexity of O(1) which is constant. Similarly, if we write the code&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;x = 9
y = 5
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;what will be the time complexity here? In this code, each line has a time complexity of O(1).As each line of this python code has a time complexity of O(1) so will the time complexity of the code be O(1+1) which is O(2)?No, it will still be O(1) that is because O(2) is also a constant time and O(1) is used to represent constant time.&lt;/p&gt;

&lt;p&gt;But what if we have a loop in our code? Let's write a code for that.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;for i in range(10):
   print(i)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here the print statement has a time complexity of O(1). In this for loop the print statement will run 10 times.So, the time complexity will be O(10) as the loop will run 10 times. But what if the loop runs n times? Then the time complexity will be O(n). So, for a single loop the  time complexity will be O(n). But what if there are 2 loops in our code. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;for i in range(n):
  print(i)
for j in range(n):
  print(j)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here, the time complexity will be O(n+n) which is O(2n). But for writing time complexity we ignore the constants. So the time complexity for this code will also be O(n).&lt;/p&gt;

&lt;p&gt;Besides, we will talk about another time complexity which is O(n^2). This time complexity is for nested loops. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;for i in range(n):
  for j in range(n):
     print(i,j)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In this code as there is a nested for loop the code will run O(n*n) times which is O(n^2) times. In this case also if there is the constant then we will remove it.What will be the time complexity for this code?&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;for i in range(2n):
   for j in range(n):
       print(i,j)
for a in range(n):
  print(a)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In this code, will the time complexity be O(2*(n^2)+n)? No, still the time complexity of the code will be O(n^2). The reason is that we ignore constants in writing big O notation. So, 2 will not be written in big O notation. But another question arises which is why won't the time complexity be O(n)? The reason is we always take the highest power of the equation we get in big O notation.That's why the time time complexity of the code is O(n^2).&lt;/p&gt;

</description>
      <category>python</category>
    </item>
  </channel>
</rss>
