<?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: the_undefined_architect</title>
    <description>The latest articles on Forem by the_undefined_architect (@the_undefined_architect).</description>
    <link>https://forem.com/the_undefined_architect</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%2F3873971%2Fa279615a-2cf6-4223-826d-eea964a78d93.png</url>
      <title>Forem: the_undefined_architect</title>
      <link>https://forem.com/the_undefined_architect</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/the_undefined_architect"/>
    <language>en</language>
    <item>
      <title>Linear Regression: Putting things in line</title>
      <dc:creator>the_undefined_architect</dc:creator>
      <pubDate>Tue, 14 Apr 2026 14:27:24 +0000</pubDate>
      <link>https://forem.com/the_undefined_architect/linear-regression-putting-things-in-line-349c</link>
      <guid>https://forem.com/the_undefined_architect/linear-regression-putting-things-in-line-349c</guid>
      <description>&lt;p&gt;Like every developer knows, Hello World is famously the first application you build when you start learning how to code. In the same spirit, house price prediction is one of the best beginner examples for understanding how machine learning models are trained and used.&lt;/p&gt;

&lt;p&gt;Say you want to build an app that predicts house prices. How would you do it? There is no simple if-else statement that can accurately predict the price of a house in your neighborhood.&lt;/p&gt;

&lt;p&gt;So let’s simplify the problem.&lt;/p&gt;

&lt;p&gt;Imagine you collected data for 10 houses and wanted to explore whether house size can help us predict house price. Your dataset might look like this:&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%2Fac60skzz0dy28zi7twxx.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%2Fac60skzz0dy28zi7twxx.png" alt="Dataset of house size-price" width="476" height="428"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If we plot these points on an X and Y axis, this is what we get:&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%2Fb4v6tizc69fxzwpy5aa2.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%2Fb4v6tizc69fxzwpy5aa2.png" alt="The dataset plotted on a scatterplot" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As we can see, a correlation emerges between the size of the house and its price (duh).&lt;br&gt;
But how can we define this relationship so that, given a real value of X (the house size), we can predict the price?&lt;/p&gt;

&lt;p&gt;This is where Linear Regression comes in.&lt;/p&gt;

&lt;p&gt;Instead of trying to match every point perfectly, linear regression finds a line, called the regression line, that best represents the overall trend in the data.&lt;/p&gt;

&lt;p&gt;Here’s what that looks like:&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%2Fdb924oks9cnap3bmz0bj.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%2Fdb924oks9cnap3bmz0bj.png" alt="The regression line represents the overall trend" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now that we have our regression line, we can actually use it to make predictions.&lt;/p&gt;

&lt;p&gt;Let’s say we want to estimate the price of a house that is 250 m².&lt;/p&gt;

&lt;p&gt;We simply take that value (X = 250), project it onto our regression line, and get the predicted price:&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%2F1m5kr8ih5kcbfrzjoxbs.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%2F1m5kr8ih5kcbfrzjoxbs.png" alt="Predicting price" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And that’s it — we’ve trained our first model for predicting house prices.&lt;/p&gt;

&lt;p&gt;I know, I know… we didn’t go into how the model actually finds this line, or how to implement it in code. We’ll get there in the next post.&lt;/p&gt;

&lt;p&gt;For now, the goal was to give you an intuition for how Machine Learning works:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;how models learn from data&lt;/li&gt;
&lt;li&gt;how training shapes their behavior&lt;/li&gt;
&lt;li&gt;and most importantly — that there is no certainty, only &lt;strong&gt;probability&lt;/strong&gt; and &lt;strong&gt;prediction&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>mlunchained</category>
      <category>machinelearning</category>
      <category>ai</category>
    </item>
    <item>
      <title>ML Unchained: Machine Learning for Developers</title>
      <dc:creator>the_undefined_architect</dc:creator>
      <pubDate>Sun, 12 Apr 2026 19:01:53 +0000</pubDate>
      <link>https://forem.com/the_undefined_architect/ml-unchained-machine-learning-for-developers-5ch3</link>
      <guid>https://forem.com/the_undefined_architect/ml-unchained-machine-learning-for-developers-5ch3</guid>
      <description>&lt;p&gt;If you’re an experienced developer, you’ve probably felt it already.&lt;/p&gt;

&lt;p&gt;Machine Learning is everywhere.&lt;br&gt;
Recommendations, pricing, search, fraud detection, and copilots.&lt;/p&gt;

&lt;p&gt;And yet — it still feels… separate from what you do.&lt;/p&gt;

&lt;p&gt;Like a different world.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why You Should Care
&lt;/h2&gt;

&lt;p&gt;Not because it’s hype.&lt;br&gt;
Because it changes how you build.&lt;/p&gt;

&lt;p&gt;As an experienced developer, you’re used to writing deterministic systems.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Given X → return Y&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;You structure it with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Functions&lt;/li&gt;
&lt;li&gt;Classes&lt;/li&gt;
&lt;li&gt;Tests&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Machine Learning doesn’t replace that.&lt;br&gt;
But it introduces a component that doesn’t follow explicit rules — it predicts.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Instead of writing logic, you train it.&lt;br&gt;
Instead of exact outputs, you get probabilities.&lt;br&gt;
Instead of debugging code, you analyze behavior.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why This Transition Is So Hard
&lt;/h2&gt;

&lt;p&gt;Traditional developers struggle to get started with ML because the AI world feels intimidating. There’s no simple “hello world” to ease you in.&lt;/p&gt;

&lt;p&gt;It’s not that simple — but it’s not that hard either.&lt;/p&gt;

&lt;p&gt;I’ll say it clearly: you don’t need to be a math wizard to become an ML engineer. I’m not. Yes, math is involved, but as a developer you’ve already dealt with harder problems.&lt;/p&gt;

&lt;p&gt;The real issue is how people approach learning it.&lt;/p&gt;

&lt;p&gt;They think they need to:&lt;/p&gt;

&lt;p&gt;Learn the math first&lt;br&gt;
Then the theory&lt;br&gt;
And only then start coding&lt;/p&gt;

&lt;p&gt;That’s backwards.&lt;/p&gt;

&lt;p&gt;We’re engineers.&lt;/p&gt;

&lt;p&gt;We don’t learn by reading first —&lt;br&gt;
we learn by building cools shit.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;That’s exactly what we’re going to do together.&lt;/p&gt;

&lt;p&gt;We’re going to dive into Machine Learning — but not through theory-first learning.&lt;/p&gt;

&lt;p&gt;We’ll go project first.&lt;/p&gt;

&lt;p&gt;We’ll build things.&lt;br&gt;
We’ll break them.&lt;br&gt;
We’ll understand how they behave.&lt;/p&gt;

&lt;p&gt;And along the way, the concepts will start to make sense — naturally.&lt;/p&gt;

&lt;p&gt;No unnecessary complexity.&lt;br&gt;
No waiting until you’re “ready.”&lt;/p&gt;

&lt;p&gt;We'll do it the engineering way, and we'll do that 500 words at a time&lt;/p&gt;

</description>
      <category>machinelearning</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
