Urgent.News

What's breaking now, across thousands of outlets.

Tech

How does a network know it's wrong?

Loss functions turn every mistake into one number. Here's how squared and absolute loss score the same misses very differently. A neural network can't feel embarrassed when it's wrong. It needs a way to measure its mistakes, so it knows which direction to improve. That measurement is the loss function. It turns all of a network's errors into a single number, and training is the process of pushing…

A network learns by striving to minimize a single number, which is the result of a loss function. This number is the sum of all the network's errors compared to the correct answers. Squared loss and absolute loss are two common types of loss functions. Squared loss squares each error before adding them up, which makes it highly sensitive to large errors.

Absolute loss, on the other hand, simply adds up the size of each error without squaring it. This makes absolute loss less sensitive to outliers, as a single large error will not have as significant an impact on the total loss. During training, the network adjusts its weights, taking small steps to reduce the loss number. The type of loss function chosen influences what the network cares about most - whether it's big mistakes or all errors equally.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Account Updater Is Not a Dunning Strategy: A Braintree Checklist

Braintree's Account Updater is genuinely useful, and that is exactly why it causes a particular kind of trouble: teams enable it, watch a share of failing cards quietly heal themselves, and conclude…

  • Categorize failed transactions by decline type, not date
  • Evaluate updater's effectiveness by tracking resolved card-related failures
  • Examine retry logic and its impact on payment attempts

Amazon ECS Gateway: Beanstalk for ingress for your ECS services

If you've ever published a service on ECS, you know the list: an Application Load Balancer, a listener, a target group, a certificate on ACM, security groups, maybe a web ACL from WAF, and getting…

  • Amazon ECS Gateway, announced Oct 20, 2026, simplifies HTTPS access to ECS services.
  • Gateway automatically configures infrastructure and creates HTTPS entry for each service.

Ghost Farmer: An offline Ancestor Farmer powered by Gemma

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine What I Built Ghost Farmer is an offline chatbot that channels the spirit of an ancestor farmer to…

  • Ghost Farmer is offline chatbot for farming advice
  • Utilizes Gemma 3:1B model running locally via Ollama
  • Family memories stored in stories.txt file

More from Saturday 31 October →