Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MultiAEMessage constructor #780

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def on_data(self, message: MultiDFPMessage):
model.fit(train_df, epochs=self._epochs, val=validation_df, run_validation=run_validation)
logger.debug("Training AE model for user: '%s'... Complete.", user_id)

output_message = MultiAEMessage(message.meta,
output_message = MultiAEMessage(meta=message.meta,
mess_offset=message.mess_offset,
mess_count=message.mess_count,
model=model)
Expand Down
9 changes: 4 additions & 5 deletions morpheus/messages/multi_ae_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,17 @@ class MultiAEMessage(MultiMessage):
"""

model: AutoEncoder
# train_loss_scores: cp.ndarray
train_scores_mean: float = 0.0
train_scores_std: float = 1.0
train_scores_mean: float
train_scores_std: float

def __init__(self,
*,
meta: MessageMeta,
mess_offset: int = 0,
mess_count: int = -1,
model: AutoEncoder,
train_scores_mean: float,
train_scores_std: float):
train_scores_mean: float = 0.0,
train_scores_std: float = 1.0):
super().__init__(meta=meta, mess_offset=mess_offset, mess_count=mess_count)

self.model = model
Expand Down