MCPcopy
hub / github.com/tensorflow/tfjs / standardizeClassWeights

Function standardizeClassWeights

tfjs-layers/src/engine/training_utils.ts:93–98  ·  view source on GitHub ↗
(
    classWeight: ClassWeight|ClassWeight[]|ClassWeightMap,
    outputNames: string[])

Source from the content-addressed store, hash-verified

91 * the model's number of outputs.
92 */
93export function standardizeClassWeights(
94 classWeight: ClassWeight|ClassWeight[]|ClassWeightMap,
95 outputNames: string[]): ClassWeight[] {
96 return standardizeSampleOrClassWeights(
97 classWeight, outputNames, 'classWeight');
98}
99
100export function standardizeSampleWeights(
101 classWeight: ClassWeight|ClassWeight[]|ClassWeightMap,

Callers 3

standardizeUserDataMethod · 0.90
fitDatasetFunction · 0.90

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…