File tree 2 files changed +1
-3
lines changed
2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ module.exports = {
13
13
'import/no-extraneous-dependencies' : 0 ,
14
14
'lodash/prefer-constant' : 0 ,
15
15
'lodash/prefer-lodash-method' : 0 ,
16
- 'lodash/prefer-invoke-map' : 0 ,
17
16
'lodash/prefer-noop' : 0 ,
18
17
'max-len' : [ 2 , 120 ] ,
19
18
'no-confusing-arrow' : 0 ,
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ const data = _.shuffle(dataset)
30
30
// Settings
31
31
// ----------------------------------------
32
32
33
-
34
33
// Trainer
35
34
const batch = true
36
35
const maxEpochs = 20000
@@ -87,7 +86,7 @@ _.times(trainings, (training) => {
87
86
_ . forEach ( dataset , ( sample ) => {
88
87
console . log ( '' )
89
88
console . log ( ` target: ${ sample . output } ` )
90
- console . log ( ` actual: ${ _ . map ( network . activate ( sample . input ) , n => n . toFixed ( 9 ) ) } ` )
89
+ console . log ( ` actual: ${ _ . invokeMap ( _ . map ( network . activate ( sample . input ) ) , ' toFixed' , 9 ) } ` )
91
90
} )
92
91
} ,
93
92
onFail : ( error , epoch ) => {
You can’t perform that action at this time.
0 commit comments