Skip to content

Maybe shouldn't make pad with 0? #6

Open
@Wang-Yu-Qing

Description

@Wang-Yu-Qing

When padding the seq of description, the code use default value 0 to pad:

train_embed = keras.preprocessing.sequence.pad_sequences(
    train_embed, maxlen=max_seq_length, padding="post")
test_embed = keras.preprocessing.sequence.pad_sequences(
    test_embed, maxlen=max_seq_length, padding="post")

But in the description encoding process, 0 refer to one specific word. I think maybe use max(encode_value)+1 as padding value?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions