Skip to content

Commit

Permalink
correctly label new prediction output format
Browse files Browse the repository at this point in the history
  • Loading branch information
jzerbe committed Nov 15, 2020
1 parent e4d87f5 commit 1b6dc6c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,10 @@ const main = async () => {
const outputData = lodash.map(
inputData,
(inputDataBar) => {
const features = inputDataBar[1]
const labeledObject = {}

for (let featureIndex = 0; featureIndex < features.length; featureIndex += 1) {
labeledObject[featureLabels[featureIndex]] = features[featureIndex]
for (let featureIndex = 0; featureIndex < featureLabels.length; featureIndex += 1) {
labeledObject[featureLabels[featureIndex]] = inputDataBar[featureIndex + 1]
}

return [inputDataBar[0], labeledObject]
Expand Down

0 comments on commit 1b6dc6c

Please sign in to comment.