Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Show error message when final result doesn't have default metric #2162

Merged
merged 5 commits into from
Mar 25, 2020
Merged

Show error message when final result doesn't have default metric #2162

merged 5 commits into from
Mar 25, 2020

Conversation

Lijiaoa
Copy link
Contributor

@Lijiaoa Lijiaoa commented Mar 18, 2020

image

}

getFinalDataFormat = (): void => {
for(let i = 0; this.state.isilLegalFinal === false; i++){
if(TRIALS.succeededTrials()[0] !== undefined && TRIALS.succeededTrials()[0].final !== undefined){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if we don't have succeeded trials?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line 64, quit for loop.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean TRIALS.succeddedTrials() will return an empty array, right? What happens to x[0] if x is an empty array?

}

getFinalDataFormat = (): void => {
for(let i = 0; this.state.isilLegalFinal === false; i++){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ilLegal? Really? Should be illegal.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

trialsUpdateBroadcast,
metricGraphMode, changeMetricGraphMode: this.changeMetricGraphMode
interval,
columnList, changeColumn: this.changeColumn,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't change indentation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@Lijiaoa
Copy link
Contributor Author

Lijiaoa commented Mar 18, 2020

fix issue #1724 #2087

@liuzhe-lz liuzhe-lz closed this Mar 23, 2020
@liuzhe-lz liuzhe-lz reopened this Mar 23, 2020
@liuzhe-lz liuzhe-lz merged commit d1d1e91 into microsoft:master Mar 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants