<?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>Forem: Soujanya Satpute</title>
    <description>The latest articles on Forem by Soujanya Satpute (@soujanyasatpute).</description>
    <link>https://forem.com/soujanyasatpute</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%2F853129%2F6347749e-8a47-401f-b0e6-09494389ec08.jpeg</url>
      <title>Forem: Soujanya Satpute</title>
      <link>https://forem.com/soujanyasatpute</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/soujanyasatpute"/>
    <language>en</language>
    <item>
      <title>Matplotlib - Brief</title>
      <dc:creator>Soujanya Satpute</dc:creator>
      <pubDate>Tue, 14 Jun 2022 17:32:30 +0000</pubDate>
      <link>https://forem.com/soujanyasatpute/matplotlib-brief-1po2</link>
      <guid>https://forem.com/soujanyasatpute/matplotlib-brief-1po2</guid>
      <description>&lt;h2&gt;
  
  
  Plotting Normal Graph
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;pyplot.plot()&lt;/code&gt; function:
If you call &lt;code&gt;plot()&lt;/code&gt; one after another, Next graph will be printed on same graph window.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;plt.plot(x_axis_column, y_axis_column)
plt.show()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;ul&gt;
&lt;li&gt;Labeling Graph
Label gives different names to Graph as we wanted it.
&lt;strong&gt;Legend&lt;/strong&gt;: Area that describe graph elements. This function have attributes for styling and locating legend on graph screen
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;plt.plot(x_axis_column, y_axis_column, label='Label Name')
plt.title('Title of Graph')
plt.ylabel('Ylabel')
plt.xlabel('Ylabel')
plt.legend()
plt.show()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;.text()&lt;/code&gt; for adding text Annotation to graph:
&lt;a href="https://matplotlib.org/3.5.0/tutorials/text/text_intro.html"&gt;Main Documentation for further details&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;plt.text(xPosition,yPosition,'Text')

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Be careful while putting positional co-ordinates. Don't set it out of range.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Styling Graph:
In &lt;code&gt;.plt.plot()&lt;/code&gt; we have attributes like &lt;code&gt;color&lt;/code&gt;,&lt;code&gt;linestyle&lt;/code&gt;, &lt;code&gt;marker&lt;/code&gt;.
There are multiple default styles provided by matplotlib to try on to your graphs.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Plotting Scatter Plot
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Only change from &lt;code&gt;.plot&lt;/code&gt; to &lt;code&gt;.scatter&lt;/code&gt; And &lt;u&gt;Styling can be applied same as normal Graph&lt;/u&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;plt.scatter(x_axis_column, y_axis_column, color = 'red')
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;ul&gt;
&lt;li&gt;You can add Crazy styling with different Background image.
&lt;a href="https://stackabuse.com/how-to-change-plot-background-in-matplotlib/"&gt;Resource here&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Plotting Bar Graph
&lt;/h2&gt;

&lt;p&gt;Can you guess how to do that?&lt;br&gt;
&lt;code&gt;plt.bar()&lt;/code&gt;? Yes Exactly!&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;plt.bar(x_axis_column, y_axis_column)

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;h2&gt;
  
  
  Plotting histogram
&lt;/h2&gt;

&lt;p&gt;First Question: What's &lt;strong&gt;difference between Bar graph and histogram?&lt;/strong&gt;&lt;br&gt;
Histogram: display the frequency of numerical data, It means in given column of database what is the frequency of particular number.&lt;br&gt;
It contains non-discrete values.&lt;br&gt;
Bar graph: compare different categories of data. discrete values can work.&lt;br&gt;
Much clear difference &lt;a href="https://www.guru99.com/histogram-vs-bar-chart.html"&gt;here&lt;/a&gt;&lt;br&gt;
Now Actual Plotting:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;plt.hist(column_data_for_histogram, bins=50, range = (5,35))

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--diWJrI-7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1p9aalxbea22q5cc0fjb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--diWJrI-7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1p9aalxbea22q5cc0fjb.png" alt="Image description" width="391" height="345"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Changing Value of bins&lt;/strong&gt;&lt;br&gt;
Bins are number of columns or towers in the histogram. Default value of these bins is 10. We can modify in the code. &lt;br&gt;
&lt;strong&gt;Defining Range of histogram&lt;/strong&gt;&lt;br&gt;
Manually selecting range for histogram for where to start and end.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Pandas - Brief</title>
      <dc:creator>Soujanya Satpute</dc:creator>
      <pubDate>Tue, 14 Jun 2022 16:42:02 +0000</pubDate>
      <link>https://forem.com/soujanyasatpute/pandas-brief-1n40</link>
      <guid>https://forem.com/soujanyasatpute/pandas-brief-1n40</guid>
      <description>&lt;p&gt;What is pandas?&lt;br&gt;
