in reply to Improving the Nested For Loop
In addition what the fellow monks advised above already, you do calculate the mean and the standard deviation of each category many times. You can save some time by doing it only once and store the results (e.g. while loading the data). You could also standardize your data (by subtracting the mean and dividing by the standard deviation) which also takes out the repeated calculation of mean and standard deviation in your nested loop.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Improving the Nested For Loop
by CountZero (Bishop) on Sep 02, 2014 at 21:31 UTC |