<?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: Smit</title>
    <description>The latest articles on DEV Community by Smit (@ironside43).</description>
    <link>https://dev.to/ironside43</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%2F2276565%2F4232093c-6083-403d-8356-2f6218ca672d.jpg</url>
      <title>DEV Community: Smit</title>
      <link>https://dev.to/ironside43</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ironside43"/>
    <language>en</language>
    <item>
      <title>[Boost]</title>
      <dc:creator>Smit</dc:creator>
      <pubDate>Thu, 23 Oct 2025 13:58:36 +0000</pubDate>
      <link>https://dev.to/ironside43/-4o5d</link>
      <guid>https://dev.to/ironside43/-4o5d</guid>
      <description>&lt;div class="ltag__link"&gt;
  &lt;a href="/ironside43" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__pic"&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%2Fuser%2Fprofile_image%2F2276565%2F4232093c-6083-403d-8356-2f6218ca672d.jpg" alt="ironside43"&gt;
    &lt;/div&gt;
  &lt;/a&gt;
  &lt;a href="https://dev.to/ironside43/understanding-sql-ctes-a-simple-approach-39km" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__content"&gt;
      &lt;h2&gt;Understanding SQL CTEs: A Simple Approach&lt;/h2&gt;
      &lt;h3&gt;Smit ・ Jun 28&lt;/h3&gt;
      &lt;div class="ltag__link__taglist"&gt;
        &lt;span class="ltag__link__tag"&gt;#programming&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#sql&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#beginners&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#computerscience&lt;/span&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/a&gt;
&lt;/div&gt;


</description>
      <category>programming</category>
      <category>sql</category>
      <category>beginners</category>
      <category>computerscience</category>
    </item>
    <item>
      <title>CTEs Explained Simply</title>
      <dc:creator>Smit</dc:creator>
      <pubDate>Sat, 28 Jun 2025 16:05:24 +0000</pubDate>
      <link>https://dev.to/ironside43/ctes-explained-simply-1j3j</link>
      <guid>https://dev.to/ironside43/ctes-explained-simply-1j3j</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/ironside43/understanding-sql-ctes-a-simple-approach-39km" class="crayons-story__hidden-navigation-link"&gt;Understanding SQL CTEs: A Simple Approach&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/ironside43" class="crayons-avatar  crayons-avatar--l  "&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%2Fuser%2Fprofile_image%2F2276565%2F4232093c-6083-403d-8356-2f6218ca672d.jpg" alt="ironside43 profile" class="crayons-avatar__image"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/ironside43" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Smit
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Smit
                
              
              &lt;div id="story-author-preview-content-2633637" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/ironside43" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&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%2Fuser%2Fprofile_image%2F2276565%2F4232093c-6083-403d-8356-2f6218ca672d.jpg" class="crayons-avatar__image" alt=""&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Smit&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/ironside43/understanding-sql-ctes-a-simple-approach-39km" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Jun 28 '25&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/ironside43/understanding-sql-ctes-a-simple-approach-39km" id="article-link-2633637"&gt;
          Understanding SQL CTEs: A Simple Approach
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/programming"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;programming&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/sql"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;sql&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/beginners"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;beginners&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/computerscience"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;computerscience&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/ironside43/understanding-sql-ctes-a-simple-approach-39km" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/exploding-head-daceb38d627e6ae9b730f36a1e390fca556a4289d5a41abb2c35068ad3e2c4b5.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/multi-unicorn-b44d6f8c23cdd00964192bedc38af3e82463978aa611b4365bd33a0f1f4f3e97.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;12&lt;span class="hidden s:inline"&gt; reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/ironside43/understanding-sql-ctes-a-simple-approach-39km#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              Comments


              1&lt;span class="hidden s:inline"&gt; comment&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            2 min read
          &lt;/small&gt;
            
              &lt;span class="bm-initial"&gt;
                

              &lt;/span&gt;
              &lt;span class="bm-success"&gt;
                

              &lt;/span&gt;
            
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;


</description>
      <category>programming</category>
      <category>sql</category>
      <category>beginners</category>
      <category>computerscience</category>
    </item>
    <item>
      <title>Understanding SQL CTEs: A Simple Approach</title>
      <dc:creator>Smit</dc:creator>
      <pubDate>Sat, 28 Jun 2025 16:04:39 +0000</pubDate>
      <link>https://dev.to/ironside43/understanding-sql-ctes-a-simple-approach-39km</link>
      <guid>https://dev.to/ironside43/understanding-sql-ctes-a-simple-approach-39km</guid>
      <description>&lt;p&gt;A CTE is a common table expression in SQL. It is essentially a temporary result set or output that can be referenced later within other queries. It is extremely useful for managing complex queries and making them more optimized and readable.&lt;/p&gt;

