Welcome to our Support Center

Mean

Description

Computes the mean of the given values. Type : polymorphic.

 

 

Input parameters

 

 values : array, values to be mean.

 

Output parameters

 

mean : float, result.

Use cases

The mean metric is one of the most fundamental statistics, used in a wide variety of fields and contexts. In machine learning, it is commonly used to calculate the average loss on a data set during model training, or to evaluate the average performance of a model on a test set.

Here are a few specific examples of how the mean metric is used :

    • Model evaluation : in supervised learning, we often calculate the average error over a test set to evaluate a model’s performance. For example, in a regression problem, the Mean Squared Error (MSE) could be used to assess model quality.
    • Image processing : in computer vision, the mean can be used to calculate image statistics, such as the average brightness or color of an image.
    • Social sciences : in the social sciences and research in general, the average is often used to summarize a set of data. For example, we might calculate the average income or average age in a given population.
    • Learning optimization : in training deep learning models, it is common to use a version of gradient descent called “mini-batch stochastic gradient descent”, which updates model weights according to the average error over a small data set (a “batch”).

 

Calculation

The ‘Mean’ metric is a statistical measure that calculates the arithmetic mean of a set of numbers.

 

Example

All these exemples are snippets PNG, you can drop these Snippet onto the block diagram and get the depicted code added to your VI (Do not forget to install HAIBAL library to run it).

Easy to use

Table of Contents