Pandas is python package built on two python packages &lt;strong&gt;Matplotlib&lt;/strong&gt; and &lt;strong&gt;Numpy&lt;/strong&gt;.&lt;br&gt;
14 million users&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;DataFrame&lt;/strong&gt;: 2 dimensional, Mutable, heterogeneous(Can be),Tabular Data structure&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--fXEWVpIo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v9dlzekzufdlc5oj34sc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--fXEWVpIo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v9dlzekzufdlc5oj34sc.png" alt="Image description" width="835" height="326"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;.info()&lt;/code&gt; Method:
Generates Summary of the dataFrame with column names, Non-null counts, Dtype, memory Usage.
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Jt2xwQk8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jkmeczmmzlhxzjvhuyeq.png" alt="Image description" width="370" height="303"&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;.head()&lt;/code&gt; Method:
returns the first few rows (the “head” of the DataFrame).
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--evWmB7Uf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ev1s4nfyx7cn45jyy0ic.png" alt="Image description" width="774" height="209"&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;.describe()&lt;/code&gt; Method:
use for calculating statistical properties like mean, max, std Deviation, percentiles
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---Uv8K-os--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o15x0zzu79x2kgwjoc48.png" alt="Image description" width="483" height="203"&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;.values&lt;/code&gt;
Returns Numpy representation of the dataFrame.
But new method that is &lt;code&gt;to_numpy()&lt;/code&gt; should be used rather than &lt;code&gt;.values&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;.columns&lt;/code&gt;
List all column heading for database and its data types.&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;.index&lt;/code&gt;&lt;br&gt;
List all index in the dataFrame. These index means numbers of rows&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--GvxvRzQt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h6j8jd7fzkn07qslnu2m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--GvxvRzQt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h6j8jd7fzkn07qslnu2m.png" alt="Image description" width="848" height="114"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;.shape&lt;/code&gt; Function:&lt;br&gt;
Returns the tuple of shape such as rows and columns&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;.size&lt;/code&gt; Function:&lt;br&gt;
Returns overall number of elements in that data frame&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;.ndim&lt;/code&gt; Function:&lt;br&gt;
Returns dimensions of Database&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;DataFrame column selecting&lt;br&gt;
You can select also multiple columns in database by double square bracket syntax. First square bracket is for syntax of dataFrame selection and second is for List of columns.&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;column1 = dataFrame['columnName']
column1 = dataFrame.columnName
column1 = dataFrame[['columnName', 'col2']]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;ul&gt;
&lt;li&gt;DataFrame row selecting with logical testing&lt;/li&gt;
&lt;li&gt;And or Operators in row selection&lt;/li&gt;
&lt;li&gt;Specific Value row selection:
This selects particular row from given column where value is value.
We can use different logical operator here also
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;row1 = dataFrame.[dataFrame.column == 'Value']
row1 = dataFrame.[dataFrame[column]== 'Value']

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;ul&gt;
&lt;li&gt;Sorting Dataframe:
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sortedDataFrame = dataFrame.sort_values('column_to_sort')
sortedDataFrame = dataFrame.sort_values(by = ['column_to_sort1', 'column_to_sort2'])
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Sorting can be perform on numbers, Dates.&lt;br&gt;
Extra Attributes - &lt;br&gt;
ascending = True / False, &lt;br&gt;
na_position = first/ last - where to put Nan Values.&lt;br&gt;
Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;homelessness_reg_fam = homelessness.sort_values(['region','family_members'],ascending=[True,False])
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;isin()&lt;/code&gt; Method:
&lt;code&gt;isin()&lt;/code&gt; is used in filtering DataFrame. With Particular Value and particular column.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# The Mojave Desert states
canu = ["California", "Arizona", "Nevada", "Utah"]