&lt;h2&gt;
  
  
  1.  Basic Syntax
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;With cte_name AS (
   select col1, col2
   from table a
   where condition
)

SELECT * FROM cte_name
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2. Why Use CTEs
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Easy to understand: Long queries can be broken down into simpler, smaller logical pieces and more manageable problems. &lt;/li&gt;
&lt;li&gt;Can be reused: Once a CTE is created with an alias, it can be referenced multiple times within the SQL query. This makes the code more optimized, reusable, and avoids rewriting logic. &lt;/li&gt;
&lt;li&gt;Multiple use cases: CTEs can be used to create multiple definitions together, including advanced tasks like recursive CTEs.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  3. Real-World Use Cases:
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CREATE TABLE employees(
    id INT,
    name VARCHAR(40),
    salary INT
);

INSERT INTO employees (id, name, salary) VALUES
(1, 'ALICE', 5000),
(2, 'Ben', 5000),
(3, 'Raj', 2000);

WITH salary_calculations AS (
    SELECT AVG(salary) AS avg_salary
    FROM employees
)

SELECT e.name, e.salary
FROM employees e, salary_calculations s
WHERE e.salary &amp;gt; s.avg_salary;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Output is below&lt;/strong&gt;&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%2Fwnclka5g8nczf3qh4sa3.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%2Fwnclka5g8nczf3qh4sa3.png" alt="SQL code output" width="259" height="147"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;JDoodle is an amazing online tool for trying out SQL code online and makes it easy to test with different SQL versions. Try it below:&lt;br&gt;
&lt;a href="https://www.jdoodle.com/execute-sql-online" rel="noopener noreferrer"&gt;jdoodle&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Explanation:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;We start by creating the table and inserting values into it.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Next, we define the CTE with the average salary.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Finally, we select the employees whose salary is above that average.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Conclusion:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Common Table Expressions are powerful and flexible tools in SQL and should be used carefully and wisely. It's important to break down long, complex logic into smaller parts and use CTEs effectively to make the code easier to read and debug&lt;/p&gt;

</description>
      <category>programming</category>
      <category>sql</category>
      <category>beginners</category>
      <category>computerscience</category>
    </item>
    <item>
      <title>Essential SQL Query Concepts for Beginners</title>
      <dc:creator>Smit</dc:creator>
      <pubDate>Sun, 22 Jun 2025 20:23:53 +0000</pubDate>
      <link>https://dev.to/ironside43/essential-sql-query-concepts-for-beginners-2f7e</link>
      <guid>https://dev.to/ironside43/essential-sql-query-concepts-for-beginners-2f7e</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/ironside43/5-sql-queries-everyone-should-know-4n9i" class="crayons-story__hidden-navigation-link"&gt;5 SQL Queries Everyone Should Know&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/ironside43" class="crayons-avatar  crayons-avatar--l  "&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%2Fuser%2Fprofile_image%2F2276565%2F4232093c-6083-403d-8356-2f6218ca672d.jpg" alt="ironside43 profile" class="crayons-avatar__image"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/ironside43" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Smit
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Smit
                
              
              &lt;div id="story-author-preview-content-2492483" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/ironside43" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&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%2Fuser%2Fprofile_image%2F2276565%2F4232093c-6083-403d-8356-2f6218ca672d.jpg" class="crayons-avatar__image" alt=""&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Smit&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/ironside43/5-sql-queries-everyone-should-know-4n9i" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;May 16 '25&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/ironside43/5-sql-queries-everyone-should-know-4n9i" id="article-link-2492483"&gt;
          5 SQL Queries Everyone Should Know
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/sql"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;sql&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/database"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;database&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/beginners"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;beginners&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/tutorial"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;tutorial&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/ironside43/5-sql-queries-everyone-should-know-4n9i" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/raised-hands-74b2099fd66a39f2d7eed9305ee0f4553df0eb7b4f11b01b6b1b499973048fe5.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/multi-unicorn-b44d6f8c23cdd00964192bedc38af3e82463978aa611b4365bd33a0f1f4f3e97.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;6&lt;span class="hidden s:inline"&gt; reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/ironside43/5-sql-queries-everyone-should-know-4n9i#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              Comments


              1&lt;span class="hidden s:inline"&gt; comment&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            2 min read
          &lt;/small&gt;
            
              &lt;span class="bm-initial"&gt;
                

              &lt;/span&gt;
              &lt;span class="bm-success"&gt;
                

              &lt;/span&gt;
            
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;


