ArduinoTensorFlowLiteTutorials icon indicating copy to clipboard operation
ArduinoTensorFlowLiteTutorials copied to clipboard

Normalizing sensor data

Open siriusmehta opened this issue 4 years ago • 1 comments

Hi @all ,

I just tried training a model for Punch/Flex gesture and was not able to understand why are we adding 4 and dividing by 8 similarly for 2000 and 4000 for gx values:

tensor += [ (df['aX'][index] + 4) / 8, (df['aY'][index] + 4) / 8, (df['aZ'][index] + 4) / 8, (df['gX'][index] + 2000) / 4000, (df['gY'][index] + 2000) / 4000, (df['gZ'][index] + 2000) / 4000 ]

If I capture my own custom data will these value change if yes then how we can feed in the right values for normalising the input tensor

Thanks

siriusmehta avatar Mar 16 '21 15:03 siriusmehta

Hi

Thanks,

Finally I get it why we are doing the above math. The numbers 2000 and 4 are coming from the max/min ranges of arduino accelerometer .

siriusmehta avatar Mar 19 '21 10:03 siriusmehta