# Filter for rows in the Mojave Desert states
mojave_homelessness = homelessness[homelessness.state.isin(canu)]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Adding New Column to Database:
Terms for adding new columns: Mutating/transforming DataFrame or feature engineering
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dataframe['new_column'] = old_column.some_transformation
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Summary Statistics
Summary statistics is the way you can summarise and know more about your data.
&lt;code&gt;mean()&lt;/code&gt;, &lt;code&gt;median()&lt;/code&gt;,&lt;code&gt;mode()&lt;/code&gt;,&lt;code&gt;min()&lt;/code&gt;,&lt;code&gt;max()&lt;/code&gt;,&lt;code&gt;var()&lt;/code&gt;, &lt;code&gt;std()&lt;/code&gt;, &lt;code&gt;sum()&lt;/code&gt;, &lt;code&gt;quantile()&lt;/code&gt;, &lt;code&gt;agg()&lt;/code&gt;, 
&lt;code&gt;agg()&lt;/code&gt; method is use to calculate custom summary statistic. 
&lt;code&gt;agg()&lt;/code&gt; function takes more than one parameter function in the form of list.
Example of custom percentile is as follows.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;def percentile30(column):
   return column.quantile(0.4)

dataFrame[columnName].agg(percentile30)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Functions like &lt;code&gt;min&lt;/code&gt;,&lt;code&gt;max&lt;/code&gt; works on Date columns also.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Calculating Cumulative Statistics&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;cumsum()&lt;/code&gt;, &lt;code&gt;cummax()&lt;/code&gt;,&lt;code&gt;cummin()&lt;/code&gt;,&lt;code&gt;cumprod()&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;To be Continued...&lt;/p&gt;

</description>
      <category>panda</category>
      <category>beginners</category>
      <category>datascience</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Web Designer Guide and Tips</title>
      <dc:creator>Soujanya Satpute</dc:creator>
      <pubDate>Fri, 03 Jun 2022 10:04:51 +0000</pubDate>
      <link>https://forem.com/soujanyasatpute/web-designer-guide-and-tips-2i42</link>
      <guid>https://forem.com/soujanyasatpute/web-designer-guide-and-tips-2i42</guid>
      <description>&lt;p&gt;Note: This is updating article.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Sketching&lt;/li&gt;
&lt;li&gt;Inspiration&lt;/li&gt;
&lt;li&gt;Userflow&lt;/li&gt;
&lt;li&gt;Sitemap&lt;/li&gt;
&lt;li&gt;Wireframes&lt;/li&gt;
&lt;li&gt;Prototyping&lt;/li&gt;
&lt;li&gt;Feedback&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Visual Design
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Spacing and Grid&lt;/li&gt;
&lt;li&gt;Typography&lt;/li&gt;
&lt;li&gt;Color&lt;/li&gt;
&lt;li&gt;Visual Assets
Designing Images with whole background and generally whole screen width. Positioning on screen is much harder if you have small images. There for have image format and just adjust image css - source Udemy Case Study.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Design System
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Design Patters&lt;/li&gt;
&lt;li&gt;Microinteraction&lt;/li&gt;
&lt;li&gt;Motion&lt;/li&gt;
&lt;/ol&gt;

</description>
    </item>
    <item>
      <title>Code improvement tips</title>
      <dc:creator>Soujanya Satpute</dc:creator>
      <pubDate>Thu, 26 May 2022 17:03:21 +0000</pubDate>
      <link>https://forem.com/soujanyasatpute/code-improvement-tips-lj9</link>
      <guid>https://forem.com/soujanyasatpute/code-improvement-tips-lj9</guid>
      <description>&lt;ol&gt;