</description>
      <category>sql</category>
      <category>database</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Confused about Random Forest algorithm? Learn it in this easy guide!</title>
      <dc:creator>Smit</dc:creator>
      <pubDate>Sat, 21 Jun 2025 19:27:04 +0000</pubDate>
      <link>https://dev.to/ironside43/confused-about-random-forest-algorithm-learn-it-in-this-easy-guide-1n75</link>
      <guid>https://dev.to/ironside43/confused-about-random-forest-algorithm-learn-it-in-this-easy-guide-1n75</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/ironside43/random-forest-explained-why-its-more-than-just-a-bunch-of-trees-4j6d" class="crayons-story__hidden-navigation-link"&gt;Random Forest Explained&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/ironside43" class="crayons-avatar  crayons-avatar--l  "&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%2Fuser%2Fprofile_image%2F2276565%2F4232093c-6083-403d-8356-2f6218ca672d.jpg" alt="ironside43 profile" class="crayons-avatar__image"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/ironside43" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Smit
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Smit
                
              
              &lt;div id="story-author-preview-content-2529664" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/ironside43" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&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%2Fuser%2Fprofile_image%2F2276565%2F4232093c-6083-403d-8356-2f6218ca672d.jpg" class="crayons-avatar__image" alt=""&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Smit&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/ironside43/random-forest-explained-why-its-more-than-just-a-bunch-of-trees-4j6d" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;May 26 '25&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/ironside43/random-forest-explained-why-its-more-than-just-a-bunch-of-trees-4j6d" id="article-link-2529664"&gt;
          Random Forest Explained
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/ai"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;ai&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/machinelearning"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;machinelearning&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/python"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;python&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/beginners"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;beginners&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/ironside43/random-forest-explained-why-its-more-than-just-a-bunch-of-trees-4j6d" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/exploding-head-daceb38d627e6ae9b730f36a1e390fca556a4289d5a41abb2c35068ad3e2c4b5.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/multi-unicorn-b44d6f8c23cdd00964192bedc38af3e82463978aa611b4365bd33a0f1f4f3e97.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;10&lt;span class="hidden s:inline"&gt; reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/ironside43/random-forest-explained-why-its-more-than-just-a-bunch-of-trees-4j6d#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              Comments


              1&lt;span class="hidden s:inline"&gt; comment&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            5 min read
          &lt;/small&gt;
            
              &lt;span class="bm-initial"&gt;
                

              &lt;/span&gt;
              &lt;span class="bm-success"&gt;
                

              &lt;/span&gt;
            
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;


</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>python</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Struggling with lambda functions? Learn them in 3 easy steps.</title>
      <dc:creator>Smit</dc:creator>
      <pubDate>Sat, 21 Jun 2025 19:24:05 +0000</pubDate>
      <link>https://dev.to/ironside43/struggling-with-lambda-functions-learn-them-in-3-easy-steps-25b0</link>
      <guid>https://dev.to/ironside43/struggling-with-lambda-functions-learn-them-in-3-easy-steps-25b0</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/ironside43/python-lambda-functions-explained-in-3-easy-steps-pb9" class="crayons-story__hidden-navigation-link"&gt;Python Lambda Functions Explained in 3 Easy Steps&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/ironside43" class="crayons-avatar  crayons-avatar--l  "&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%2Fuser%2Fprofile_image%2F2276565%2F4232093c-6083-403d-8356-2f6218ca672d.jpg" alt="ironside43 profile" class="crayons-avatar__image"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/ironside43" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Smit
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Smit
                
              
              &lt;div id="story-author-preview-content-2568212" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/ironside43" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&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%2Fuser%2Fprofile_image%2F2276565%2F4232093c-6083-403d-8356-2f6218ca672d.jpg" class="crayons-avatar__image" alt=""&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Smit&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/ironside43/python-lambda-functions-explained-in-3-easy-steps-pb9" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Jun 6 '25&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/ironside43/python-lambda-functions-explained-in-3-easy-steps-pb9" id="article-link-2568212"&gt;
          Python Lambda Functions Explained in 3 Easy Steps
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/programming"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;programming&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/python"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;python&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/beginners"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;beginners&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/tutorial"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;tutorial&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/ironside43/python-lambda-functions-explained-in-3-easy-steps-pb9" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/exploding-head-daceb38d627e6ae9b730f36a1e390fca556a4289d5a41abb2c35068ad3e2c4b5.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/multi-unicorn-b44d6f8c23cdd00964192bedc38af3e82463978aa611b4365bd33a0f1f4f3e97.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;12&lt;span class="hidden s:inline"&gt; reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/ironside43/python-lambda-functions-explained-in-3-easy-steps-pb9#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              Comments


              2&lt;span class="hidden s:inline"&gt; comments&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            1 min read
          &lt;/small&gt;
            
              &lt;span class="bm-initial"&gt;
                

              &lt;/span&gt;
              &lt;span class="bm-success"&gt;
                

              &lt;/span&gt;
            
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;


