2

I've a set of features within the interval (-1,1). I'm looking for a bijective function or a procedure to normalize the data to a certain range with a mean close to 0 and a variance close to 1.

It's very import that the function is bijective since I need the features normalized as input for a neutral network with tanh activation function. My process would be to in-memory transform the data, feed them to the net and to transform the network result back to the initial scale.

1 Answer 1

2

This normalization task is quite usual in neural network aplications. The most common approach is to simply compute the mean and the standard deviation of your data and store that values in your training program. So the pipeline for your data is then:

  1. Compute mean and sd of your input data and store it in memory.
  2. Apply normalizing transformation : normed_data = (data - mean) / sd.
  3. Train / evaluate / use the network.
  4. Denormalize data using : original_data = (normed_data * sd) + mean.

I wrote a longer post on data normalization. You may read it here.

Sign up to request clarification or add additional context in comments.

2 Comments

Thank you for your answer. I just realized transformation function Phi can be applied in this case as well. Before, I just knew that it is used to transform, standardize normal distributed data to use the normal distribution tables.
You said in your post that it is necessary to calculate the mean and std. deviation for the Ys, the outputs, as well. Could you please explain the reason? Let's consider following example: A sample is a set S of random numbers of a specific interval (x0,x1). The input xi and also the target yj is always a subset of S. The inputs are chosen by a sequence from n to m-1 and the target is m. Does the separate calculation of the mean and std. deviation apply in this chase as well?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.