Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
fix: log rank width no scorer steps (#1409)
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsLiden committed Dec 11, 2019
1 parent b9d0dde commit 8c7c4e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Utils/LogRanker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ function isLastActionInSet(trainDialog: CLM.TrainDialog, actionIds: string[]) {
const lastRound = trainDialog
.rounds[trainDialog.rounds.length - 1]

if (lastRound.scorerSteps.length === 0) {
return false
}
const actionId = lastRound.scorerSteps[lastRound.scorerSteps.length - 1].labelAction
if (!actionId) {
return false
Expand Down

0 comments on commit 8c7c4e7

Please sign in to comment.