</description>
      <category>programming</category>
      <category>python</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Python Lambda Functions Explained in 3 Easy Steps</title>
      <dc:creator>Smit</dc:creator>
      <pubDate>Fri, 06 Jun 2025 02:08:26 +0000</pubDate>
      <link>https://dev.to/ironside43/python-lambda-functions-explained-in-3-easy-steps-pb9</link>
      <guid>https://dev.to/ironside43/python-lambda-functions-explained-in-3-easy-steps-pb9</guid>
      <description>&lt;p&gt;&lt;strong&gt;Step 1: What is it ?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Think of a lambda as a small, one line function. &lt;/li&gt;
&lt;li&gt;It's a quick and simple solution for small tasks, rather than using traditional functions defined with &lt;code&gt;def&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Step 2: How does the function look?&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;Lambda x : x+2&lt;/code&gt;&lt;br&gt;
This simple (and slightly different looking line) just means: "a function takes x and then returns x+2". That’s it!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;add_two = lambda x : x+2
print(add_two(5)) #output: 7
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Explanation:&lt;/strong&gt; We create a lambda function that takes a number x and adds 2 to it. We pass 5 as value and it returns 7.&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%2Fqcsumezq5l2kkiwh5tqo.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%2Fqcsumezq5l2kkiwh5tqo.png" alt="Lambda function" width="500" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3: When to use a lambda function ?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It's very useful for quick, simple tasks like sorting, mapping, or filtering instead of writing a full function.&lt;/p&gt;

&lt;p&gt;That’s it! A lambda function is just a short, fast function for simple jobs. And guess what? It’s called an anonymous function because it doesn’t have a name!&lt;/p&gt;

&lt;p&gt;As promised, just 3 steps. Happy learning and happy coding!🎉💻&lt;/p&gt;

</description>
      <category>programming</category>
      <category>python</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Random Forest Explained</title>
      <dc:creator>Smit</dc:creator>
      <pubDate>Mon, 26 May 2025 15:27:27 +0000</pubDate>
      <link>https://dev.to/ironside43/random-forest-explained-why-its-more-than-just-a-bunch-of-trees-4j6d</link>
      <guid>https://dev.to/ironside43/random-forest-explained-why-its-more-than-just-a-bunch-of-trees-4j6d</guid>
      <description>&lt;h3&gt;
  
  
  Introduction
&lt;/h3&gt;

&lt;p&gt;In the vast forest of machine learning models, Random Forest stands out. But what’s the big deal? And seriously, what’s with that name? Did someone go hiking, see some trees 🌳, and think, “Yep, this is definitely an algorithm”? Probably not.&lt;/p&gt;

&lt;p&gt;🔍Let’s explore why Random Forest is such a powerful and widely used algorithm and where the name actually comes from.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is random forest algorithm ?
&lt;/h3&gt;

&lt;p&gt;• A simplified way to understand Random Forest is this: &lt;em&gt;imagine you're making a big decision, like choosing which college to attend&lt;/em&gt;. Instead of asking just one person for advice, &lt;strong&gt;you ask 100 random people&lt;/strong&gt;. Each gives their opinion, and you go with the &lt;strong&gt;majority vote&lt;/strong&gt;. That, in essence, is how &lt;strong&gt;Random Forest&lt;/strong&gt; works.&lt;/p&gt;

&lt;p&gt;• Random Forest builds a collection (or forest) of decision trees. Each tree is trained on a different subset of the data, with slight variations this process is known as &lt;strong&gt;bootstrapping&lt;/strong&gt;. &lt;em&gt;Every tree learns something a little different due to these variations&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;• Each tree then makes its own prediction, and the forest combines all these predictions taking a majority vote (for &lt;strong&gt;classification&lt;/strong&gt;) or averaging (for &lt;strong&gt;regression&lt;/strong&gt;) to produce the final output.&lt;/p&gt;

&lt;p&gt;• Now, each tree is different because it's trained on a different subset of data. Each tree sees &lt;strong&gt;different features&lt;/strong&gt; and samples.&lt;/p&gt;

&lt;p&gt;• At every decision point (called a &lt;strong&gt;split&lt;/strong&gt;), each tree only looks at a random subset of features, not all of them. This *&lt;em&gt;randomness *&lt;/em&gt; ensures that trees are diverse and less correlated.&lt;/p&gt;

