<?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: Arin Dewangan</title>
    <description>The latest articles on DEV Community by Arin Dewangan (@arin_dewangan_6110e41aadb).</description>
    <link>https://dev.to/arin_dewangan_6110e41aadb</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4170068%2F1b017c4f-f6c0-4f19-933a-6829c2aed85e.png</url>
      <title>DEV Community: Arin Dewangan</title>
      <link>https://dev.to/arin_dewangan_6110e41aadb</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/arin_dewangan_6110e41aadb"/>
    <language>en</language>
    <item>
      <title>Frostwise — know your frost dates, plant with confidence</title>
      <dc:creator>Arin Dewangan</dc:creator>
      <pubDate>Thu, 08 Oct 2026 02:54:03 +0000</pubDate>
      <link>https://dev.to/arin_dewangan_6110e41aadb/frostwise-know-your-frost-dates-plant-with-confidence-3hc1</link>
      <guid>https://dev.to/arin_dewangan_6110e41aadb/frostwise-know-your-frost-dates-plant-with-confidence-3hc1</guid>
      <description>&lt;h1&gt;
  
  
  Frostwise — know your frost dates, plant with confidence
&lt;/h1&gt;

&lt;p&gt;&lt;em&gt;DEV Hacktoberfest AI Challenge — Week 1: Touch Grass.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Every gardener knows the heartbreak: a surprise late frost wipes out weeks of seedlings overnight. Frost dates are the single most important number in gardening, yet most people guess them from a vague zone map or a neighbor's memory.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;Frostwise&lt;/strong&gt; — a hyperlocal garden planner that computes &lt;em&gt;your&lt;/em&gt; frost dates from real climate history using &lt;strong&gt;TabPFN&lt;/strong&gt;, the open-source tabular foundation model — then turns them into a planting plan you can actually follow.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Live demo:&lt;/strong&gt; &lt;a href="https://arindewangan.github.io/frostwise/demo/" rel="noopener noreferrer"&gt;https://arindewangan.github.io/frostwise/demo/&lt;/a&gt; (real precomputed TabPFN predictions, clearly labeled)&lt;br&gt;
&lt;strong&gt;Repo:&lt;/strong&gt; &lt;a href="https://github.com/arindewangan/frostwise" rel="noopener noreferrer"&gt;https://github.com/arindewangan/frostwise&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Video:&lt;/strong&gt; &lt;a href="https://youtu.be/ZpVZ8wFglvg" rel="noopener noreferrer"&gt;https://youtu.be/ZpVZ8wFglvg&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;

&lt;p&gt;Type any city — or tap a sample like Chicago, Berlin, Bengaluru, Sydney, Tokyo — and Frostwise:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;pulls &lt;strong&gt;20 years of daily minimum temperatures&lt;/strong&gt; for your location from the Open-Meteo archive (ERA5 reanalysis),&lt;/li&gt;
&lt;li&gt;runs &lt;strong&gt;TabPFN&lt;/strong&gt; to predict whether your location gets frost at all, and if so, your &lt;strong&gt;last spring frost&lt;/strong&gt; and &lt;strong&gt;first autumn frost&lt;/strong&gt; dates,&lt;/li&gt;
&lt;li&gt;generates a &lt;strong&gt;planting calendar for 12 common crops&lt;/strong&gt; (tomatoes, peppers, kale, garlic, spinach…), with sow windows anchored to your predicted frost dates and honest notes per crop.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;No frost where you live? It tells you that too — the model learned it from the data, and you get a year-round growing calendar instead.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it's built
&lt;/h2&gt;

&lt;p&gt;A Python/Flask backend with a clean single-page frontend. The pipeline:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;data/build_dataset.py&lt;/code&gt; fetches 2005–2024 daily minimums for &lt;strong&gt;80 stratified global locations&lt;/strong&gt; and derives per-location labels — median first/last frost day-of-year (frost = daily min ≤ 0°C) — plus 17 climate features.&lt;/li&gt;
&lt;li&gt;At request time, TabPFN performs the whole prediction &lt;strong&gt;in-context&lt;/strong&gt;: a classifier for frost/no-frost, two regressors for the dates — a single forward pass per model, &lt;strong&gt;no gradient training&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The frontend is vanilla HTML/CSS/JS. The GitHub Pages demo bakes real precomputed TabPFN predictions (labeled with the build date) so it works without a backend.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The honest hard parts
&lt;/h2&gt;

&lt;p&gt;The real challenge was making the AI &lt;em&gt;genuine&lt;/em&gt; instead of decorative. A frost date isn't in any API — it has to be derived, so I built the entire label pipeline from raw reanalysis data and had to get the day-of-year statistics right &lt;strong&gt;across hemispheres&lt;/strong&gt; (autumn frost in Sydney falls in a different part of the year than in Berlin). Tropical locations needed genuine "no frost" handling rather than a hardcoded hack — hence the two-stage classifier → regressor design. The other fight was practical: PyTorch's download servers kept timing out, so the environment setup needed patient retries and mirror fallbacks.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'm proud of
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A &lt;strong&gt;real open-source-AI core&lt;/strong&gt;: TabPFN inference on real ERA5 data, reproducible end-to-end from the repo — no API keys, no proprietary models, no fake "AI" labels.&lt;/li&gt;
&lt;li&gt;The two-stage design (frost/no-frost classifier → date regressors) that handles everything from Chicago winters to Bengaluru's frost-free climate &lt;strong&gt;without special cases&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;A static demo that stays honest: every number is a genuine precomputed inference, clearly labeled as such.&lt;/li&gt;
&lt;li&gt;A UI clean enough that a non-technical gardener can actually use it.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I learned
&lt;/h2&gt;

&lt;p&gt;TabPFN's in-context learning is remarkably well suited to small, high-signal tabular problems — 80 locations were enough to learn a physically sensible climate→frost mapping. I also learned that the unglamorous half of "AI projects" is &lt;strong&gt;data plumbing&lt;/strong&gt;: deriving trustworthy labels from raw observations mattered more than any model choice. And that honesty in demos (labeling precomputed vs live) costs nothing and buys trust.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;p&gt;Per-crop frost-&lt;em&gt;damage&lt;/em&gt; risk (not just dates), user-saved locations with frost alerts, Southern-Hemisphere season handling in the calendar copy, and a TabPFN uncertainty readout (prediction intervals) so gardeners see the confidence behind each date.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it uses open-source AI
&lt;/h2&gt;

&lt;p&gt;Frostwise's prediction engine is &lt;strong&gt;TabPFN&lt;/strong&gt; (Apache-2.0, PriorLabs) — an open-source tabular foundation model that performs supervised learning in a single forward pass. We derive frost-date labels from 20 years of open ERA5 reanalysis data (via Open-Meteo's free archive), and TabPFN learns the climate→frost-date mapping in-context at inference time: a classifier predicts frost occurrence and two regressors predict first/last frost day-of-year. No proprietary models or API keys are involved anywhere in the pipeline.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Built with: Python, Flask, TabPFN (open-source), Open-Meteo / ERA5, JavaScript. License: MIT.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
      <category>ai</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
