MCPcopy Index your code
hub / github.com/tensorflow/playground / getCircleLabel

Function getCircleLabel

src/dataset.ts:160–162  ·  view source on GitHub ↗
(p: Point, center: Point)

Source from the content-addressed store, hash-verified

158 let points: Example2D[] = [];
159 let radius = 5;
160 function getCircleLabel(p: Point, center: Point) {
161 return (dist(p, center) < (radius * 0.5)) ? 1 : -1;
162 }
163
164 // Generate positive points inside the circle.
165 for (let i = 0; i < numSamples / 2; i++) {

Callers 1

classifyCircleDataFunction · 0.85

Calls 1

distFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…