&lt;p&gt;• Finally, once all trees have voted, &lt;strong&gt;Random Forest aggregates&lt;/strong&gt; those votes to make a &lt;strong&gt;robust final prediction&lt;/strong&gt;.&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%2Fmdj9b1bl4p5z47f5o0a5.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%2Fmdj9b1bl4p5z47f5o0a5.png" alt="The Voting Mechanism Behind Random Forest" width="800" height="533"&gt;&lt;/a&gt;&lt;br&gt;
Photo reference: &lt;a href="https://builtin.com/data-science/random-forest-python" rel="noopener noreferrer"&gt;https://builtin.com/data-science/random-forest-python&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Key Equations for Random Forest:
&lt;/h3&gt;

&lt;p&gt;1.🌳 Random forest equation (classification)&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%2Fx93pz1ms77ybnu5mw99g.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%2Fx93pz1ms77ybnu5mw99g.png" alt=" " width="304" height="43"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;so h_i (x)  is prediction from i-th decision tree&lt;/li&gt;
&lt;li&gt;ŷ is final predicted class after coming to decision of most common
vote among all the trees.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;2.📊 Regression equation (numerical)&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%2Fb9eqq5qrbf92mkiwmyiy.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%2Fb9eqq5qrbf92mkiwmyiy.png" alt=" " width="234" height="94"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;ŷ is the average prediction across all trees and T is total number of trees.&lt;/li&gt;
&lt;li&gt;Each h_i(x) is a numerical prediction from the i-th decision tree&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The image and equations illustrate how the Random Forest algorithm works by making predictions from individual trees, then selecting the majority vote (for &lt;strong&gt;classification&lt;/strong&gt;) or averaging the outputs (for &lt;strong&gt;regression&lt;/strong&gt;) to make a final decision.&lt;/p&gt;
&lt;h3&gt;
  
  
  Why is it so famous ?
&lt;/h3&gt;

&lt;p&gt;Random forest is so famous for a few reasons:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;🛡️ Resistant to overfitting&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Single decision trees&lt;/strong&gt; often perform well on training data, but their performance tends to drop when faced with new, unseen data.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Random Forest solves this problem&lt;/strong&gt; by averaging the predictions of multiple trees, which helps smooth out noise and leads to more &lt;strong&gt;balanced&lt;/strong&gt; and &lt;strong&gt;robust&lt;/strong&gt; predictions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;2.🧪 Works well without any fine tuning:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Many machine learning algorithms require extensive fine-tuning to perform well. However, &lt;strong&gt;Random Forest performs strongly even with its default settings&lt;/strong&gt;, without much need for parameter tuning.&lt;/li&gt;
&lt;li&gt;&lt;p&gt;This makes it a popular choice among beginners &lt;em&gt;who need quick and accurate results&lt;/em&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Works with all kinds of data:&lt;br&gt;
📊 Numerical data&lt;br&gt;
🧩 Data with lots of features&lt;br&gt;
❓ Missing values&lt;br&gt;
🏷️ Categorical data&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;3.Features (🌳) matters:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Most importantly, Random Forest identifies which features matter and which don’t.&lt;/li&gt;
&lt;li&gt;This helps us better understand the model by providing insights into the variables that influence predictions.&lt;/li&gt;
&lt;li&gt;It makes it easier to explain results to &lt;em&gt;non-technical people&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;It also allows for easy modification of which variables to include or exclude in future models.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  Random Forest in action ?
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Now that we know why Random Forest is so famous and how it got its name, let’s see it in action with a simple code snippet.&lt;/li&gt;
&lt;li&gt;Imagine we want to build a model to predict whether someone will be approved for a house loan by a bank. Features include &lt;em&gt;Income, Credit Score, Employment Status, Loan Amount, Interest Rate, and previous credit card history&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Training a single large decision tree often leads to &lt;strong&gt;overfitting&lt;/strong&gt;. What makes Random Forest unique is that it creates many smaller decision trees, each looking at different parts of the data.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Python Code snippet:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Sample dataset that simulates loan applications
X, y = make_classification(
    n_samples=2000,        # 2,000 loan applicants
    n_features=5,          # 5 features: credit score, income, etc.
    n_informative=3,       # only 3 features really affect the outcome
    n_redundant=0,
    random_state=0,
    shuffle=False)

# Create a Random Forest model with small trees
clf = RandomForestClassifier(max_depth=2,random_state=0)

# Training the model
clf.fit(X,y)

