<?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: HARSH VORA</title>
    <description>The latest articles on DEV Community by HARSH VORA (@harsh0641).</description>
    <link>https://dev.to/harsh0641</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%2F4258113%2F06b9c609-affb-4b8d-a58d-639042efb570.jpg</url>
      <title>DEV Community: HARSH VORA</title>
      <link>https://dev.to/harsh0641</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/harsh0641"/>
    <language>en</language>
    <item>
      <title>I tested my ML model honestly. It beat "good issue" labels by 43%.</title>
      <dc:creator>HARSH VORA</dc:creator>
      <pubDate>Mon, 23 Nov 2026 18:59:14 +0000</pubDate>
      <link>https://dev.to/harsh0641/i-tested-my-ml-model-honestly-it-beat-good-issue-labels-by-43-1n18</link>
      <guid>https://dev.to/harsh0641/i-tested-my-ml-model-honestly-it-beat-good-issue-labels-by-43-1n18</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;My first open source contribution took a week to write and never got merged. The code wasn't the problem. I had picked the wrong issue.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The idea
&lt;/h2&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fejkez53gj8dvze8qqxle.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fejkez53gj8dvze8qqxle.png" alt="Lysis" width="799" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Every newcomer hears the same advice: &lt;strong&gt;filter by "good first issue."&lt;/strong&gt; In practice, those labels are stale, missing, or stuck on issues nobody wants help with.&lt;/p&gt;

&lt;p&gt;So I asked a different question. Of the issues that got closed, which ones did a first-time contributor close with a merged PR?&lt;/p&gt;

&lt;p&gt;That became Lysis. You type owner/repo and it ranks the open issues. Try it at &lt;a href="https://trylysis.me" rel="noopener noreferrer"&gt;trylysis.me&lt;/a&gt;, no signup needed.&lt;/p&gt;

&lt;h2&gt;
  
  
  What "success" means
&lt;/h2&gt;

&lt;p&gt;An issue counts as a win when a first-time contributor's merged PR closes it. "First-time" means the author had no earlier commits in that repo, and the PR links the issue with a closing keyword.&lt;/p&gt;

&lt;p&gt;That gave me 22,627 labeled issues, 4,646 of them wins. It is also the weakest part of the project, and I come back to it at the end.&lt;/p&gt;

&lt;h2&gt;
  
  
  Mistake one: I graded myself on the easy test
&lt;/h2&gt;

&lt;p&gt;I only had labels for issues that already had a merged PR, so I trained and tested on those alone. My model scored 0.445 average precision (AP) against 0.333 for a baseline that just uses the label.&lt;/p&gt;

&lt;p&gt;Then I added every closed issue, wins and non-wins, because that is what the model faces when it ranks an open one. The win rate fell from 24% to 10%, and AP fell to 0.278 (baseline 0.245).&lt;/p&gt;

&lt;h2&gt;
  
  
  Mistake two: statistics from the future
&lt;/h2&gt;

&lt;p&gt;Stars, forks and repo size came from the day I downloaded the data, not the day each issue was opened. I replaced them with activity counted only from PRs merged before the issue existed.&lt;/p&gt;

&lt;p&gt;I expected a drop. The honest version scored slightly better, 0.305.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four ideas that did not help
&lt;/h2&gt;

&lt;p&gt;Once the test was honest, I could finally lose arguments with myself properly:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;TF-IDF features from the issue text: AP 0.426, versus 0.446 without&lt;/li&gt;
&lt;li&gt;Repo PR-behaviour features: 0.437 versus 0.441&lt;/li&gt;
&lt;li&gt;One model per language: 0.152 versus 0.169 for a shared model (JavaScript)&lt;/li&gt;
&lt;li&gt;Maintainer response signals: 0.263 versus 0.260&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Each one cost me an evening and ended in a revert. The metrics page I built to test them was the most useful thing in the repo.&lt;/p&gt;

&lt;h2&gt;
  
  
  The best number was a bug
&lt;/h2&gt;

&lt;p&gt;When I added Go, TypeScript, Java and Rust, the labeling run stopped halfway on a GitHub rate limit. I evaluated anyway. AUC came back 0.90, the best result I had ever seen.&lt;/p&gt;

&lt;p&gt;It was wrong. The unlabeled issues were silently counted as failures, which dragged the win rate down to 2.3% and made everything look easy to separate. After I finished the labeling, the real AUC was 0.789.&lt;/p&gt;

