Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Feature scalling/normalization with sparse data

I am having a problem with training a neural network with sparse input data to solve a supervised regression problem. When I perform mean normalization (subtract mean then divide standard deviation) on the input data, I get a lot of NaN values. I am wondering if anyone has experience dealing this kind of problem. What is the correct way to scale the sparse input data?

thanks Joe

like image 678
user1405704 Avatar asked Dec 11 '25 01:12

user1405704


1 Answers

Sounds like your data is so sparse that the standard deviation is occasionally zero.

Test for that, and if so, don't divide your input by it (stdev normalization is not necessary in that case anyway).

like image 172
Junuxx Avatar answered Dec 13 '25 08:12

Junuxx