Skip to content
This repository was archived by the owner on Nov 8, 2018. It is now read-only.
This repository was archived by the owner on Nov 8, 2018. It is now read-only.

LSTM with DIST keras : Weight doesn't get updated #78

@omar-sadiqi

Description

@omar-sadiqi

LSTM with DIST Keras :
the problem is with preprocessing the sparkDF for the model :
schema of the DF : each line have two matrix : FALSE and TRUE ( autocorrection )

schema = StructType([StructField('TRUE',ArrayType(ArrayType(IntegerType()), True)) , StructField('FALSE',ArrayType(ArrayType(IntegerType()), True))])**

reshape_transformer = ReshapeTransformer("TRUE", "TRUE_", (MAX_LEN , LEN))
reshape_transformer_ = ReshapeTransformer("FALSE", "FALSE_", (MAX_LEN , LEN))

trainer = AEASGD(model, optimizer, loss, metrics=["accuracy"], num_workers=num_workers, batch_size=120,features_col="FALSE_", label_col="TRUE_", num_epoch=2,communication_window=32, rho=5.0, learning_rate=0.01)

weights doesn't get updated
HELP

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