frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Al Lowe on model trains, funny deaths and working with Disney

https://spillhistorie.no/2026/02/06/interview-with-sierra-veteran-al-lowe/
39•thelok•2h ago•3 comments

Hoot: Scheme on WebAssembly

https://www.spritely.institute/hoot/
101•AlexeyBrin•6h ago•18 comments

First Proof

https://arxiv.org/abs/2602.05192
52•samasblack•3h ago•39 comments

OpenCiv3: Open-source, cross-platform reimagining of Civilization III

https://openciv3.org/
789•klaussilveira•20h ago•243 comments

Stories from 25 Years of Software Development

https://susam.net/twenty-five-years-of-computing.html
39•vinhnx•3h ago•5 comments

Reinforcement Learning from Human Feedback

https://rlhfbook.com/
63•onurkanbkrc•5h ago•5 comments

The Waymo World Model

https://waymo.com/blog/2026/02/the-waymo-world-model-a-new-frontier-for-autonomous-driving-simula...
1041•xnx•1d ago•588 comments

Start all of your commands with a comma (2009)

https://rhodesmill.org/brandon/2009/commands-with-comma/
464•theblazehen•2d ago•165 comments

France's homegrown open source online office suite

https://github.com/suitenumerique
511•nar001•5h ago•235 comments

The AI boom is causing shortages everywhere else

https://www.washingtonpost.com/technology/2026/02/07/ai-spending-economy-shortages/
64•1vuio0pswjnm7•7h ago•61 comments

Vocal Guide – belt sing without killing yourself

https://jesperordrup.github.io/vocal-guide/
184•jesperordrup•10h ago•65 comments

Selection Rather Than Prediction

https://voratiq.com/blog/selection-rather-than-prediction/
3•languid-photic•3d ago•0 comments

Coding agents have replaced every framework I used

https://blog.alaindichiappari.dev/p/software-engineering-is-back
190•alainrk•5h ago•282 comments

Software factories and the agentic moment

https://factory.strongdm.ai/
51•mellosouls•3h ago•53 comments

A Fresh Look at IBM 3270 Information Display System

https://www.rs-online.com/designspark/a-fresh-look-at-ibm-3270-information-display-system
27•rbanffy•4d ago•5 comments

72M Points of Interest

https://tech.marksblogg.com/overture-places-pois.html
20•marklit•5d ago•0 comments

Unseen Footage of Atari Battlezone Arcade Cabinet Production

https://arcadeblogger.com/2026/02/02/unseen-footage-of-atari-battlezone-cabinet-production/
108•videotopia•4d ago•27 comments

Where did all the starships go?

https://www.datawrapper.de/blog/science-fiction-decline
59•speckx•4d ago•62 comments

Show HN: Look Ma, No Linux: Shell, App Installer, Vi, Cc on ESP32-S3 / BreezyBox

https://github.com/valdanylchuk/breezydemo
268•isitcontent•21h ago•34 comments

Learning from context is harder than we thought

https://hy.tencent.com/research/100025?langVersion=en
198•limoce•4d ago•107 comments

Monty: A minimal, secure Python interpreter written in Rust for use by AI

https://github.com/pydantic/monty
281•dmpetrov•21h ago•150 comments

Making geo joins faster with H3 indexes

https://floedb.ai/blog/how-we-made-geo-joins-400-faster-with-h3-indexes
152•matheusalmeida•2d ago•47 comments

British drivers over 70 to face eye tests every three years

https://www.bbc.com/news/articles/c205nxy0p31o
169•bookofjoe•2h ago•153 comments

Hackers (1995) Animated Experience

https://hackers-1995.vercel.app/
549•todsacerdoti•1d ago•266 comments

Sheldon Brown's Bicycle Technical Info

https://www.sheldonbrown.com/
422•ostacke•1d ago•110 comments

Ga68, a GNU Algol 68 Compiler

https://fosdem.org/2026/schedule/event/PEXRTN-ga68-intro/
39•matt_d•4d ago•14 comments

Show HN: I spent 4 years building a UI design tool with only the features I use

https://vecti.com
365•vecti•23h ago•167 comments

An Update on Heroku

https://www.heroku.com/blog/an-update-on-heroku/
465•lstoll•1d ago•305 comments

U.S. Jobs Disappear at Fastest January Pace Since Great Recession

https://www.forbes.com/sites/mikestunson/2026/02/05/us-jobs-disappear-at-fastest-january-pace-sin...
12•alephnerd•1h ago•7 comments

