Skip to content

Commit

Permalink
Add scoring time to comparison table.
Browse files Browse the repository at this point in the history
PP-135
  • Loading branch information
lo5 committed Jun 15, 2014
1 parent 0a26fe6 commit 1d1ae15
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions client/src/scripts/scoring-sheet-view.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,23 @@ metricVariables.push

metricVariables.push
id: uniqueId()
name: 'trainingDuration'
caption: 'Time (ms)'
name: 'trainingTime'
caption: 'Training Time (ms)'
type: 'integer'
read: (metric) -> metric.model.training_duration_in_ms
format: formatInteger
domain: [ 0, 1 ]
extent: []

metricVariables.push
id: uniqueId()
name: 'scoringTime'
caption: 'Scoring Time (ms)'
type: 'integer'
read: (metric) -> metric.data.duration_in_ms
format: formatInteger
domain: [ 0, 1 ]
extent: []

metricVariables.push
id: uniqueId()
Expand Down Expand Up @@ -887,7 +896,7 @@ Steam.ScoringSheetView = (_, _scorings) ->
if _sortAscending then a > b else b > a

columnVariables = clone _filteredMetricVariables
columnVariables.splice.apply columnVariables, flatten [ 7, 0, _filteredInputVariables ]
columnVariables.splice.apply columnVariables, flatten [ 8, 0, _filteredInputVariables ]

headers = map columnVariables, (variable) ->
tag = if variable isnt _sortByVariable then th else if _sortAscending then thAsc else thDesc
Expand Down

0 comments on commit 1d1ae15

Please sign in to comment.