Skip to content

Normalizing sensor data #27

Open
Open
@siriusmehta

Description

@siriusmehta

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

Activity

siriusmehta

siriusmehta commented on Mar 19, 2021

@siriusmehta
Author

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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @siriusmehta

        Issue actions

          Normalizing sensor data · Issue #27 · arduino/ArduinoTensorFlowLiteTutorials