* * @param log * if a method is passed in method is used * if false passed in nothing is logged * @returns error
(log)
| 350 | * @returns error |
| 351 | */ |
| 352 | _setLogMethod(log) { |
| 353 | if (typeof log === 'function'){ |
| 354 | this.trainOpts.log = log; |
| 355 | } else if (log) { |
| 356 | this.trainOpts.log = console.log; |
| 357 | } else { |
| 358 | this.trainOpts.log = false; |
| 359 | } |
| 360 | } |
| 361 | |
| 362 | /** |
| 363 | * |
no outgoing calls
no test coverage detected