MCPcopy
hub / github.com/tensorflow/playground / getXORLabel

Function getXORLabel

src/dataset.ts:192–192  ·  view source on GitHub ↗
(p: Point)

Source from the content-addressed store, hash-verified

190export function classifyXORData(numSamples: number, noise: number):
191 Example2D[] {
192 function getXORLabel(p: Point) { return p.x * p.y >= 0 ? 1 : -1; }
193
194 let points: Example2D[] = [];
195 for (let i = 0; i < numSamples; i++) {

Callers 1

classifyXORDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…