* Returns integer position of the largest value in the Series. * @example * ``` * const sf = new Series([3, 1, 2]); * const sf2 = sf.argMax(); * console.log(sf2); * //output 0 * ``` *
()
| 1653 | * |
| 1654 | */ |
| 1655 | argMax(): number { |
| 1656 | return this.tensor.argMax().arraySync() as number |
| 1657 | } |
| 1658 | |
| 1659 | |
| 1660 | /** |