# Predict loan approval for a new applicant
print(clf.predict([[0, 0, 0, 0]]))  # Output: [1] (Approved)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Reference: &lt;a href="https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.RandomForestClassifier.html" rel="noopener noreferrer"&gt;scikit-learn RandomForestClassifier documentation&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Steps that algorithm follows:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;So, what &lt;strong&gt;Random Forest&lt;/strong&gt; does is it randomly picks samples of people from the list of loan applicants.&lt;/li&gt;
&lt;li&gt;Then, it builds a decision tree on each sample.&lt;/li&gt;
&lt;li&gt;This process is repeated many times to create multiple decision trees.&lt;/li&gt;
&lt;li&gt;When it’s time to decide whether to approve a loan for a person, each tree makes its own decision: “&lt;strong&gt;Yes&lt;/strong&gt;” or “&lt;strong&gt;No&lt;/strong&gt;.”&lt;/li&gt;
&lt;li&gt;The Random Forest algorithm collects all the votes from the trees and chooses the majority vote. If most trees say “Yes,” the loan is approved; otherwise, it is denied.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That’s it in simple terms, these are the steps the Random Forest algorithm follows.&lt;/p&gt;

&lt;h3&gt;
  
  
  Pro’s and Con’s of random forest algorithm.
&lt;/h3&gt;

&lt;h5&gt;
  
  
  Pro’s
&lt;/h5&gt;

&lt;ul&gt;
&lt;li&gt;The best part of the Random Forest algorithm is that it smooths out noise and creates balance in decision-making by considering the &lt;strong&gt;majority vote&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;If one tree makes a mistake, the other trees have a chance to correct it by covering different &lt;em&gt;edge cases&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;Each tree is trained on different data, which makes the overall model more &lt;strong&gt;accurate&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;It also identifies which features matter to the model and which don’t. This is very important for fine-tuning the model for future use cases.&lt;/li&gt;
&lt;/ul&gt;

&lt;h5&gt;
  
  
  Con’s
&lt;/h5&gt;

&lt;ul&gt;
&lt;li&gt;Slow process: Having many trees making individual decisions slows down the overall process, which is not ideal for real-time systems.&lt;/li&gt;
&lt;li&gt;Difficult to explain: Random Forest is harder to interpret compared to simpler models like single decision trees or linear regression.&lt;/li&gt;
&lt;li&gt;High memory usage: It can consume a lot of memory since it depends on the number of trees, each trained on different data subsets, making it computationally expensive.&lt;/li&gt;
&lt;li&gt;Struggles with sparse data: Random Forest does not perform well on high dimensional, sparse data such as in text classification tasks.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Real life impact:
&lt;/h3&gt;

&lt;p&gt;The best thing about the Random Forest algorithm is its impact on many real-world decisions. Here are some of the top real-life use cases:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🏦 &lt;strong&gt;Finance&lt;/strong&gt;: Used to approve loans by identifying risky applicants without bias.&lt;/li&gt;
&lt;li&gt;🧬 &lt;strong&gt;Healthcare&lt;/strong&gt;: Widely used to diagnose diseases like cancer and diabetes, predict outcomes, and identify key risk factors.&lt;/li&gt;
&lt;li&gt;🛒 &lt;strong&gt;Retail&lt;/strong&gt;: Helps analyze customer behavior and make recommendations—such as predicting when a customer will buy next or when they might stop shopping.&lt;/li&gt;
&lt;li&gt;🚗 &lt;strong&gt;Transportation&lt;/strong&gt;: Predicts delays, forecasts demand fluctuations, and helps improve service and convenience for customers.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It’s fascinating how such a straightforward algorithm can have a profound impact across industries, enhancing our daily lives and positively contributing to society.&lt;/p&gt;