&lt;li&gt;How to name function?
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// For showing loading spinner
function loading(){
loader.hidden = false
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// Even Comments are not necessary
function showLoadingSpinner(){
loader.hidden = false
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Name the function with particular action.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Recursive Function can lead you in infinite loop of errors
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function getdatafromAPI(){
try{
//Function
throw new Error('OOps')
}catch(error){
getdatafromAPI()
}
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Can you Imagine what will happen in here?&lt;br&gt;
Solution: Setting some counter variable in catch block so you can run function certain number of times and if it stills shows error define error.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Increasing performance of website when network is slow, by shipping only things that are necessary for the view.
Creating initial_load boolean to and make first loading setting it false for all other loads and make initial loading fast.
The less data you ship faster your website will be.&lt;/li&gt;
&lt;li&gt;Check out TC39/proposals for staying upto date with new feature of Js.&lt;/li&gt;
&lt;li&gt;Creating different modules whenever it is possible to make your code clean.&lt;/li&gt;
&lt;li&gt;Check the order of your javascript importing in the html files. Those really matters. &lt;/li&gt;
&lt;li&gt;&lt;p&gt;Different Ways of importing javascript&lt;br&gt;
async - Only on packages whose execution order doesn't matter.&lt;br&gt;
Something like google analytics script&lt;br&gt;
defer - only execute the script after loading everything&lt;br&gt;
&lt;a href="https://media.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%2Ft3ohmkcyhykettcnvgqm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Ft3ohmkcyhykettcnvgqm.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Javascript is the reaction of data change on webpage&lt;br&gt;
And frontend framework like react and angular helps writing those reaction cleaner and faster&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Difference between textcotent and innertext of html from javascript&lt;br&gt;
Innertext triggers rendering of whole page even if the inside content is not changed that can be computationally expensive&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Don't declare variable of type function and then change it to variable not good practice&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Choosing which data type to use Array or object?&lt;br&gt;
While using Array if you want to delete element through an array you need to go through entire array but for object you can do that with simple key and the process become faster.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Checking user browser to implement some features is cumbersome because browsers are always updating something into them. You can check type of browser in windows.navigator.userAgent but you get multiple browser options there. &lt;br&gt;
So always right browser specific code in conditionals.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Concept of Models in javascript:&lt;br&gt;
For module you can put files in any order and it will still works. If you just add script file as it is then order does matter. For modules Order doesn't matter.&lt;br&gt;
Module is one single entry file in the javascript that is connected to other files. &lt;br&gt;
Web bundlers: &lt;br&gt;
Bundlers are the software that understand the what part of code is used and creates efficient bundle for import. It works on concept of &lt;strong&gt;tree shaking&lt;/strong&gt; and eliminates code that we are not using. &lt;br&gt;
Dynamic Module loading:&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import('./modules/myModule.js')
  .then((module) =&amp;gt; {
    // Do something with the module.
  });
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;When give display: flex; attribute hidden in html doesn't work. you have to add different class to hide Attribute and then make display none over it.&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>selftips</category>
    </item>
    <item>
      <title>Introduction to deep learning in Python - Basics</title>
      <dc:creator>Soujanya Satpute</dc:creator>
      <pubDate>Wed, 11 May 2022 14:10:33 +0000</pubDate>
      <link>https://forem.com/soujanyasatpute/introduction-to-deep-learning-in-python-basics-2hmf</link>
      <guid>https://forem.com/soujanyasatpute/introduction-to-deep-learning-in-python-basics-2hmf</guid>
      <description>&lt;p&gt;Deep learning teaches computers to do what comes naturally to humans: &lt;u&gt;learn by examples.&lt;/u&gt; It captures complex patterns in the given examples;  finds interactions between them, which lead to predicting the desired output. &lt;/p&gt;

&lt;h2&gt;
  
  
  Capturing interactions
&lt;/h2&gt;

&lt;p&gt;Suppose you have to predict a number of transactions using factors like Age, bank balance, Retirement status, etc.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---FqkpMcM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9r6covp7ru47w94fdhks.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---FqkpMcM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9r6covp7ru47w94fdhks.png" alt="Image description" width="696" height="576"&gt;&lt;/a&gt;&lt;br&gt;
You can use linear regression here. Linear regression is when you fit Data on the straight line to find the prediction.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--gqafJBjm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hptumxb58a3fjfiq338i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--gqafJBjm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hptumxb58a3fjfiq338i.png" alt="Image description" width="320" height="190"&gt;&lt;/a&gt;&lt;br&gt;
But something is missing! It seems unrealistic to think that all data variables are independent of others. See the parallel line? There is no interaction between them.&lt;br&gt;
This is where Neurons come into the picture. Multiple Neurons stack on each other to find interactions in given input data(Neural Network). Something like these.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--_P0ErbWb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vonsmtmtj18mtqkqk4z0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_P0ErbWb--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vonsmtmtj18mtqkqk4z0.png" alt="Image description" width="880" height="532"&gt;&lt;/a&gt;&lt;br&gt;
Neurons are like a black box with some magic inside it. When data is sent through it the first time, It uses its magic to predict something. &lt;br&gt;
First-time, the magic fails. But as neuron predicts more things, they get good at this witchcraft. And the dystopia is here; they can and will replace you in the Job market.&lt;/p&gt;

&lt;p&gt;With complex enough neural network and correct resources of data and time, you can literally capture any intricate interaction between any data points. &lt;/p&gt;

&lt;p&gt;Any neural network starts with the input layer and ends on the output layer. And the magic happens in the hidden layers. And they are hidden for now; as you go deep into deep learning, you will find them. &lt;/p&gt;

&lt;p&gt;The most complex neural network is &lt;a href="https://en.wikipedia.org/wiki/GPT-3"&gt;GPT-3&lt;/a&gt;. It captures 175 billion interactions. Let's start with a single one.&lt;/p&gt;
&lt;h2&gt;
  
  
  Forward Propagation
&lt;/h2&gt;

&lt;p&gt;Now let's understand magic!&lt;/p&gt;

&lt;p&gt;Now let's understand magic!&lt;br&gt;
The forward-propagation algorithm will pass this information through the network to predict the output. &lt;br&gt;
Each neuron has a real value linked to it which tells the importance of that neuron feature in predicting the output. These are weights. Weights will  predict output for next layer.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--JEbU8uDd--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3ric7x32bg12w9lx218n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--JEbU8uDd--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3ric7x32bg12w9lx218n.png" alt="Image description" width="482" height="366"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Output calculation algorithms:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;for all connections to the node: 
     Node_value += input * weights
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Python code for doing same calculation for neural network in given image&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import numpy as np
input_data = np.array([2,3])
weights = {'node_0':np.array([1,1]),
'node_1':np.array([-1,1]), 
'output':np.array([2,-1]) 
}
node_0_value = (input_data* weights['node_0']).sum()
node_0_output = np.tanh(node_0_value)
node_1_value = (input_data* weights['node_1']).sum()
node_1_output = np.tanh(node_1_value)

hidden_layer_value = np.array([node_0_output,node_1_output])
output = (hidden_layer_value*weights['output']).sum()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>deeplearning</category>
      <category>neuralnetwork</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Coding journey Begins here</title>
      <dc:creator>Soujanya Satpute</dc:creator>
      <pubDate>Mon, 25 Apr 2022 16:15:36 +0000</pubDate>
      <link>https://forem.com/soujanyasatpute/coding-journey-begins-here-391</link>
      <guid>https://forem.com/soujanyasatpute/coding-journey-begins-here-391</guid>
      <description>&lt;p&gt;It starts with just hello world!&lt;br&gt;
Then you sit with your first code, and something doesn't work. You sit there for hours. If you are lucky, you can make it work in minutes, or debugging is your full-time job.&lt;br&gt;
I wanted to be a developer. And I want to be in the top 1% of it. But I am  Gen Z,  born when insecurity and self-doubts were humping on their best day. Sorry, mom and dad. It's nothing about you! &lt;br&gt;
So I decide I want to be the best at coding. I want to give dedicated time to it daily. 2 hours maybe! I want to commit at least 10 requests on GitHub daily for the next 6 months. And the journey begins.&lt;br&gt;
I did some online courses, But still, I am not good enough. As a developer, I am only good at copying and pasting code from one place to another, and nothing more than that; this was my self-talk.&lt;br&gt;
But for the first time in my life, I was enjoying the process of debugging most of my stupid mistakes. I was enjoying it to my knuckles and bones.&lt;/p&gt;

&lt;p&gt;Then came the perfectionist monster from my brain, pushing me into the valley of darkness. And to be honest, my brain loves living there in the perfect world. I wasn't finishing my portfolio project, a stepping stone if you want to apply for jobs. Not because I can't do it, but because it will be all real. And I am the imposter who's not good enough.&lt;br&gt;
But I want to finish that portfolio. I want to make a list of projects that I can put on it, and I want to apply for zestful jobs that will give me the thrill of jumping through airplanes. &lt;br&gt;
I am giving myself a timeline here. In the next 2 days, I want to create the final version of the portfolio that I can put on my resume. And I will be documenting this with Dev Community here weekly.&lt;br&gt;
The gist of a good programmer is to create enough distance between you and your brain. To make the best products. And I want to learn how to do that.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>mentalhealth</category>
      <category>career</category>
      <category>portfolio</category>
    </item>
  </channel>
</rss>
