Skip to content

Commit 86fd05a

Browse files
committed
chore(eslint): enable prefer-invoke-map
1 parent 358a429 commit 86fd05a

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

.eslintrc.js

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ module.exports = {
1313
'import/no-extraneous-dependencies': 0,
1414
'lodash/prefer-constant': 0,
1515
'lodash/prefer-lodash-method': 0,
16-
'lodash/prefer-invoke-map': 0,
1716
'lodash/prefer-noop': 0,
1817
'max-len': [2, 120],
1918
'no-confusing-arrow': 0,

playground.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ const data = _.shuffle(dataset)
3030
// Settings
3131
// ----------------------------------------
3232

33-
3433
// Trainer
3534
const batch = true
3635
const maxEpochs = 20000
@@ -87,7 +86,7 @@ _.times(trainings, (training) => {
8786
_.forEach(dataset, (sample) => {
8887
console.log('')
8988
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)}`)
9190
})
9291
},
9392
onFail: (error, epoch) => {

0 commit comments

Comments
 (0)