File tree Expand file tree Collapse file tree
neuralNet/server/neuralNet Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ module.exports = {
7272 } else {
7373 defaulted = 'defaulted' ;
7474 }
75- var prediction = data [ observation ] 'prediction' ] [ 'defaulted' ] ;
75+ var prediction = data [ observation ] [ 'prediction' ] [ 'defaulted' ] ;
7676
7777 if ( verbose === true ) {
7878 console . log ( 'Person number ' + observation + ': ' + prediction + ' predicted probability of defaulting but actually ' + defaulted ) ;
@@ -113,7 +113,7 @@ module.exports = {
113113 formattedObservation . features = { } ;
114114 formattedObservation . output = { } ;
115115
116- formattedObsrvation . output . defaulted = observation . SeriousDlqin2yrs ;
116+ formattedObservation . output . defaulted = observation . SeriousDlqin2yrs ;
117117
118118
119119 //YOUR CODE HERE TO USE DIFFERENT FEAUTURES//
@@ -124,7 +124,7 @@ module.exports = {
124124 formattedObservation . features . utilizationRate = 0.2
125125 }
126126
127- formattedResults . push ( obs ) ;
127+ formattedResults . push ( formattedObservation ) ;
128128 }
129129 console . log ( 'Finished formatting the data' ) ;
130130 return formattedResults ;
You can’t perform that action at this time.
0 commit comments