Show HN: If you lose your memory, how to regain access to your computer?

https://eljojo.github.io/rememory/
342•eljojo•23h ago•210 comments
Open in hackernews

Adventures in Imbalanced Learning and Class Weight

http://andersource.dev/2025/05/05/imbalanced-learning.html
49•andersource•9mo ago

Comments

ipunchghosts•9mo ago
I read the article and the take away is that class weights and stratified sampling did not help for the OPs problem.
lamename•9mo ago
Nice writeup. F1, balanced accuracy, etc. In truth it depends on your problem and what a practical "best" solution is, especially in imbalanced scenarios, but Matthews Correlation Coefficient (MCC) is probably the best comprehensive and balanced blind go-to metric, because it guarantees that more portions of the confusion matrix are good [0,1].

I made a quick interactive, graphical exploration to demonstrate this in python [2].

[0]: https://biodatamining.biomedcentral.com/articles/10.1186/s13...

[1]: https://biodatamining.biomedcentral.com/articles/10.1186/s13...

[2]: https://www.glidergrid.xyz/post-archive/understanding-the-ro...

klysm•9mo ago
MCC also generalizes to multi-class well. I wish it had a better name though. It seems like F1 score has better marketing
andersource•9mo ago
Really neat visualization! And thanks for the tip on MCC.

Out of curiosity I plugged it to the same visualization (performance vs. class weight when optimized with BCE) and it behaves similar to F1, i.e. best without weighting.

gitroom•9mo ago
Insane how tricky imbalanced stuff gets- I always end up second guessing my metrics tbh. You think there's ever such thing as a "right" number for real world junk or is it just endless tradeoffs?
andersource•9mo ago
Yeah it gets tricky. I think eventually it has to be about tradeoffs - no ML system can be 100% correct. I do think there's a "right" decision (up to a point) in the context of the product or business.
zai_nabasif1234•9mo ago
[5/11, 1:41 PM] Meta AI: Imbalanced learning refers to the challenge of training machine learning models on datasets where the classes are not represented equally. This can lead to biased models that perform well on the majority class but poorly on the minority class.

Class Weight Class weight is a technique used to address class imbalance by assigning different weights to each class during training. The idea is to give more weight to the minority class and less weight to the majority class.

Key Considerations 1. Class weight calculation: Weights can be calculated based on class frequency or other heuristics. 2. Hyperparameter tuning: Class weights can be tuned as hyperparameters during model training. 3. Evaluation metrics: Metrics like F1-score, precision, and recall are often used to evaluate model performance on imbalanced datasets.

Techniques 1. Oversampling: Oversampling the minority class to balance the dataset. 2. Undersampling: Undersampling the majority class to balance the dataset. 3. SMOTE: Synthetic Minority Over-sampling Technique (SMOTE) generates synthetic samples of the minority class.

Applications 1. Fraud detection: Imbalanced learning is crucial in fraud detection, where the minority class (fraudulent transactions) is often much smaller than the majority class (legitimate transactions). 2. [5/11, 1:41 PM] Meta AI: Imbalanced learning refers to the challenge of training machine learning models on datasets where the classes are not represented equally. This can lead to biased models that perform well on the majority class but poorly on the minority class.

Class Weight Class weight is a technique used to address class imbalance by assigning different weights to each class during training. The idea is to give more weight to the minority class and less weight to the majority class.

Key Considerations 1. Class weight calculation: Weights can be calculated based on class frequency or other heuristics. 2. Hyperparameter tuning: Class weights can be tuned as hyperparameters during model training. 3. Evaluation metrics: Metrics like F1-score, precision, and recall are often used to evaluate model performance on imbalanced datasets.

Techniques 1. Oversampling: Oversampling the minority class to balance the dataset. 2. Undersampling: Undersampling the majority class to balance the dataset. 3. SMOTE: Synthetic Minority Over-sampling Technique (SMOTE) generates synthetic samples of the minority class.

Applications 1. Fraud detection: Imbalanced learning is crucial in fraud detection, where the minority class (fraudulent transactions) is often much smaller than the majority class (legitimate transactions). 2. Medical diagnosis: Imbalanced learning can be applied to medical diagnosis, where the minority class (diseased patients) may be much smaller than the majority class (healthy patients).

Would you like to know more about imbalanced learning or class weight?

bbstats•9mo ago
The only thing that matters is your estimation of how the balance will change out of distribution or with future data etc