1window.initFeatureExamplesLogits = function({renderAll, visState, sel}) { 2 renderAll.feature.fns.push(async () => { 3 let { top_logits, bottom_logits } = visState.feature; 4 if (!top_logits?.length && !bottom_logits?.length) return; 5 6 var containerSel = sel.select('.feature-example-logits').html('') 7 containerSel.append('div.section-title').text('Token Predictions') 8 // containerSel.parent().st({position: 'sticky', top: 0}) 9 10 for (let [rowName, logits] of [['Top', top_logits], ['Bottom', bottom_logits]]) { 11 if (!logits?.length) continue; 12 13 var row = containerSel.append('div.ctx-container') 14 row.append('div.logit-label').text(rowName) 15 16 row.appendMany('span.token', logits).text(d => d) 17 } 18 }) 19} 20 21window.init?.()
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.