&lt;p&gt;Follow along as I continue to explore and explain the fascinating world of AI and machine learning in simple terms.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>python</category>
      <category>beginners</category>
    </item>
    <item>
      <title>5 SQL Queries Everyone Should Know</title>
      <dc:creator>Smit</dc:creator>
      <pubDate>Fri, 16 May 2025 01:08:24 +0000</pubDate>
      <link>https://dev.to/ironside43/5-sql-queries-everyone-should-know-4n9i</link>
      <guid>https://dev.to/ironside43/5-sql-queries-everyone-should-know-4n9i</guid>
      <description>&lt;p&gt;SQL queries are an important tool for retrieving data from databases and are widely used in the field of computer science. SQL stands for Structured Query Language, and many tools can be used to run SQL queries, such as PyCharm and Anaconda Spyder. Below are five essential SQL query concepts that everyone should know.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. WHERE
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Usage:&lt;/strong&gt; retrieve specific types of data from a table based on filters.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;SELECT emp_name&lt;br&gt;
FROM company&lt;br&gt;
WHERE department = 'Finance';&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Filters are always important, as without them, the data can be overwhelming and may include a lot of unnecessary information.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. GROUP BY
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Usage:&lt;/strong&gt; It is widely used for summarizing data and can be combined with aggregate functions.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;SELECT department, count(*) AS emp_count&lt;br&gt;
FROM employees_table&lt;br&gt;
GROUP BY department;&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Aggregation is useful for identifying patterns and uncovering hidden trends in the data.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. JOINS
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Usage:&lt;/strong&gt; Joins are used to combine rows from different tables based on a key column, and data is retrieved according to specific conditions. There are different types of joins, with the most used being the inner join.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;SELECT orders.order_id, customers.customer_name&lt;br&gt;
FROM orders_table a&lt;br&gt;
INNER JOIN customers_table b ON a.customer_id = b.customer_id;&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; See the image below for more information on all types of joins, along with a Venn diagram that visually explains them.&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%2Fcyssn9kpqezsol3v8dfn.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%2Fcyssn9kpqezsol3v8dfn.png" alt="Venn diagram illustrating different types of SQL joins" width="479" height="332"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Diagram reference: &lt;a href="https://dsin.wordpress.com/2013/03/16/sql-join-cheat-sheet/" rel="noopener noreferrer"&gt;https://dsin.wordpress.com/2013/03/16/sql-join-cheat-sheet/&lt;/a&gt; &lt;/p&gt;

&lt;h3&gt;
  
  
  4. Window Functions:
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Usage:&lt;/strong&gt; This is widely used when performing calculations across multiple rows in a table that are related to the current row.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;SELECT employee_id, salary,&lt;br&gt;
       RANK() OVER (ORDER BY salary asc) AS salary_rank&lt;br&gt;
FROM employees_table;&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Window functions are extremely useful for building advanced reports that require complex analytics, such as ranking, row numbering, and moving averages.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Subqueries:
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Usage:&lt;/strong&gt; Subqueries are widely used to incorporate the result of one query within another query.&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;code&gt;SELECT first_name, last_name&lt;br&gt;
FROM employees_table&lt;br&gt;
WHERE salary &amp;gt; (&lt;br&gt;
SELECT AVG(salary) &lt;br&gt;
FROM employees_table);&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Subqueries are useful for creating advanced and dynamic logic that normal queries can’t achieve, and they can sometimes help optimize query performance. &lt;/p&gt;

&lt;p&gt;Well, this was fun to write! If you found this helpful, please clap, share, or follow for more data tips. Let me know in the comments what you think, and if anyone has questions or would like me to cover more advanced queries. Happy querying!&lt;/p&gt;

</description>
      <category>sql</category>
      <category>database</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Why Llama AI is Popular</title>
      <dc:creator>Smit</dc:creator>
      <pubDate>Sun, 27 Oct 2024 21:06:11 +0000</pubDate>
      <link>https://dev.to/ironside43/llama-ai-model-why-its-the-talk-of-the-town-1p8p</link>
      <guid>https://dev.to/ironside43/llama-ai-model-why-its-the-talk-of-the-town-1p8p</guid>
      <description>&lt;p&gt;Meta's Llama model is an open-source AI model. It is appreciated by everyone in the industry for being open-source, while so many famous AI models are closed. "The model's open-source nature allows anyone to contribute to it, fine-tune it, and use it for tasks like summarizing, text generation, and much more. So, let’s dive into what makes the Llama model so special!"&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Sections:
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Introduction to Llama model&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;2. Core features&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;3. How to use the Llama model?&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;4. Alternative AI models&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;5. Challenges&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;6. Conclusion &amp;amp; Final Thoughts&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Introduction
&lt;/h2&gt;

&lt;p&gt;The Llama model is an open-source AI model developed by Meta. Since it is open-source, anyone can use, train, and deploy the model from anywhere in the world. There are different versions of the Llama models available, allowing users to choose from various sizes: 7B, 13B, 30B, and 65B. And just in case you're wondering, the "B" stands for "billion," so all the heavy lifting is done by these billions of parameters. Thanks to Meta for making this possible!&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Core Features
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Efficiency&lt;/strong&gt;: The Llama model is efficient in processing large datasets and can handle complex tasks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Different Model sizes&lt;/strong&gt;: Users can choose from models like 7B and 13B parameters, depending on their usage and computational resources. Each model has its pros and cons.&lt;/li&gt;
&lt;li&gt;*&lt;em&gt;Open-source *&lt;/em&gt;: Llama is open-source, meaning anyone can contribute to and improve the models, which allows for rapid enhancements and support from large communities.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multi-language Processing&lt;/strong&gt;: The Llama AI model supports many languages including German, English, French, Hindi, and many more. It's a powerful tool and can be used for translation. For example, it can translate English to Spanish using a meta-AI model available online.&lt;/li&gt;
&lt;/ul&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%2Fx7plt3oi6e665bzmbcf3.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%2Fx7plt3oi6e665bzmbcf3.png" alt="translation" width="726" height="227"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;MultiModal Processing&lt;/strong&gt;: The Llama AI model can also handle various types of media like text, and images allowing it to work with different media formats.&lt;/li&gt;
&lt;li&gt;*&lt;em&gt;Fine-Tuning *&lt;/em&gt;: The Llama model can be fine-tuned and trained on specific datasets for particular industries, such as healthcare or education, making the AI model more specialized and accurate.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  3. How to use the Llama model?
&lt;/h2&gt;