&lt;p&gt;A score that jumps that far should make you suspicious before it makes you happy.&lt;/p&gt;

&lt;p&gt;The bogus 0.90 run&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting it online
&lt;/h2&gt;

&lt;p&gt;Shipping took almost as long as modeling.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;My org's OAuth restrictions blocked Streamlit from reading the repo, so I deployed from a personal fork.&lt;/li&gt;
&lt;li&gt;A GitHub Actions run sat in the queue for close to an hour. Pushing the same code under a new branch name fixed it.&lt;/li&gt;
&lt;li&gt;I lost an hour to CORS errors because a Docker container from nine hours earlier was still answering on port 8000 with old code.&lt;/li&gt;
&lt;li&gt;Dependabot opened 13 pull requests at once. I also pinned scikit-learn, because the saved model is a pickle and a routine version bump could break it.&lt;/li&gt;
&lt;li&gt;Render's free tier goes to sleep, so a cold request takes up to a minute. A five-minute uptime ping keeps it awake.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Everything looked done. I checked anyway.
&lt;/h2&gt;

&lt;p&gt;I wrote a one-page checklist and ran it. Production only got gentle, read-only checks, and the aggressive ones ran on staging.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;78 backend tests pass, plus browser tests with Playwright.&lt;/li&gt;
&lt;li&gt;pip-audit found nothing. gitleaks scanned the full git history and found no secrets. npm audit flagged 7 moderate issues, all in lint tooling that never ships.&lt;/li&gt;
&lt;li&gt;ZAP's baseline scan found 0 high, 3 medium and 7 low alerts, nearly all missing security headers. I added CSP, HSTS, nosniff and clickjacking protection.&lt;/li&gt;
&lt;li&gt;My Supabase insert policy for feedback was WITH CHECK (true), so anyone could write anything. It now validates the repo format, issue number and score range, and I proved it with curl.&lt;/li&gt;
&lt;li&gt;Lighthouse after a production build: SEO 100, performance 87, accessibility 97, best practices 96.&lt;/li&gt;
&lt;li&gt;A k6 run on staging (5 users, 30 seconds) passed all 2,693 checks with a 73 ms p95.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The checks also broke a few of my own things. My new CSP blocked my CI test build, and my browser smoke test passed locally only because my backend was running.&lt;/p&gt;

&lt;p&gt;ZAP summary, Supabase policy and k6 output&lt;/p&gt;

&lt;h2&gt;
  
  
  Where it ended up
&lt;/h2&gt;

&lt;p&gt;About &lt;strong&gt;54,000&lt;/strong&gt; closed issues across six languages, 5-fold cross-validation where no repo appears in both train and test:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;AP (Average Precision)&lt;/th&gt;
&lt;th&gt;AUC (Area Under Curve)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Random&lt;/td&gt;
&lt;td&gt;0.067&lt;/td&gt;
&lt;td&gt;0.50&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Label&lt;/td&gt;
&lt;td&gt;0.176&lt;/td&gt;
&lt;td&gt;0.706&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Lysis&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0.251&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0.789&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;By language (Lysis vs label only, AP): Python 0.301 vs 0.225, Go 0.322 vs 0.206, TypeScript 0.222 vs 0.162, Rust 0.205 vs 0.162, Java 0.170 vs 0.131. JavaScript is a tie, 0.190 vs 0.191.&lt;/p&gt;

&lt;p&gt;A language only gets a "validated" tag if the model beats the label baseline on both AP and AUC, so JavaScript doesn't have one.&lt;/p&gt;

&lt;p&gt;It is about 3.7 times better than random and clearly better than labels, but it is still a modest signal. When a repo has 100 open issues, it helps you pick a better five. It does not tell you which one will be merged.&lt;/p&gt;

&lt;p&gt;Try it&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Live: &lt;a href="https://trylysis.me" rel="noopener noreferrer"&gt;trylysis.me&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Source: &lt;a href="https://github.com/OpenRootdev/Lysis" rel="noopener noreferrer"&gt;github.com/OpenRootdev/Lysis&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If a ranking looks wrong for a repo you know, tell me in the comments. That is the feedback I want most.&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>nextjs</category>
      <category>docker</category>
      <category>machinelearning</category>
    </item>
  </channel>
</rss>
