Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.
This repository was archived by the owner on May 9, 2024. It is now read-only.

TF Dataset to TF Examples List in FDW Utils: Can't handle sparse tensors / empty values #33

@CLSchmitz

Description

@CLSchmitz

Datasets where a column relevant to FDW (specifically, a column to slice on) contains empty values throw errors in one of two places:

  • If the dataset feature map contains VarLenFeatures, empty sparse tensors are created for them. The error is then in the dataset to example list function: SparseTensor has no attr .numpy().

  • If they're converted to empty dense tensors using tf.sparse.to_dense, the error is thrown the first time an empty value is read: list index (0) out of range [while running 'Filter slices by False']

This issue is worth addressing because the slicing columns needn't necessarily have been used for training - in fact for ethical reasons often may not have been - and therefore handling missing values isn't required by the training process.

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

    Issue actions