&lt;p&gt;For developers and programmers, using the Llama model is straightforward through the Hugging Face website. To obtain the model, one needs to select the type of model on Hugging Face, submit the required information, and receive approval within a few days.&lt;/p&gt;

&lt;p&gt;Always remember to use the model responsibly and safely. Here’s the link for obtaining the models: &lt;a href="https://www.llama.com/docs/getting-the-models/hugging-face" rel="noopener noreferrer"&gt;Getting the models&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;Below is a code snippet from the Hugging Face website showing how to use the model. For more reference, see this link: &lt;a href="https://huggingface.co/meta-llama/Llama-3.1-8B#Use-with-transformers" rel="noopener noreferrer"&gt;Code snippet&lt;/a&gt;&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%2Fqmv0qmwfju6jmqpgvqpp.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%2Fqmv0qmwfju6jmqpgvqpp.png" alt="code snippet" width="733" height="283"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For someone who wants to use the model directly instead of setting it up, you can go to &lt;a href="https://www.meta.ai/" rel="noopener noreferrer"&gt;https://www.meta.ai/&lt;/a&gt;. Let's figure out what AI thinks is the meaning of life. Haven't we always wondered about that?&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%2F4vx6e0yslcrh92qlcpo8.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%2F4vx6e0yslcrh92qlcpo8.png" alt="Prompt" width="703" height="257"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We can also generate a remix of a response by changing the settings. How about considering it from a Stoicism perspective? That's so cool!&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%2F8ev6yejmkgt3lok0dbpp.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%2F8ev6yejmkgt3lok0dbpp.png" alt="remix of a response" width="800" height="385"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;and we can always go back to the previous version of the conversation.&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%2Fb3nejf4ixbwr44it66nn.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%2Fb3nejf4ixbwr44it66nn.png" alt="older version" width="693" height="227"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Alternative AI models
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;GPT: Created and trained by OpenAI. , this is a closed-source AI model that can be accessed from their website. &lt;a href="https://openai.com/index/chatgpt/" rel="noopener noreferrer"&gt;ChatGPT&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Claude Sonnet: Developed by Anthropic AI, backed by Amazon. Check out the link to explore their AI model. &lt;a href="https://claude.ai/" rel="noopener noreferrer"&gt;Claude&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  5. Challenges
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Computational Requirements&lt;/strong&gt;: The computational power required for some types of Llama models is significant.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Content Bias&lt;/strong&gt;: There is a possibility of content bias, which depends on the data on which it is trained.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Energy costs&lt;/strong&gt;: The Llama model requires a substantial amount of energy for training and running, leading to a significant environmental impact. However, efficiency improvements may occur in the future.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Security and Misuse&lt;/strong&gt;: There can be security risks, as the text generated by these models can sometimes be harmful and affect individuals. Therefore, careful review and additional safety measures or safeguards are required.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  6. Conclusion &amp;amp; Final Thoughts
&lt;/h2&gt;

&lt;p&gt;We learned today about what the Llama model is, why it is famous, and what makes it so powerful as an open-source AI model that anyone can easily train, deploy, and use. AI models are powerful yet often act as black boxes, sometimes generating outputs that can hallucinate (when the model produces inaccurate information).&lt;/p&gt;

&lt;p&gt;If used carefully for specific use cases, AI models can be incredibly useful and can solve many problems across various industries. This post was written by me with the assistance of AI, the amazing documentation from Hugging Face, and the documentation page from Meta.ai.&lt;/p&gt;

&lt;p&gt;And it's a wrap! I had a lot of fun writing this post. This is my first post here, and I’m eager to receive any feedback or suggestions you all might have. Share your ideas in the comments below!&lt;/p&gt;

</description>
      <category>programming</category>
      <category>ai</category>
      <category>python</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
