Skip to content
This repository was archived by the owner on Jul 6, 2022. It is now read-only.
This repository was archived by the owner on Jul 6, 2022. It is now read-only.

problem when use to https://aws.amazon.com/blogs/mobile/predictive-maintenance-with-aws-iot-and-amazon-machine-learning/ #3

@kradanfi

Description

@kradanfi

when i use command python emit_to_AWS_IoT.py sim_pred_maint_emit.csv from guild is have a miss take
Traceback (most recent call last):
File "mtrand.pyx", line 1111, in mtrand.RandomState.choice (numpy\random\mtrand\mtrand.c:16976)
TypeError: 'dict_keys' object cannot be interpreted as an integer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "e:\4D\aws\emit_to_AWS_IoT.py", line 41, in
emit_to_iot(args.datafile)
File "e:\4D\aws\emit_to_AWS_IoT.py", line 23, in emit_to_iot
group = np.random.choice(list_of_groups.keys())
File "mtrand.pyx", line 1113, in mtrand.RandomState.choice (numpy\random\mtrand\mtrand.c:17060)
ValueError: a must be 1-dimensional or an integer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions