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

Three ModelGroup calls that perform same function #58

Open
slevin886 opened this issue Jul 9, 2020 · 0 comments
Open

Three ModelGroup calls that perform same function #58

slevin886 opened this issue Jul 9, 2020 · 0 comments

Comments

@slevin886
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant