MCPcopy Create free account
hub / github.com/javascriptdata/danfojs / argMax

Method argMax

src/danfojs-base/core/series.ts:1655–1657  ·  view source on GitHub ↗

* 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 * ``` *

()

Source from the content-addressed store, hash-verified

1653 *
1654 */
1655 argMax(): number {
1656 return this.tensor.argMax().arraySync() as number
1657 }
1658
1659
1660 /**

Callers

nothing calls this directly

Calls 1

argMaxMethod · 0.65

Tested by

no test coverage detected