Skip to content

Three ModelGroup calls that perform same function #58

@slevin886

Description

@slevin886

The three model class calls below all provide status (the last also shows progress %)- you can likely just get rid of GetModelGroupSelectedModelStatus because it serves no unique function OR it might make sense to have GetModelGroup also show progress and then you could eliminate both GetModelGroupSelectedModelStatus and GetTrainingModelWithProgress. This would help simplify the API while not eliminating any functionality.

mg = client.call(GetModelGroup(1309))
print(mg.status)
# 'COMPLETE'
status = client.call(GetModelGroupSelectedModelStatus(1309))
print(status)
# 'COMPLETE'
progress = client.call(GetTrainingModelWithProgress(1309))
print(progress.status)
print(progress.training_progress.percent_complete)
# 'COMPLETE' 100.0

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