Commit 94ebc6fa authored by Jan Pöppel's avatar Jan Pöppel
Browse files

minor fix for action predictions

parent 5f1b4364
......@@ -40,7 +40,8 @@ export default class Webblocks extends Component {
tw: false,
tg: false,
na: false,
switching: false},
switching: false,
actionPred: false},
aggregates: [],
showComplete: false,
participants: {},
......@@ -392,7 +393,7 @@ export default class Webblocks extends Component {
world_bars.push(<VerticalBarSeries key={key} data={bardata} color={colors[key]} />)
}
if (requests[key] && runResults[key] && runResults[key].actionPredictionList) {
if (requests[key] && runResults[key] && runResults[key].actionPredictionList && runResults[key].actionPredictionList.length > 0) {
actionPredictions[key] = runResults[key].actionPredictionList[stepNr];
}
}
......@@ -516,6 +517,10 @@ export default class Webblocks extends Component {
Switching:
<input id="switchingCheck" type="checkbox" defaultChecked={this.state.requests.switching} checked={this.state.requests.switching} onChange={this.onChangeRequestMethods} />
</div>
<div>
Action Predictions:
<input id="ActionPredCheck" type="checkbox" defaultChecked={this.state.requests.actionPred} checked={this.state.requests.actionPred} onChange={this.onChangeRequestMethods} />
</div>
</div>
</Element>
<Element key="ratings" id="Negative Log-Likelihood">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment