Understanding Mean Squared Error in Neural Networks

AI Thread Summary
Mean Squared Error (MSE) is used in neural networks because it provides a non-zero value that reflects the magnitude of errors, unlike the mean error which can average to zero with alternating positive and negative values. MSE is calculated by squaring the errors, ensuring that all values contribute positively to the final result, thus offering a more useful metric for model evaluation. This approach is similar to using Root Mean Squared (RMS) values in electrical engineering, where squaring negative and positive values yields a meaningful average. The learning algorithm in neural networks concludes when the MSE reaches a predefined threshold, indicating satisfactory model performance. Understanding MSE is crucial for effective training and evaluation of neural network models.
hisham.i
Messages
176
Reaction score
2
In neural network the learning algorithm ends when the mean squared error value is less than or equal to a value we have precised.
But i don't understand why we are comparing with the mean squared error and not the mean error?
What does the mean squared error represent?
 
Engineering news on Phys.org
I'm not sure of the exact answer you require, but if it's anything like using RMS values it's pretty straight forward.

Let's say you have two error values: -1 and 1

The mean error value is 0.
The mean squared error is 1.

If I remember correctly, it is because you have alternating positive and negative values and no matter what you do you end up with 0 as the mean if you simply take the average of the exact values.

For example, with alternating current of 230V (UK standard supply) you have a sin wave with a maximum of +320V and a minimum of -320V. If you average these values you get an average voltage out of your wall socket of 0V - this is of no use to you.

So you use an RMS (Root Mean Squared) value to get a useful value.

In this case you have +320V and -320V. So you square them (+3202 and -320V-2).
Add the squared values together (+320V2+-320V2).
Square root them and then take the mean (Sqrt(+320V2+-320V2))/2.

This then gives you the RMS voltage. For the UK this is ~230V.

So by using a value such as your "squared error" you get a useful answer instead of 0 every time.
 
hisham.i said:
In neural network the learning algorithm ends when the mean squared error value is less than or equal to a value we have precised.
But i don't understand why we are comparing with the mean squared error and not the mean error?
What does the mean squared error represent?

I'm sure you mean the root mean squared error meaning the root of the averaged sum of the squared differences from the averaged value.
 
I have recently moved into a new (rather ancient) house and had a few trips of my Residual Current breaker. I dug out my old Socket tester which tell me the three pins are correct. But then the Red warning light tells me my socket(s) fail the loop test. I never had this before but my last house had an overhead supply with no Earth from the company. The tester said "get this checked" and the man said the (high but not ridiculous) earth resistance was acceptable. I stuck a new copper earth...
Thread 'Electromagnet magnetic field issue'
Hi Guys We are a bunch a mechanical engineers trying to build a simple electromagnet. Our design is based on a very similar magnet. However, our version is about 10 times less magnetic and we are wondering why. Our coil has exactly same length, same number of layers and turns. What is possibly wrong? PIN and bracket are made of iron and are in electrical contact, exactly like the reference design. Any help will be appreciated. Thanks. edit: even same wire diameter and coil was wounded by a...
Hi all I have some confusion about piezoelectrical sensors combination. If i have three acoustic piezoelectrical sensors (with same receive sensitivity in dB ref V/1uPa) placed at specific distance, these sensors receive acoustic signal from a sound source placed at far field distance (Plane Wave) and from broadside. I receive output of these sensors through individual preamplifiers, add them through hardware like summer circuit adder or in software after digitization and in this way got an...
Back
Top