this post was submitted on 08 Feb 2024
706 points (99.3% liked)

Programmer Humor

32495 readers
377 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Kajika@lemmy.ml 80 points 9 months ago (9 children)

Took me 2 hours to find out why the final output of a neural network was a bunch of NaN. This is always very annoying but I can't really complain, it make sense. Just sucks.

[–] flying_sheep@lemmy.ml 13 points 9 months ago (7 children)

I guess you can always just add an assert not data.isna().any() in strategic locations

[–] Omega_Haxors@lemmy.ml 3 points 9 months ago* (last edited 9 months ago) (1 children)

If (var.nan){var = 0} my beloved.

[–] hangukdise@lemmy.ml 2 points 9 months ago

It also depends on the context

load more comments (5 replies)
load more comments (6 replies)