Большой мастер-класс:
один нейрон в координатной плоскости

12 июня 2021, автор: Елена Позднякова
Пишем один нейрон с нуля на JavaScript (но можно использовать любой другой язык программирования).
Функционал нейрона: разделение плоскости с помощью прямой (определить, к какой стороне принадлежит любая точка).
Программа для написания кода: Atom.
Выполнение команд: любой браузер.
Обучение нейрона: дельта метод.

Оглавление:

Описание задачи

Интерактивный график
Как работать с графиком:
Шестеренка - Показывать оси
Шестеренка - Настройки - Сетка - Показывать сетку
Настроить видимость, добавить или изменить элементы можно в меню "Алгебра"
Прямая у = 3х + 2 делит плоскость координат на 2 части:
  • левая сторона (значение 0);
  • правая сторона (значение 1).
Сама прямая принадлежит правой стороне.

Цель: по заданным координатам (х,у) определить, к какой стороне принадлежит точка.

Входные данные: х = [ X0, X1, X2 ], где
X0 - нейрон смещения, всегда равен 1
X1 - координата х
Х2 - координата у
Как узнать, какой стороне принадлежит точка, не заглядывая на координатную плоскость?
Прямая а, описанная уравнением у = 3х + 2, делит координатную плоскость на 2 части.
Есть некая точка N с координатами (x, y).
Проведем через точку N прямую h, параллельную оси х. Уравнение этой прямой у=у.
Рассчитаем координату по оси х в точке пересечения прямой h и оси у. Назовем ее х1.
х1 = (у - 2)/3

Сравним х и х1.
Если х меньше х1, точка N находится слева;
если х больше х1, точка N находится справа;
если х равно х1, точка N находится на прямой.
X < X1
X > X1
X = X1
Кликните по изображению, чтобы увеличить
Можем записать это выражением:
Если (х1 - х) > 0, то результат 0, иначе результат 1.

Вместо х1 подставим выражение ( у - 2)/3

ЕСЛИ ((у-2)/3 - х)>0, то 0, иначе 1
(для прямой, описанной уравнением у = 3х+2)

Теперь мы можем определить сторону, к которой относится любая заданная точка, зная только её координаты и не заглядывая на координатную плоскость.
Этот алгоритм использован для подготовки Генератора учебных наборов в Гугл Таблице.

Теперь рассмотрим модель нейрона.

Модель нейрона:

Обучение нейрона:

Наборы данных для обучения нейрона:

Число комбинаций x и у - бесконечно. Для обучения и проверки используются выборки по 1000 элементов. Генерация комбинаций производится случайным образом в выбранных интервалах.

Например:
х=СЛУЧМЕЖДУ(-500;500) у=СЛУЧМЕЖДУ(-500;500).
*СЛУЧМЕЖДУ - это функция из Гугл Таблиц
Набор №1 "Область от -500 до 500"
Массив trainingSet из 1000 примеров, где:
trainingSet[i][0] - нейрон смещения, значение всегда равно 1;
trainingSet[i][1] - координата х, выбрана случайным образом в интервале от -500 до 500;
trainingSet[i][2] - координата у, выбрана случайным образом в интервале от -500 до 500;
trainingSet[i][3] - правильный ответ: сторона, к которой принадлежит точка с заданными координатами.
let trainingSet = [[1,107,-28,1],[1,-229,419,0],[1,62,379,0],[1,-497,58,0],[1,-169,135,0],[1,-238,437,0],[1,-285,-169,0],[1,387,-395,1],[1,-356,-153,0],[1,93,359,0],[1,-275,-55,0],[1,234,-68,1],[1,-131,299,0],[1,-218,2,0],[1,14,92,0],[1,497,-208,1],[1,150,181,1],[1,-85,-76,0],[1,74,375,0],[1,223,38,1],[1,21,-214,1],[1,328,427,1],[1,-403,461,0],[1,419,-149,1],[1,-248,-290,0],[1,-257,125,0],[1,180,147,1],[1,173,79,1],[1,79,299,0],[1,-102,-402,1],[1,-302,-201,0],[1,378,-220,1],[1,-371,-261,0],[1,-481,49,0],[1,233,-314,1],[1,373,-368,1],[1,482,-94,1],[1,47,-59,1],[1,-375,-31,0],[1,-411,-318,0],[1,297,-388,1],[1,-387,345,0],[1,-154,-222,0],[1,99,-219,1],[1,-88,-72,0],[1,117,32,1],[1,340,375,1],[1,-19,160,0],[1,97,-362,1],[1,200,444,1],[1,454,-152,1],[1,-373,-188,0],[1,425,-321,1],[1,-456,300,0],[1,-156,226,0],[1,377,-251,1],[1,-152,-377,0],[1,199,-7,1],[1,-489,98,0],[1,392,-267,1],[1,-359,-101,0],[1,-439,-128,0],[1,-293,108,0],[1,316,-212,1],[1,-209,440,0],[1,261,207,1],[1,-483,-275,0],[1,40,-347,1],[1,-176,-114,0],[1,391,-88,1],[1,373,-273,1],[1,-137,362,0],[1,295,314,1],[1,498,84,1],[1,61,-266,1],[1,429,270,1],[1,-134,-334,0],[1,244,25,1],[1,91,-41,1],[1,94,223,1],[1,-34,-243,1],[1,-97,-293,1],[1,420,52,1],[1,-194,0,0],[1,-485,-274,0],[1,-277,-438,0],[1,-399,-457,0],[1,115,-177,1],[1,115,308,1],[1,-311,79,0],[1,421,-42,1],[1,-283,-481,0],[1,368,127,1],[1,455,-82,1],[1,-80,52,0],[1,-214,-139,0],[1,-265,-481,0],[1,-15,200,0],[1,-446,56,0],[1,393,-271,1],[1,440,33,1],[1,26,125,0],[1,-150,-16,0],[1,-463,-11,0],[1,427,-134,1],[1,-400,347,0],[1,-401,280,0],[1,-356,418,0],[1,366,-26,1],[1,-424,366,0],[1,80,118,1],[1,-90,-442,1],[1,-54,491,0],[1,-170,-245,0],[1,223,-337,1],[1,-466,142,0],[1,-472,379,0],[1,-398,199,0],[1,-23,456,0],[1,-269,-423,0],[1,298,-23,1],[1,481,173,1],[1,307,-118,1],[1,342,91,1],[1,-339,185,0],[1,-174,-396,0],[1,444,405,1],[1,65,243,0],[1,-443,-436,0],[1,-406,-24,0],[1,-12,-222,1],[1,-414,-40,0],[1,-262,-422,0],[1,207,172,1],[1,452,35,1],[1,325,-289,1],[1,-167,482,0],[1,-423,-180,0],[1,-351,384,0],[1,153,97,1],[1,186,160,1],[1,416,8,1],[1,109,-462,1],[1,201,8,1],[1,55,332,0],[1,-326,23,0],[1,345,157,1],[1,-255,440,0],[1,-271,89,0],[1,368,212,1],[1,382,251,1],[1,300,194,1],[1,-477,-298,0],[1,13,140,0],[1,412,438,1],[1,233,29,1],[1,428,8,1],[1,-357,-22,0],[1,-165,-155,0],[1,-377,211,0],[1,369,414,1],[1,-331,441,0],[1,235,352,1],[1,-371,92,0],[1,-320,-202,0],[1,-129,-319,0],[1,-6,-432,1],[1,309,35,1],[1,375,106,1],[1,456,237,1],[1,425,-346,1],[1,-261,-11,0],[1,273,469,1],[1,415,-493,1],[1,202,-376,1],[1,243,39,1],[1,-176,64,0],[1,399,281,1],[1,-114,248,0],[1,-271,-474,0],[1,-241,-284,0],[1,-64,477,0],[1,79,78,1],[1,476,-298,1],[1,297,475,1],[1,102,-324,1],[1,-492,369,0],[1,156,419,1],[1,-277,-14,0],[1,-320,-74,0],[1,-43,-117,0],[1,-446,76,0],[1,-399,-461,0],[1,464,27,1],[1,490,-327,1],[1,212,-98,1],[1,-268,50,0],[1,-450,-203,0],[1,-116,-98,0],[1,186,-377,1],[1,263,104,1],[1,449,-245,1],[1,500,-276,1],[1,215,-206,1],[1,22,426,0],[1,309,310,1],[1,86,31,1],[1,-136,359,0],[1,228,-249,1],[1,-135,-174,0],[1,205,-404,1],[1,-402,491,0],[1,220,182,1],[1,495,-164,1],[1,-26,-205,1],[1,365,413,1],[1,-253,-484,0],[1,376,311,1],[1,-138,-394,0],[1,-57,-312,1],[1,-338,-71,0],[1,-123,85,0],[1,83,23,1],[1,247,414,1],[1,-428,-336,0],[1,168,-490,1],[1,-4,402,0],[1,-205,-146,0],[1,93,42,1],[1,-467,-100,0],[1,-462,464,0],[1,-250,349,0],[1,-79,194,0],[1,23,-412,1],[1,378,-110,1],[1,313,-311,1],[1,-196,426,0],[1,-111,285,0],[1,-76,468,0],[1,-252,-216,0],[1,-126,-8,0],[1,-283,-71,0],[1,-195,-247,0],[1,-6,140,0],[1,-480,368,0],[1,286,451,1],[1,-339,82,0],[1,-362,-415,0],[1,128,-165,1],[1,-29,-340,1],[1,421,-466,1],[1,14,-310,1],[1,-430,278,0],[1,-72,4,0],[1,258,186,1],[1,318,-446,1],[1,287,-365,1],[1,408,76,1],[1,-448,-468,0],[1,-62,-15,0],[1,154,368,1],[1,275,-422,1],[1,50,-479,1],[1,-363,-403,0],[1,118,-372,1],[1,220,-114,1],[1,316,-1,1],[1,-168,35,0],[1,-251,-425,0],[1,221,-488,1],[1,294,-266,1],[1,-13,349,0],[1,437,414,1],[1,-497,-479,0],[1,473,366,1],[1,42,-469,1],[1,-36,273,0],[1,-357,395,0],[1,-285,-211,0],[1,-107,369,0],[1,-438,40,0],[1,473,-62,1],[1,273,500,1],[1,147,33,1],[1,385,-426,1],[1,140,-444,1],[1,-99,377,0],[1,-217,328,0],[1,-494,-455,0],[1,3,-361,1],[1,280,225,1],[1,-115,59,0],[1,215,284,1],[1,57,-145,1],[1,112,165,1],[1,312,-183,1],[1,331,-367,1],[1,217,-138,1],[1,407,-411,1],[1,36,334,0],[1,-234,-219,0],[1,122,324,1],[1,419,20,1],[1,-120,-329,0],[1,338,418,1],[1,64,142,1],[1,-336,-378,0],[1,-439,-268,0],[1,89,415,0],[1,276,-493,1],[1,238,-448,1],[1,268,-38,1],[1,39,397,0],[1,107,-296,1],[1,343,-424,1],[1,499,-335,1],[1,309,177,1],[1,-478,-402,0],[1,-337,-397,0],[1,491,47,1],[1,51,105,1],[1,-30,410,0],[1,-371,-126,0],[1,396,-45,1],[1,452,-267,1],[1,-98,-338,1],[1,183,-464,1],[1,304,321,1],[1,370,94,1],[1,149,176,1],[1,-103,273,0],[1,292,438,1],[1,-171,93,0],[1,-115,-421,1],[1,-347,447,0],[1,-10,-431,1],[1,-315,179,0],[1,156,125,1],[1,146,-42,1],[1,-476,-155,0],[1,263,486,1],[1,-193,494,0],[1,-354,-356,0],[1,311,54,1],[1,-340,138,0],[1,185,-125,1],[1,345,-424,1],[1,-125,-292,0],[1,-282,225,0],[1,145,-118,1],[1,-467,49,0],[1,-211,-252,0],[1,362,267,1],[1,-223,-292,0],[1,-348,440,0],[1,-168,318,0],[1,132,-370,1],[1,-268,-440,0],[1,-96,317,0],[1,-296,340,0],[1,256,482,1],[1,177,-440,1],[1,-234,379,0],[1,-26,9,0],[1,-498,295,0],[1,251,212,1],[1,211,-141,1],[1,438,-78,1],[1,457,-106,1],[1,337,48,1],[1,-123,-1,0],[1,-238,282,0],[1,-481,253,0],[1,-438,265,0],[1,-272,84,0],[1,87,494,0],[1,141,25,1],[1,-207,-27,0],[1,-21,316,0],[1,252,-461,1],[1,310,-145,1],[1,-275,216,0],[1,196,486,1],[1,465,-318,1],[1,310,92,1],[1,-148,39,0],[1,-497,18,0],[1,486,452,1],[1,80,386,0],[1,-219,-284,0],[1,-226,450,0],[1,-102,323,0],[1,333,46,1],[1,-202,-294,0],[1,-452,-163,0],[1,-398,223,0],[1,-282,-258,0],[1,-368,9,0],[1,149,-125,1],[1,463,-214,1],[1,-67,274,0],[1,90,418,0],[1,153,-233,1],[1,-74,275,0],[1,-349,-286,0],[1,-401,-455,0],[1,-79,-14,0],[1,-451,218,0],[1,-450,153,0],[1,-263,-366,0],[1,384,123,1],[1,-455,125,0],[1,-492,-333,0],[1,489,-124,1],[1,-364,-54,0],[1,-93,55,0],[1,258,-120,1],[1,333,401,1],[1,212,-333,1],[1,165,466,1],[1,392,-316,1],[1,256,124,1],[1,64,129,1],[1,-444,489,0],[1,-352,248,0],[1,425,386,1],[1,413,317,1],[1,244,-268,1],[1,-194,458,0],[1,-412,-350,0],[1,-405,174,0],[1,217,-239,1],[1,385,296,1],[1,210,-382,1],[1,-13,131,0],[1,-310,-343,0],[1,-449,499,0],[1,-1,-279,1],[1,-130,180,0],[1,149,430,1],[1,318,17,1],[1,-265,366,0],[1,-161,-396,0],[1,-369,-398,0],[1,119,441,0],[1,259,268,1],[1,-2,-357,1],[1,-455,10,0],[1,367,-465,1],[1,75,-141,1],[1,-310,489,0],[1,27,-332,1],[1,403,-487,1],[1,245,81,1],[1,-14,26,0],[1,-124,-370,1],[1,-431,441,0],[1,191,-163,1],[1,485,-385,1],[1,153,-131,1],[1,-229,470,0],[1,-455,-5,0],[1,233,44,1],[1,-179,-402,0],[1,3,198,0],[1,429,102,1],[1,-245,500,0],[1,215,-123,1],[1,-198,-477,0],[1,402,-71,1],[1,211,53,1],[1,-301,22,0],[1,471,-184,1],[1,-145,-456,1],[1,-291,-341,0],[1,-382,116,0],[1,229,99,1],[1,-190,-164,0],[1,-314,138,0],[1,-482,-126,0],[1,157,191,1],[1,-95,361,0],[1,-5,-59,1],[1,-339,216,0],[1,-97,445,0],[1,-118,-93,0],[1,113,-226,1],[1,68,162,1],[1,-340,-193,0],[1,24,394,0],[1,420,296,1],[1,-330,109,0],[1,-178,401,0],[1,-226,-386,0],[1,32,173,0],[1,-333,73,0],[1,89,-276,1],[1,295,-174,1],[1,79,-221,1],[1,-149,271,0],[1,-485,-107,0],[1,-212,419,0],[1,-380,-335,0],[1,493,258,1],[1,135,13,1],[1,216,-322,1],[1,-349,-265,0],[1,366,-104,1],[1,362,-73,1],[1,466,227,1],[1,-270,-242,0],[1,-394,-353,0],[1,317,78,1],[1,128,-196,1],[1,-154,426,0],[1,422,5,1],[1,-397,157,0],[1,-240,-76,0],[1,49,-300,1],[1,97,427,0],[1,-201,-454,0],[1,-35,363,0],[1,236,-428,1],[1,369,-229,1],[1,149,314,1],[1,-388,-421,0],[1,230,-305,1],[1,-33,90,0],[1,486,-372,1],[1,306,-43,1],[1,-39,-428,1],[1,100,-418,1],[1,430,58,1],[1,-478,140,0],[1,109,104,1],[1,-336,-305,0],[1,287,148,1],[1,-81,-93,0],[1,58,350,0],[1,256,-405,1],[1,-119,36,0],[1,-55,-303,1],[1,383,268,1],[1,404,-265,1],[1,-236,-346,0],[1,280,352,1],[1,383,108,1],[1,8,-181,1],[1,-152,219,0],[1,-415,-324,0],[1,347,-197,1],[1,-330,242,0],[1,-447,303,0],[1,-269,154,0],[1,380,453,1],[1,444,-14,1],[1,-47,-202,1],[1,-63,-499,1],[1,-439,486,0],[1,-446,55,0],[1,261,412,1],[1,287,-201,1],[1,180,-377,1],[1,-178,-266,0],[1,240,212,1],[1,-365,-404,0],[1,-437,89,0],[1,-196,366,0],[1,-259,-107,0],[1,253,-243,1],[1,-237,-157,0],[1,214,-131,1],[1,-354,79,0],[1,464,-221,1],[1,-17,-213,1],[1,-253,-56,0],[1,-46,-30,0],[1,133,3,1],[1,177,-9,1],[1,304,-275,1],[1,-413,115,0],[1,94,404,0],[1,-324,-13,0],[1,478,-294,1],[1,-198,-144,0],[1,-466,-336,0],[1,58,118,1],[1,366,-106,1],[1,-276,312,0],[1,-111,-189,0],[1,-257,-300,0],[1,-61,488,0],[1,-354,329,0],[1,22,-1,1],[1,-77,-474,1],[1,-309,-152,0],[1,201,-51,1],[1,358,-53,1],[1,-458,-171,0],[1,-177,196,0],[1,407,369,1],[1,123,151,1],[1,-10,402,0],[1,-24,211,0],[1,-90,218,0],[1,81,190,1],[1,57,-41,1],[1,396,-280,1],[1,439,293,1],[1,-50,408,0],[1,-498,242,0],[1,454,-283,1],[1,-415,-476,0],[1,210,-235,1],[1,243,-458,1],[1,-321,249,0],[1,-395,52,0],[1,153,-97,1],[1,-189,-430,0],[1,-229,111,0],[1,-231,-226,0],[1,-153,300,0],[1,204,-425,1],[1,-393,-120,0],[1,219,-372,1],[1,133,-23,1],[1,-326,-333,0],[1,-93,-486,1],[1,-43,168,0],[1,-90,347,0],[1,318,131,1],[1,66,-309,1],[1,-224,-306,0],[1,-247,-346,0],[1,-450,312,0],[1,-384,33,0],[1,477,338,1],[1,301,-12,1],[1,-320,370,0],[1,-50,-365,1],[1,-324,-22,0],[1,-6,-65,1],[1,-160,-232,0],[1,200,-387,1],[1,-107,-148,0],[1,460,-184,1],[1,462,-121,1],[1,-354,-70,0],[1,328,-10,1],[1,242,-128,1],[1,336,-488,1],[1,-390,431,0],[1,-11,404,0],[1,-350,-100,0],[1,64,464,0],[1,-427,-182,0],[1,335,54,1],[1,206,-369,1],[1,353,431,1],[1,152,316,1],[1,-361,220,0],[1,-461,-447,0],[1,173,-249,1],[1,-322,-141,0],[1,-320,-195,0],[1,-374,-9,0],[1,298,479,1],[1,309,2,1],[1,103,-487,1],[1,-83,-6,0],[1,78,219,1],[1,37,130,0],[1,95,-407,1],[1,274,-8,1],[1,-356,42,0],[1,467,202,1],[1,-444,1,0],[1,-370,228,0],[1,-132,-495,1],[1,-49,-1,0],[1,12,456,0],[1,-94,-300,1],[1,-437,490,0],[1,-459,-214,0],[1,-89,-190,0],[1,73,-270,1],[1,370,139,1],[1,181,345,1],[1,-185,-411,0],[1,178,270,1],[1,-300,-355,0],[1,-204,-408,0],[1,207,320,1],[1,-199,-230,0],[1,-58,8,0],[1,217,385,1],[1,279,-492,1],[1,-327,-214,0],[1,-177,184,0],[1,356,-381,1],[1,153,-273,1],[1,114,443,0],[1,488,234,1],[1,-268,499,0],[1,395,289,1],[1,-442,-411,0],[1,354,177,1],[1,186,-369,1],[1,-408,406,0],[1,-319,-239,0],[1,294,262,1],[1,-397,-315,0],[1,-1,-397,1],[1,-485,17,0],[1,-14,276,0],[1,-427,457,0],[1,-39,338,0],[1,-453,374,0],[1,-427,329,0],[1,156,-433,1],[1,-116,457,0],[1,-39,-193,1],[1,-81,287,0],[1,360,469,1],[1,33,192,0],[1,99,-252,1],[1,-194,-366,0],[1,-482,61,0],[1,312,-207,1],[1,-282,-417,0],[1,411,103,1],[1,454,56,1],[1,500,-169,1],[1,-184,-101,0],[1,259,-156,1],[1,238,132,1],[1,114,419,0],[1,-375,158,0],[1,-344,247,0],[1,391,67,1],[1,193,309,1],[1,-94,-7,0],[1,282,-201,1],[1,-458,262,0],[1,-200,-102,0],[1,-229,-413,0],[1,227,-489,1],[1,-30,-475,1],[1,-3,-350,1],[1,138,417,0],[1,265,-482,1],[1,-92,-469,1],[1,346,362,1],[1,327,209,1],[1,-439,429,0],[1,218,118,1],[1,-252,-23,0],[1,469,135,1],[1,339,-118,1],[1,-191,463,0],[1,-409,391,0],[1,170,88,1],[1,232,-436,1],[1,213,235,1],[1,-321,-237,0],[1,284,419,1],[1,216,-401,1],[1,-192,6,0],[1,435,416,1],[1,-231,-383,0],[1,0,-128,1],[1,-461,-427,0],[1,201,289,1],[1,344,289,1],[1,-242,314,0],[1,375,338,1],[1,220,292,1],[1,25,189,0],[1,-129,-409,1],[1,386,-413,1],[1,86,-421,1],[1,-235,236,0],[1,153,-14,1],[1,83,329,0],[1,24,-7,1],[1,31,180,0],[1,-338,438,0],[1,-441,287,0],[1,335,388,1],[1,-383,67,0],[1,-204,-113,0],[1,73,-128,1],[1,-242,-415,0],[1,-35,-318,1],[1,-199,64,0],[1,-67,163,0],[1,296,18,1],[1,-36,-43,0],[1,260,-167,1],[1,-72,422,0],[1,246,-89,1],[1,-444,-306,0],[1,357,34,1],[1,103,270,1],[1,-179,41,0],[1,439,24,1],[1,-53,-474,1],[1,363,415,1],[1,-273,-338,0],[1,-154,-258,0],[1,-464,-197,0],[1,267,-290,1],[1,-470,209,0],[1,-323,31,0],[1,296,104,1],[1,362,464,1],[1,449,-232,1],[1,200,111,1],[1,133,432,0],[1,-405,64,0],[1,462,108,1],[1,207,29,1],[1,-336,264,0],[1,-338,461,0],[1,268,271,1],[1,-240,171,0],[1,-328,27,0],[1,-382,-483,0],[1,-329,355,0],[1,-410,33,0],[1,230,-411,1],[1,-260,-11,0],[1,448,107,1],[1,-175,490,0],[1,235,157,1],[1,399,-279,1],[1,-415,401,0],[1,-47,62,0],[1,-458,-84,0],[1,-333,-313,0],[1,80,497,0],[1,-161,-309,0],[1,200,-286,1],[1,496,-363,1],[1,150,219,1],[1,178,118,1],[1,-414,-123,0],[1,-486,467,0],[1,-215,-169,0],[1,-48,265,0],[1,394,-28,1],[1,18,-98,1],[1,78,446,0],[1,388,-57,1],[1,452,-27,1],[1,166,-289,1],[1,-357,261,0],[1,372,-207,1],[1,391,-179,1],[1,253,476,1],[1,-248,-229,0],[1,-473,-361,0],[1,2,-215,1],[1,-281,-125,0],[1,-483,401,0],[1,-51,295,0],[1,-59,430,0],[1,-332,-416,0],[1,-430,-372,0],[1,127,474,0],[1,130,197,1],[1,-167,98,0],[1,193,-172,1],[1,-291,-367,0],[1,-225,-192,0],[1,285,248,1],[1,-196,476,0],[1,-407,456,0],[1,479,-259,1],[1,-297,-241,0],[1,21,297,0],[1,287,227,1],[1,266,19,1],[1,-295,-113,0],[1,256,242,1],[1,-408,-479,0],[1,-267,421,0],[1,-480,97,0],[1,-26,-150,1],[1,475,477,1],[1,-307,19,0],[1,317,-204,1],[1,261,-286,1],[1,372,402,1],[1,-147,-367,0],[1,-401,286,0],[1,314,252,1],[1,334,-344,1],[1,94,384,0],[1,418,-497,1],[1,-136,-70,0],[1,91,-488,1],[1,-153,57,0],[1,-470,-369,0],[1,264,416,1],[1,-419,199,0],[1,-65,376,0],[1,325,269,1],[1,180,-129,1],[1,-497,441,0],[1,-29,-397,1],[1,31,-231,1],[1,402,-247,1],[1,208,-411,1],[1,106,130,1],[1,-316,258,0],[1,275,18,1],[1,-435,-135,0],[1,446,-184,1],[1,377,7,1],[1,-341,-376,0],[1,-463,336,0],[1,-42,-87,0],[1,-443,160,0],[1,100,-454,1],[1,-197,-7,0],[1,65,310,0],[1,-446,209,0],[1,139,311,1],[1,176,-299,1],[1,385,-286,1],[1,-4,258,0],[1,278,244,1],[1,-475,-161,0],[1,313,131,1],[1,-459,-126,0],[1,142,183,1],[1,-433,181,0],[1,188,-352,1],[1,177,225,1],[1,-192,420,0],[1,211,-62,1],[1,-160,138,0],[1,346,292,1],[1,114,3,1],[1,106,-98,1],[1,196,-90,1],[1,335,179,1],[1,-27,382,0],[1,-350,314,0],[1,427,-219,1],[1,-290,-78,0],[1,406,-483,1],[1,19,436,0],[1,-97,274,0],[1,13,-257,1],[1,4,263,0],[1,-323,-207,0],[1,-224,-126,0],[1,-381,402,0],[1,48,-216,1],[1,469,-303,1],[1,-406,362,0],[1,427,151,1],[1,319,261,1],[1,-428,-6,0],[1,-213,238,0],[1,3,-188,1],[1,-46,-97,0],[1,-416,-86,0],[1,201,190,1],[1,-76,-345,1],[1,354,-411,1],[1,466,-432,1],[1,120,330,1],[1,290,106,1],[1,221,65,1],[1,389,-144,1],[1,378,-287,1],[1,-154,-240,0],[1,327,-320,1],[1,329,-461,1],[1,215,204,1],[1,-310,-154,0],[1,475,121,1],[1,-190,-208,0],[1,-460,365,0],[1,281,57,1],[1,446,456,1],[1,382,-201,1],[1,98,435,0],[1,370,-367,1],[1,410,63,1],[1,252,-127,1],[1,-149,-171,0],[1,495,-335,1],[1,397,-290,1],[1,-3,120,0],[1,-404,-137,0],[1,-104,-118,0]]

Показать весь набор
let trainingSet = [[1,107,-28,1],[1,-229,419,0],[1,62,379,0],[1,-497,58,0],[1,-169,135,0],[1,-238,437,0],[1,-285,-169,0],[1,387,-395,1],[1,-356,-153,0],[1,93,359,0],[1,-275,-55,0],[1,234,-68,1],[1,-131,299,0],[1,-218,2,0],[1,14,92,0],[1,497,-208,1],[1,150,181,1],[1,-85,-76,0],[1,74,375,0],[1,223,38,1],[1,21,-214,1],[1,328,427,1],[1,-403,461,0],[1,419,-149,1],[1,-248,-290,0],[1,-257,125,0],[1,180,147,1],[1,173,79,1],[1,79,299,0],[1,-102,-402,1],[1,-302,-201,0],[1,378,-220,1],[1,-371,-261,0],[1,-481,49,0],[1,233,-314,1],[1,373,-368,1],[1,482,-94,1],[1,47,-59,1],[1,-375,-31,0],[1,-411,-318,0],[1,297,-388,1],[1,-387,345,0],[1,-154,-222,0],[1,99,-219,1],[1,-88,-72,0],[1,117,32,1],[1,340,375,1],[1,-19,160,0],[1,97,-362,1],[1,200,444,1],[1,454,-152,1],[1,-373,-188,0],[1,425,-321,1],[1,-456,300,0],[1,-156,226,0],[1,377,-251,1],[1,-152,-377,0],[1,199,-7,1],[1,-489,98,0],[1,392,-267,1],[1,-359,-101,0],[1,-439,-128,0],[1,-293,108,0],[1,316,-212,1],[1,-209,440,0],[1,261,207,1],[1,-483,-275,0],[1,40,-347,1],[1,-176,-114,0],[1,391,-88,1],[1,373,-273,1],[1,-137,362,0],[1,295,314,1],[1,498,84,1],[1,61,-266,1],[1,429,270,1],[1,-134,-334,0],[1,244,25,1],[1,91,-41,1],[1,94,223,1],[1,-34,-243,1],[1,-97,-293,1],[1,420,52,1],[1,-194,0,0],[1,-485,-274,0],[1,-277,-438,0],[1,-399,-457,0],[1,115,-177,1],[1,115,308,1],[1,-311,79,0],[1,421,-42,1],[1,-283,-481,0],[1,368,127,1],[1,455,-82,1],[1,-80,52,0],[1,-214,-139,0],[1,-265,-481,0],[1,-15,200,0],[1,-446,56,0],[1,393,-271,1],[1,440,33,1],[1,26,125,0],[1,-150,-16,0],[1,-463,-11,0],[1,427,-134,1],[1,-400,347,0],[1,-401,280,0],[1,-356,418,0],[1,366,-26,1],[1,-424,366,0],[1,80,118,1],[1,-90,-442,1],[1,-54,491,0],[1,-170,-245,0],[1,223,-337,1],[1,-466,142,0],[1,-472,379,0],[1,-398,199,0],[1,-23,456,0],[1,-269,-423,0],[1,298,-23,1],[1,481,173,1],[1,307,-118,1],[1,342,91,1],[1,-339,185,0],[1,-174,-396,0],[1,444,405,1],[1,65,243,0],[1,-443,-436,0],[1,-406,-24,0],[1,-12,-222,1],[1,-414,-40,0],[1,-262,-422,0],[1,207,172,1],[1,452,35,1],[1,325,-289,1],[1,-167,482,0],[1,-423,-180,0],[1,-351,384,0],[1,153,97,1],[1,186,160,1],[1,416,8,1],[1,109,-462,1],[1,201,8,1],[1,55,332,0],[1,-326,23,0],[1,345,157,1],[1,-255,440,0],[1,-271,89,0],[1,368,212,1],[1,382,251,1],[1,300,194,1],[1,-477,-298,0],[1,13,140,0],[1,412,438,1],[1,233,29,1],[1,428,8,1],[1,-357,-22,0],[1,-165,-155,0],[1,-377,211,0],[1,369,414,1],[1,-331,441,0],[1,235,352,1],[1,-371,92,0],[1,-320,-202,0],[1,-129,-319,0],[1,-6,-432,1],[1,309,35,1],[1,375,106,1],[1,456,237,1],[1,425,-346,1],[1,-261,-11,0],[1,273,469,1],[1,415,-493,1],[1,202,-376,1],[1,243,39,1],[1,-176,64,0],[1,399,281,1],[1,-114,248,0],[1,-271,-474,0],[1,-241,-284,0],[1,-64,477,0],[1,79,78,1],[1,476,-298,1],[1,297,475,1],[1,102,-324,1],[1,-492,369,0],[1,156,419,1],[1,-277,-14,0],[1,-320,-74,0],[1,-43,-117,0],[1,-446,76,0],[1,-399,-461,0],[1,464,27,1],[1,490,-327,1],[1,212,-98,1],[1,-268,50,0],[1,-450,-203,0],[1,-116,-98,0],[1,186,-377,1],[1,263,104,1],[1,449,-245,1],[1,500,-276,1],[1,215,-206,1],[1,22,426,0],[1,309,310,1],[1,86,31,1],[1,-136,359,0],[1,228,-249,1],[1,-135,-174,0],[1,205,-404,1],[1,-402,491,0],[1,220,182,1],[1,495,-164,1],[1,-26,-205,1],[1,365,413,1],[1,-253,-484,0],[1,376,311,1],[1,-138,-394,0],[1,-57,-312,1],[1,-338,-71,0],[1,-123,85,0],[1,83,23,1],[1,247,414,1],[1,-428,-336,0],[1,168,-490,1],[1,-4,402,0],[1,-205,-146,0],[1,93,42,1],[1,-467,-100,0],[1,-462,464,0],[1,-250,349,0],[1,-79,194,0],[1,23,-412,1],[1,378,-110,1],[1,313,-311,1],[1,-196,426,0],[1,-111,285,0],[1,-76,468,0],[1,-252,-216,0],[1,-126,-8,0],[1,-283,-71,0],[1,-195,-247,0],[1,-6,140,0],[1,-480,368,0],[1,286,451,1],[1,-339,82,0],[1,-362,-415,0],[1,128,-165,1],[1,-29,-340,1],[1,421,-466,1],[1,14,-310,1],[1,-430,278,0],[1,-72,4,0],[1,258,186,1],[1,318,-446,1],[1,287,-365,1],[1,408,76,1],[1,-448,-468,0],[1,-62,-15,0],[1,154,368,1],[1,275,-422,1],[1,50,-479,1],[1,-363,-403,0],[1,118,-372,1],[1,220,-114,1],[1,316,-1,1],[1,-168,35,0],[1,-251,-425,0],[1,221,-488,1],[1,294,-266,1],[1,-13,349,0],[1,437,414,1],[1,-497,-479,0],[1,473,366,1],[1,42,-469,1],[1,-36,273,0],[1,-357,395,0],[1,-285,-211,0],[1,-107,369,0],[1,-438,40,0],[1,473,-62,1],[1,273,500,1],[1,147,33,1],[1,385,-426,1],[1,140,-444,1],[1,-99,377,0],[1,-217,328,0],[1,-494,-455,0],[1,3,-361,1],[1,280,225,1],[1,-115,59,0],[1,215,284,1],[1,57,-145,1],[1,112,165,1],[1,312,-183,1],[1,331,-367,1],[1,217,-138,1],[1,407,-411,1],[1,36,334,0],[1,-234,-219,0],[1,122,324,1],[1,419,20,1],[1,-120,-329,0],[1,338,418,1],[1,64,142,1],[1,-336,-378,0],[1,-439,-268,0],[1,89,415,0],[1,276,-493,1],[1,238,-448,1],[1,268,-38,1],[1,39,397,0],[1,107,-296,1],[1,343,-424,1],[1,499,-335,1],[1,309,177,1],[1,-478,-402,0],[1,-337,-397,0],[1,491,47,1],[1,51,105,1],[1,-30,410,0],[1,-371,-126,0],[1,396,-45,1],[1,452,-267,1],[1,-98,-338,1],[1,183,-464,1],[1,304,321,1],[1,370,94,1],[1,149,176,1],[1,-103,273,0],[1,292,438,1],[1,-171,93,0],[1,-115,-421,1],[1,-347,447,0],[1,-10,-431,1],[1,-315,179,0],[1,156,125,1],[1,146,-42,1],[1,-476,-155,0],[1,263,486,1],[1,-193,494,0],[1,-354,-356,0],[1,311,54,1],[1,-340,138,0],[1,185,-125,1],[1,345,-424,1],[1,-125,-292,0],[1,-282,225,0],[1,145,-118,1],[1,-467,49,0],[1,-211,-252,0],[1,362,267,1],[1,-223,-292,0],[1,-348,440,0],[1,-168,318,0],[1,132,-370,1],[1,-268,-440,0],[1,-96,317,0],[1,-296,340,0],[1,256,482,1],[1,177,-440,1],[1,-234,379,0],[1,-26,9,0],[1,-498,295,0],[1,251,212,1],[1,211,-141,1],[1,438,-78,1],[1,457,-106,1],[1,337,48,1],[1,-123,-1,0],[1,-238,282,0],[1,-481,253,0],[1,-438,265,0],[1,-272,84,0],[1,87,494,0],[1,141,25,1],[1,-207,-27,0],[1,-21,316,0],[1,252,-461,1],[1,310,-145,1],[1,-275,216,0],[1,196,486,1],[1,465,-318,1],[1,310,92,1],[1,-148,39,0],[1,-497,18,0],[1,486,452,1],[1,80,386,0],[1,-219,-284,0],[1,-226,450,0],[1,-102,323,0],[1,333,46,1],[1,-202,-294,0],[1,-452,-163,0],[1,-398,223,0],[1,-282,-258,0],[1,-368,9,0],[1,149,-125,1],[1,463,-214,1],[1,-67,274,0],[1,90,418,0],[1,153,-233,1],[1,-74,275,0],[1,-349,-286,0],[1,-401,-455,0],[1,-79,-14,0],[1,-451,218,0],[1,-450,153,0],[1,-263,-366,0],[1,384,123,1],[1,-455,125,0],[1,-492,-333,0],[1,489,-124,1],[1,-364,-54,0],[1,-93,55,0],[1,258,-120,1],[1,333,401,1],[1,212,-333,1],[1,165,466,1],[1,392,-316,1],[1,256,124,1],[1,64,129,1],[1,-444,489,0],[1,-352,248,0],[1,425,386,1],[1,413,317,1],[1,244,-268,1],[1,-194,458,0],[1,-412,-350,0],[1,-405,174,0],[1,217,-239,1],[1,385,296,1],[1,210,-382,1],[1,-13,131,0],[1,-310,-343,0],[1,-449,499,0],[1,-1,-279,1],[1,-130,180,0],[1,149,430,1],[1,318,17,1],[1,-265,366,0],[1,-161,-396,0],[1,-369,-398,0],[1,119,441,0],[1,259,268,1],[1,-2,-357,1],[1,-455,10,0],[1,367,-465,1],[1,75,-141,1],[1,-310,489,0],[1,27,-332,1],[1,403,-487,1],[1,245,81,1],[1,-14,26,0],[1,-124,-370,1],[1,-431,441,0],[1,191,-163,1],[1,485,-385,1],[1,153,-131,1],[1,-229,470,0],[1,-455,-5,0],[1,233,44,1],[1,-179,-402,0],[1,3,198,0],[1,429,102,1],[1,-245,500,0],[1,215,-123,1],[1,-198,-477,0],[1,402,-71,1],[1,211,53,1],[1,-301,22,0],[1,471,-184,1],[1,-145,-456,1],[1,-291,-341,0],[1,-382,116,0],[1,229,99,1],[1,-190,-164,0],[1,-314,138,0],[1,-482,-126,0],[1,157,191,1],[1,-95,361,0],[1,-5,-59,1],[1,-339,216,0],[1,-97,445,0],[1,-118,-93,0],[1,113,-226,1],[1,68,162,1],[1,-340,-193,0],[1,24,394,0],[1,420,296,1],[1,-330,109,0],[1,-178,401,0],[1,-226,-386,0],[1,32,173,0],[1,-333,73,0],[1,89,-276,1],[1,295,-174,1],[1,79,-221,1],[1,-149,271,0],[1,-485,-107,0],[1,-212,419,0],[1,-380,-335,0],[1,493,258,1],[1,135,13,1],[1,216,-322,1],[1,-349,-265,0],[1,366,-104,1],[1,362,-73,1],[1,466,227,1],[1,-270,-242,0],[1,-394,-353,0],[1,317,78,1],[1,128,-196,1],[1,-154,426,0],[1,422,5,1],[1,-397,157,0],[1,-240,-76,0],[1,49,-300,1],[1,97,427,0],[1,-201,-454,0],[1,-35,363,0],[1,236,-428,1],[1,369,-229,1],[1,149,314,1],[1,-388,-421,0],[1,230,-305,1],[1,-33,90,0],[1,486,-372,1],[1,306,-43,1],[1,-39,-428,1],[1,100,-418,1],[1,430,58,1],[1,-478,140,0],[1,109,104,1],[1,-336,-305,0],[1,287,148,1],[1,-81,-93,0],[1,58,350,0],[1,256,-405,1],[1,-119,36,0],[1,-55,-303,1],[1,383,268,1],[1,404,-265,1],[1,-236,-346,0],[1,280,352,1],[1,383,108,1],[1,8,-181,1],[1,-152,219,0],[1,-415,-324,0],[1,347,-197,1],[1,-330,242,0],[1,-447,303,0],[1,-269,154,0],[1,380,453,1],[1,444,-14,1],[1,-47,-202,1],[1,-63,-499,1],[1,-439,486,0],[1,-446,55,0],[1,261,412,1],[1,287,-201,1],[1,180,-377,1],[1,-178,-266,0],[1,240,212,1],[1,-365,-404,0],[1,-437,89,0],[1,-196,366,0],[1,-259,-107,0],[1,253,-243,1],[1,-237,-157,0],[1,214,-131,1],[1,-354,79,0],[1,464,-221,1],[1,-17,-213,1],[1,-253,-56,0],[1,-46,-30,0],[1,133,3,1],[1,177,-9,1],[1,304,-275,1],[1,-413,115,0],[1,94,404,0],[1,-324,-13,0],[1,478,-294,1],[1,-198,-144,0],[1,-466,-336,0],[1,58,118,1],[1,366,-106,1],[1,-276,312,0],[1,-111,-189,0],[1,-257,-300,0],[1,-61,488,0],[1,-354,329,0],[1,22,-1,1],[1,-77,-474,1],[1,-309,-152,0],[1,201,-51,1],[1,358,-53,1],[1,-458,-171,0],[1,-177,196,0],[1,407,369,1],[1,123,151,1],[1,-10,402,0],[1,-24,211,0],[1,-90,218,0],[1,81,190,1],[1,57,-41,1],[1,396,-280,1],[1,439,293,1],[1,-50,408,0],[1,-498,242,0],[1,454,-283,1],[1,-415,-476,0],[1,210,-235,1],[1,243,-458,1],[1,-321,249,0],[1,-395,52,0],[1,153,-97,1],[1,-189,-430,0],[1,-229,111,0],[1,-231,-226,0],[1,-153,300,0],[1,204,-425,1],[1,-393,-120,0],[1,219,-372,1],[1,133,-23,1],[1,-326,-333,0],[1,-93,-486,1],[1,-43,168,0],[1,-90,347,0],[1,318,131,1],[1,66,-309,1],[1,-224,-306,0],[1,-247,-346,0],[1,-450,312,0],[1,-384,33,0],[1,477,338,1],[1,301,-12,1],[1,-320,370,0],[1,-50,-365,1],[1,-324,-22,0],[1,-6,-65,1],[1,-160,-232,0],[1,200,-387,1],[1,-107,-148,0],[1,460,-184,1],[1,462,-121,1],[1,-354,-70,0],[1,328,-10,1],[1,242,-128,1],[1,336,-488,1],[1,-390,431,0],[1,-11,404,0],[1,-350,-100,0],[1,64,464,0],[1,-427,-182,0],[1,335,54,1],[1,206,-369,1],[1,353,431,1],[1,152,316,1],[1,-361,220,0],[1,-461,-447,0],[1,173,-249,1],[1,-322,-141,0],[1,-320,-195,0],[1,-374,-9,0],[1,298,479,1],[1,309,2,1],[1,103,-487,1],[1,-83,-6,0],[1,78,219,1],[1,37,130,0],[1,95,-407,1],[1,274,-8,1],[1,-356,42,0],[1,467,202,1],[1,-444,1,0],[1,-370,228,0],[1,-132,-495,1],[1,-49,-1,0],[1,12,456,0],[1,-94,-300,1],[1,-437,490,0],[1,-459,-214,0],[1,-89,-190,0],[1,73,-270,1],[1,370,139,1],[1,181,345,1],[1,-185,-411,0],[1,178,270,1],[1,-300,-355,0],[1,-204,-408,0],[1,207,320,1],[1,-199,-230,0],[1,-58,8,0],[1,217,385,1],[1,279,-492,1],[1,-327,-214,0],[1,-177,184,0],[1,356,-381,1],[1,153,-273,1],[1,114,443,0],[1,488,234,1],[1,-268,499,0],[1,395,289,1],[1,-442,-411,0],[1,354,177,1],[1,186,-369,1],[1,-408,406,0],[1,-319,-239,0],[1,294,262,1],[1,-397,-315,0],[1,-1,-397,1],[1,-485,17,0],[1,-14,276,0],[1,-427,457,0],[1,-39,338,0],[1,-453,374,0],[1,-427,329,0],[1,156,-433,1],[1,-116,457,0],[1,-39,-193,1],[1,-81,287,0],[1,360,469,1],[1,33,192,0],[1,99,-252,1],[1,-194,-366,0],[1,-482,61,0],[1,312,-207,1],[1,-282,-417,0],[1,411,103,1],[1,454,56,1],[1,500,-169,1],[1,-184,-101,0],[1,259,-156,1],[1,238,132,1],[1,114,419,0],[1,-375,158,0],[1,-344,247,0],[1,391,67,1],[1,193,309,1],[1,-94,-7,0],[1,282,-201,1],[1,-458,262,0],[1,-200,-102,0],[1,-229,-413,0],[1,227,-489,1],[1,-30,-475,1],[1,-3,-350,1],[1,138,417,0],[1,265,-482,1],[1,-92,-469,1],[1,346,362,1],[1,327,209,1],[1,-439,429,0],[1,218,118,1],[1,-252,-23,0],[1,469,135,1],[1,339,-118,1],[1,-191,463,0],[1,-409,391,0],[1,170,88,1],[1,232,-436,1],[1,213,235,1],[1,-321,-237,0],[1,284,419,1],[1,216,-401,1],[1,-192,6,0],[1,435,416,1],[1,-231,-383,0],[1,0,-128,1],[1,-461,-427,0],[1,201,289,1],[1,344,289,1],[1,-242,314,0],[1,375,338,1],[1,220,292,1],[1,25,189,0],[1,-129,-409,1],[1,386,-413,1],[1,86,-421,1],[1,-235,236,0],[1,153,-14,1],[1,83,329,0],[1,24,-7,1],[1,31,180,0],[1,-338,438,0],[1,-441,287,0],[1,335,388,1],[1,-383,67,0],[1,-204,-113,0],[1,73,-128,1],[1,-242,-415,0],[1,-35,-318,1],[1,-199,64,0],[1,-67,163,0],[1,296,18,1],[1,-36,-43,0],[1,260,-167,1],[1,-72,422,0],[1,246,-89,1],[1,-444,-306,0],[1,357,34,1],[1,103,270,1],[1,-179,41,0],[1,439,24,1],[1,-53,-474,1],[1,363,415,1],[1,-273,-338,0],[1,-154,-258,0],[1,-464,-197,0],[1,267,-290,1],[1,-470,209,0],[1,-323,31,0],[1,296,104,1],[1,362,464,1],[1,449,-232,1],[1,200,111,1],[1,133,432,0],[1,-405,64,0],[1,462,108,1],[1,207,29,1],[1,-336,264,0],[1,-338,461,0],[1,268,271,1],[1,-240,171,0],[1,-328,27,0],[1,-382,-483,0],[1,-329,355,0],[1,-410,33,0],[1,230,-411,1],[1,-260,-11,0],[1,448,107,1],[1,-175,490,0],[1,235,157,1],[1,399,-279,1],[1,-415,401,0],[1,-47,62,0],[1,-458,-84,0],[1,-333,-313,0],[1,80,497,0],[1,-161,-309,0],[1,200,-286,1],[1,496,-363,1],[1,150,219,1],[1,178,118,1],[1,-414,-123,0],[1,-486,467,0],[1,-215,-169,0],[1,-48,265,0],[1,394,-28,1],[1,18,-98,1],[1,78,446,0],[1,388,-57,1],[1,452,-27,1],[1,166,-289,1],[1,-357,261,0],[1,372,-207,1],[1,391,-179,1],[1,253,476,1],[1,-248,-229,0],[1,-473,-361,0],[1,2,-215,1],[1,-281,-125,0],[1,-483,401,0],[1,-51,295,0],[1,-59,430,0],[1,-332,-416,0],[1,-430,-372,0],[1,127,474,0],[1,130,197,1],[1,-167,98,0],[1,193,-172,1],[1,-291,-367,0],[1,-225,-192,0],[1,285,248,1],[1,-196,476,0],[1,-407,456,0],[1,479,-259,1],[1,-297,-241,0],[1,21,297,0],[1,287,227,1],[1,266,19,1],[1,-295,-113,0],[1,256,242,1],[1,-408,-479,0],[1,-267,421,0],[1,-480,97,0],[1,-26,-150,1],[1,475,477,1],[1,-307,19,0],[1,317,-204,1],[1,261,-286,1],[1,372,402,1],[1,-147,-367,0],[1,-401,286,0],[1,314,252,1],[1,334,-344,1],[1,94,384,0],[1,418,-497,1],[1,-136,-70,0],[1,91,-488,1],[1,-153,57,0],[1,-470,-369,0],[1,264,416,1],[1,-419,199,0],[1,-65,376,0],[1,325,269,1],[1,180,-129,1],[1,-497,441,0],[1,-29,-397,1],[1,31,-231,1],[1,402,-247,1],[1,208,-411,1],[1,106,130,1],[1,-316,258,0],[1,275,18,1],[1,-435,-135,0],[1,446,-184,1],[1,377,7,1],[1,-341,-376,0],[1,-463,336,0],[1,-42,-87,0],[1,-443,160,0],[1,100,-454,1],[1,-197,-7,0],[1,65,310,0],[1,-446,209,0],[1,139,311,1],[1,176,-299,1],[1,385,-286,1],[1,-4,258,0],[1,278,244,1],[1,-475,-161,0],[1,313,131,1],[1,-459,-126,0],[1,142,183,1],[1,-433,181,0],[1,188,-352,1],[1,177,225,1],[1,-192,420,0],[1,211,-62,1],[1,-160,138,0],[1,346,292,1],[1,114,3,1],[1,106,-98,1],[1,196,-90,1],[1,335,179,1],[1,-27,382,0],[1,-350,314,0],[1,427,-219,1],[1,-290,-78,0],[1,406,-483,1],[1,19,436,0],[1,-97,274,0],[1,13,-257,1],[1,4,263,0],[1,-323,-207,0],[1,-224,-126,0],[1,-381,402,0],[1,48,-216,1],[1,469,-303,1],[1,-406,362,0],[1,427,151,1],[1,319,261,1],[1,-428,-6,0],[1,-213,238,0],[1,3,-188,1],[1,-46,-97,0],[1,-416,-86,0],[1,201,190,1],[1,-76,-345,1],[1,354,-411,1],[1,466,-432,1],[1,120,330,1],[1,290,106,1],[1,221,65,1],[1,389,-144,1],[1,378,-287,1],[1,-154,-240,0],[1,327,-320,1],[1,329,-461,1],[1,215,204,1],[1,-310,-154,0],[1,475,121,1],[1,-190,-208,0],[1,-460,365,0],[1,281,57,1],[1,446,456,1],[1,382,-201,1],[1,98,435,0],[1,370,-367,1],[1,410,63,1],[1,252,-127,1],[1,-149,-171,0],[1,495,-335,1],[1,397,-290,1],[1,-3,120,0],[1,-404,-137,0],[1,-104,-118,0]]
Набор №2 "Область от -500 до 500"
Массив fullCheckSet из 1000 примеров для проверки.
let fullCheckSet = [[1,288,-425,1],[1,-331,-85,0],[1,67,-415,1],[1,187,459,1],[1,170,-54,1],[1,338,354,1],[1,66,-414,1],[1,-202,274,0],[1,48,-361,1],[1,-184,-298,0],[1,-384,268,0],[1,-225,265,0],[1,-225,-82,0],[1,-452,381,0],[1,189,-409,1],[1,-328,190,0],[1,231,-173,1],[1,6,6,1],[1,-330,489,0],[1,254,-452,1],[1,27,-157,1],[1,122,-183,1],[1,-396,465,0],[1,-164,329,0],[1,147,-22,1],[1,240,-112,1],[1,-337,-137,0],[1,426,-395,1],[1,-374,-493,0],[1,333,321,1],[1,-89,194,0],[1,-492,272,0],[1,-41,164,0],[1,163,43,1],[1,-59,-460,1],[1,316,-255,1],[1,-384,375,0],[1,345,-280,1],[1,160,308,1],[1,272,-90,1],[1,-1,147,0],[1,-4,-457,1],[1,324,455,1],[1,128,-83,1],[1,146,237,1],[1,-249,345,0],[1,-61,-58,0],[1,-50,-272,1],[1,-262,-449,0],[1,465,-430,1],[1,293,337,1],[1,-236,425,0],[1,307,135,1],[1,-183,132,0],[1,-337,354,0],[1,136,394,1],[1,46,-349,1],[1,422,44,1],[1,-223,-298,0],[1,389,474,1],[1,303,46,1],[1,-291,77,0],[1,-354,-268,0],[1,480,7,1],[1,-343,-93,0],[1,75,338,0],[1,-270,256,0],[1,-224,-455,0],[1,476,128,1],[1,267,-177,1],[1,-198,389,0],[1,99,-346,1],[1,-46,-333,1],[1,1,-494,1],[1,-34,439,0],[1,444,-171,1],[1,-34,-470,1],[1,114,439,0],[1,46,-358,1],[1,-269,93,0],[1,496,-341,1],[1,368,-310,1],[1,-46,57,0],[1,-214,197,0],[1,10,38,0],[1,167,-315,1],[1,-282,-1,0],[1,487,-293,1],[1,-85,172,0],[1,52,-366,1],[1,-464,221,0],[1,-282,473,0],[1,158,81,1],[1,-169,329,0],[1,-356,453,0],[1,305,79,1],[1,83,73,1],[1,-441,492,0],[1,-234,20,0],[1,-444,-30,0],[1,-71,-137,0],[1,450,290,1],[1,-376,-16,0],[1,-494,-192,0],[1,-309,62,0],[1,-62,334,0],[1,333,-316,1],[1,121,-449,1],[1,-335,-357,0],[1,-213,-306,0],[1,464,-406,1],[1,21,425,0],[1,-358,-209,0],[1,110,57,1],[1,276,138,1],[1,318,-327,1],[1,-382,424,0],[1,-379,102,0],[1,-141,459,0],[1,178,-486,1],[1,-113,-238,0],[1,287,-406,1],[1,-56,202,0],[1,-340,191,0],[1,-480,-416,0],[1,-280,-499,0],[1,-265,20,0],[1,155,433,1],[1,-378,129,0],[1,403,-383,1],[1,411,-137,1],[1,498,-129,1],[1,176,216,1],[1,-229,-172,0],[1,-147,123,0],[1,470,194,1],[1,-36,-182,1],[1,-259,151,0],[1,-202,341,0],[1,-92,-114,0],[1,-166,179,0],[1,64,97,1],[1,-221,-500,0],[1,105,431,0],[1,-478,-405,0],[1,182,-215,1],[1,223,-100,1],[1,-472,-245,0],[1,367,151,1],[1,-36,417,0],[1,-463,212,0],[1,146,-495,1],[1,498,-17,1],[1,-272,398,0],[1,311,-383,1],[1,-220,479,0],[1,-491,202,0],[1,492,463,1],[1,-450,-148,0],[1,36,162,0],[1,204,166,1],[1,270,-438,1],[1,500,-444,1],[1,243,-145,1],[1,-295,-365,0],[1,-454,194,0],[1,-338,-380,0],[1,-183,320,0],[1,167,288,1],[1,-267,89,0],[1,-421,62,0],[1,163,217,1],[1,301,144,1],[1,-410,-132,0],[1,368,-418,1],[1,-31,-126,1],[1,183,-223,1],[1,48,345,0],[1,176,133,1],[1,339,72,1],[1,132,-469,1],[1,-171,-342,0],[1,-452,-300,0],[1,-299,-388,0],[1,-15,-400,1],[1,-384,300,0],[1,137,71,1],[1,-143,396,0],[1,-253,-473,0],[1,193,419,1],[1,313,470,1],[1,-168,-375,0],[1,422,-423,1],[1,205,467,1],[1,39,-126,1],[1,441,-452,1],[1,-183,469,0],[1,-322,404,0],[1,-232,240,0],[1,-412,-198,0],[1,269,176,1],[1,430,158,1],[1,244,72,1],[1,369,79,1],[1,468,-152,1],[1,-160,-9,0],[1,-192,-441,0],[1,-31,295,0],[1,103,401,0],[1,265,-253,1],[1,248,-32,1],[1,237,-128,1],[1,-423,30,0],[1,490,-301,1],[1,246,112,1],[1,-486,53,0],[1,-157,-305,0],[1,261,-156,1],[1,244,486,1],[1,19,409,0],[1,313,-380,1],[1,-101,73,0],[1,-128,94,0],[1,-398,-204,0],[1,-108,-13,0],[1,373,-428,1],[1,141,92,1],[1,194,106,1],[1,394,291,1],[1,64,206,0],[1,284,102,1],[1,-361,33,0],[1,-11,284,0],[1,-399,368,0],[1,461,484,1],[1,-104,-13,0],[1,-108,44,0],[1,-179,-12,0],[1,-457,-133,0],[1,-248,1,0],[1,191,442,1],[1,-143,-20,0],[1,-149,15,0],[1,362,158,1],[1,-444,227,0],[1,-123,343,0],[1,21,415,0],[1,-160,-376,0],[1,-378,31,0],[1,-275,-400,0],[1,150,54,1],[1,130,-153,1],[1,-48,-223,1],[1,45,26,1],[1,-11,497,0],[1,120,-130,1],[1,-126,424,0],[1,60,283,0],[1,221,-255,1],[1,-244,-24,0],[1,-84,489,0],[1,243,-208,1],[1,-190,348,0],[1,500,99,1],[1,221,492,1],[1,-412,98,0],[1,5,-136,1],[1,12,-492,1],[1,124,326,1],[1,47,-47,1],[1,-213,135,0],[1,420,292,1],[1,21,-414,1],[1,-64,-309,1],[1,-486,-263,0],[1,-176,77,0],[1,-250,28,0],[1,-133,-341,0],[1,25,-351,1],[1,8,245,0],[1,-21,-330,1],[1,-240,167,0],[1,-297,426,0],[1,430,-399,1],[1,-466,-450,0],[1,27,433,0],[1,-125,96,0],[1,-329,123,0],[1,130,-253,1],[1,-79,474,0],[1,438,-365,1],[1,490,-89,1],[1,-261,99,0],[1,306,-236,1],[1,-209,48,0],[1,477,-48,1],[1,-288,4,0],[1,-148,-275,0],[1,16,55,0],[1,149,-409,1],[1,-219,-225,0],[1,-248,-175,0],[1,-309,-90,0],[1,-49,-56,0],[1,322,291,1],[1,-429,123,0],[1,-50,84,0],[1,284,-445,1],[1,-437,116,0],[1,-196,-414,0],[1,144,459,0],[1,147,-247,1],[1,-16,-169,1],[1,-9,415,0],[1,-40,148,0],[1,419,71,1],[1,-236,24,0],[1,34,-101,1],[1,-25,307,0],[1,97,17,1],[1,38,328,0],[1,474,51,1],[1,388,79,1],[1,57,236,0],[1,-392,-119,0],[1,45,351,0],[1,110,365,0],[1,16,-175,1],[1,-10,-163,1],[1,-211,492,0],[1,-500,238,0],[1,412,139,1],[1,-109,-144,0],[1,356,-80,1],[1,-246,-375,0],[1,-129,-54,0],[1,-284,72,0],[1,-83,298,0],[1,374,370,1],[1,-228,190,0],[1,278,-335,1],[1,280,-240,1],[1,219,-124,1],[1,168,-55,1],[1,-335,9,0],[1,352,-15,1],[1,315,366,1],[1,-2,366,0],[1,135,328,1],[1,143,-356,1],[1,4,142,0],[1,85,-445,1],[1,-38,-28,0],[1,-152,-238,0],[1,45,418,0],[1,-121,353,0],[1,434,-339,1],[1,360,-128,1],[1,-64,-37,0],[1,306,-96,1],[1,-462,-444,0],[1,-210,-375,0],[1,88,251,1],[1,346,-169,1],[1,467,-442,1],[1,179,-295,1],[1,481,-169,1],[1,170,470,1],[1,-291,68,0],[1,-420,452,0],[1,67,402,0],[1,-229,382,0],[1,436,297,1],[1,161,-386,1],[1,-477,365,0],[1,-1,-124,1],[1,-182,339,0],[1,-234,39,0],[1,-119,-245,0],[1,-143,-244,0],[1,139,413,1],[1,-338,-105,0],[1,235,54,1],[1,-282,-107,0],[1,-138,98,0],[1,-215,254,0],[1,-44,-227,1],[1,-171,-492,0],[1,307,-92,1],[1,-96,457,0],[1,-174,-327,0],[1,132,247,1],[1,225,268,1],[1,-453,-282,0],[1,33,157,0],[1,-58,205,0],[1,344,-203,1],[1,412,-166,1],[1,295,-337,1],[1,471,111,1],[1,-69,-165,0],[1,245,-280,1],[1,200,-135,1],[1,-465,-274,0],[1,498,284,1],[1,-131,-285,0],[1,484,98,1],[1,63,397,0],[1,52,206,0],[1,87,254,1],[1,122,-280,1],[1,111,377,0],[1,-275,68,0],[1,-285,-454,0],[1,34,43,1],[1,265,187,1],[1,158,165,1],[1,-121,382,0],[1,-320,50,0],[1,186,-193,1],[1,-224,-435,0],[1,0,8,0],[1,71,400,0],[1,-13,-53,1],[1,-26,-146,1],[1,-381,343,0],[1,475,65,1],[1,-91,-23,0],[1,261,55,1],[1,325,418,1],[1,-298,-433,0],[1,447,369,1],[1,-378,403,0],[1,-459,71,0],[1,-104,-52,0],[1,-332,-349,0],[1,-274,15,0],[1,-90,354,0],[1,-345,-499,0],[1,9,-47,1],[1,91,116,1],[1,279,64,1],[1,-273,-162,0],[1,185,170,1],[1,6,194,0],[1,89,59,1],[1,-354,-5,0],[1,225,-294,1],[1,-155,348,0],[1,79,-228,1],[1,484,189,1],[1,-166,472,0],[1,362,143,1],[1,-220,417,0],[1,296,282,1],[1,425,-439,1],[1,-298,469,0],[1,235,-76,1],[1,-63,190,0],[1,179,-383,1],[1,196,278,1],[1,-260,-444,0],[1,-304,275,0],[1,497,373,1],[1,375,-427,1],[1,172,489,1],[1,-453,222,0],[1,-52,304,0],[1,344,-300,1],[1,-352,390,0],[1,-54,34,0],[1,-302,-375,0],[1,332,-196,1],[1,-149,169,0],[1,-255,-456,0],[1,-42,92,0],[1,218,320,1],[1,319,-382,1],[1,233,290,1],[1,-380,191,0],[1,-139,463,0],[1,432,-371,1],[1,280,-324,1],[1,-286,357,0],[1,330,38,1],[1,-403,31,0],[1,308,108,1],[1,-334,-229,0],[1,485,273,1],[1,356,-132,1],[1,88,175,1],[1,-329,179,0],[1,-55,23,0],[1,-256,119,0],[1,426,23,1],[1,-345,-129,0],[1,122,473,0],[1,280,414,1],[1,389,-226,1],[1,400,-314,1],[1,-84,326,0],[1,338,338,1],[1,87,227,1],[1,429,428,1],[1,-360,-397,0],[1,-457,271,0],[1,-38,81,0],[1,146,-442,1],[1,-71,378,0],[1,32,-467,1],[1,155,-356,1],[1,-455,453,0],[1,-306,147,0],[1,84,-203,1],[1,-177,295,0],[1,-479,-290,0],[1,-289,130,0],[1,-321,369,0],[1,195,-25,1],[1,460,306,1],[1,-10,423,0],[1,-15,-74,1],[1,-261,-341,0],[1,309,369,1],[1,-40,-147,1],[1,-347,-232,0],[1,101,32,1],[1,-229,456,0],[1,376,357,1],[1,75,420,0],[1,306,-414,1],[1,-373,47,0],[1,6,-134,1],[1,403,-290,1],[1,360,-31,1],[1,422,-154,1],[1,405,54,1],[1,263,77,1],[1,-468,-314,0],[1,-58,150,0],[1,493,-279,1],[1,-461,-110,0],[1,-487,213,0],[1,-46,235,0],[1,253,286,1],[1,-476,66,0],[1,153,133,1],[1,-344,191,0],[1,-427,-396,0],[1,25,85,0],[1,-325,199,0],[1,184,110,1],[1,151,311,1],[1,-274,-180,0],[1,108,92,1],[1,275,-126,1],[1,427,-21,1],[1,232,242,1],[1,158,229,1],[1,-83,48,0],[1,-282,-344,0],[1,-299,154,0],[1,-89,165,0],[1,380,-483,1],[1,67,-259,1],[1,-41,-391,1],[1,-433,44,0],[1,-448,-363,0],[1,-163,-227,0],[1,265,-458,1],[1,-142,40,0],[1,-99,-445,1],[1,-239,396,0],[1,-325,459,0],[1,-68,-65,0],[1,-294,320,0],[1,-24,-315,1],[1,85,-266,1],[1,282,-167,1],[1,427,124,1],[1,-459,40,0],[1,-436,190,0],[1,-306,476,0],[1,204,-239,1],[1,98,56,1],[1,-404,117,0],[1,315,-196,1],[1,-468,-60,0],[1,-398,162,0],[1,156,-121,1],[1,-334,216,0],[1,64,-373,1],[1,-462,286,0],[1,363,-482,1],[1,-144,418,0],[1,385,-3,1],[1,-414,-477,0],[1,-401,-433,0],[1,261,-85,1],[1,330,-130,1],[1,-476,-435,0],[1,-412,375,0],[1,-282,-49,0],[1,82,-220,1],[1,42,-340,1],[1,-114,-157,0],[1,-407,135,0],[1,-136,-118,0],[1,202,3,1],[1,-316,419,0],[1,142,103,1],[1,496,18,1],[1,-435,-258,0],[1,-440,-491,0],[1,275,294,1],[1,481,143,1],[1,328,241,1],[1,80,346,0],[1,142,321,1],[1,-419,191,0],[1,396,-151,1],[1,-270,399,0],[1,-5,-499,1],[1,1,218,0],[1,24,190,0],[1,-307,108,0],[1,400,-210,1],[1,418,295,1],[1,482,-104,1],[1,420,-364,1],[1,210,-239,1],[1,128,221,1],[1,235,-211,1],[1,-257,-230,0],[1,-348,305,0],[1,431,-412,1],[1,304,-246,1],[1,-425,-114,0],[1,-474,371,0],[1,234,97,1],[1,-223,-78,0],[1,-173,109,0],[1,-226,469,0],[1,-418,328,0],[1,-57,325,0],[1,260,405,1],[1,-387,-405,0],[1,424,358,1],[1,137,-98,1],[1,444,375,1],[1,39,-68,1],[1,476,-292,1],[1,200,-420,1],[1,-148,-69,0],[1,-282,-34,0],[1,499,112,1],[1,399,149,1],[1,381,-110,1],[1,228,-363,1],[1,-371,-488,0],[1,-250,-140,0],[1,295,-273,1],[1,127,-236,1],[1,-329,-487,0],[1,-38,-31,0],[1,-359,422,0],[1,-418,252,0],[1,422,209,1],[1,-364,-75,0],[1,-310,322,0],[1,145,-470,1],[1,159,-2,1],[1,-75,-419,1],[1,-150,486,0],[1,-225,276,0],[1,416,467,1],[1,-409,-458,0],[1,-203,-261,0],[1,435,-315,1],[1,2,-96,1],[1,296,-231,1],[1,293,29,1],[1,377,-489,1],[1,80,355,0],[1,-22,-376,1],[1,230,291,1],[1,-218,-406,0],[1,-266,357,0],[1,414,-175,1],[1,35,143,0],[1,-483,-138,0],[1,122,-310,1],[1,358,196,1],[1,410,208,1],[1,-358,-357,0],[1,-239,-482,0],[1,233,-339,1],[1,-216,-243,0],[1,-298,-349,0],[1,-58,283,0],[1,-42,-309,1],[1,-434,-321,0],[1,28,183,0],[1,-435,-421,0],[1,358,247,1],[1,420,473,1],[1,-17,-51,1],[1,-73,66,0],[1,-436,375,0],[1,353,90,1],[1,-420,396,0],[1,96,86,1],[1,-26,-246,1],[1,381,-34,1],[1,-49,-421,1],[1,-411,350,0],[1,-406,-119,0],[1,-151,-492,1],[1,-90,441,0],[1,-43,486,0],[1,83,74,1],[1,316,-362,1],[1,257,-213,1],[1,-227,-318,0],[1,390,166,1],[1,36,-267,1],[1,-473,445,0],[1,259,-4,1],[1,-344,-431,0],[1,-306,443,0],[1,-399,-235,0],[1,433,64,1],[1,-26,367,0],[1,17,436,0],[1,-40,178,0],[1,256,158,1],[1,-360,244,0],[1,281,49,1],[1,426,497,1],[1,-293,494,0],[1,-175,360,0],[1,-451,217,0],[1,-132,493,0],[1,108,-312,1],[1,-78,-310,1],[1,-329,-204,0],[1,-260,-378,0],[1,288,95,1],[1,398,22,1],[1,-316,-390,0],[1,269,-143,1],[1,408,498,1],[1,-323,485,0],[1,301,80,1],[1,-190,292,0],[1,311,308,1],[1,444,478,1],[1,-438,346,0],[1,169,-429,1],[1,320,-14,1],[1,-272,-96,0],[1,-399,126,0],[1,-356,199,0],[1,275,-129,1],[1,386,-170,1],[1,-330,421,0],[1,216,491,1],[1,452,-25,1],[1,-192,132,0],[1,249,311,1],[1,-491,262,0],[1,-296,-389,0],[1,269,175,1],[1,109,-222,1],[1,184,342,1],[1,-187,-105,0],[1,-109,323,0],[1,-355,456,0],[1,-94,-338,1],[1,-439,250,0],[1,53,-111,1],[1,-332,-359,0],[1,376,-31,1],[1,489,92,1],[1,-39,190,0],[1,107,-218,1],[1,-263,188,0],[1,-360,-274,0],[1,275,490,1],[1,-230,-189,0],[1,288,77,1],[1,-129,356,0],[1,-123,2,0],[1,380,437,1],[1,-394,92,0],[1,427,-217,1],[1,344,-453,1],[1,-434,469,0],[1,98,322,0],[1,-410,54,0],[1,227,129,1],[1,462,-225,1],[1,465,-70,1],[1,173,-209,1],[1,-13,472,0],[1,-245,296,0],[1,-169,-184,0],[1,475,456,1],[1,316,-457,1],[1,-137,-175,0],[1,52,70,1],[1,163,54,1],[1,-374,139,0],[1,-92,-49,0],[1,264,393,1],[1,181,144,1],[1,-320,-85,0],[1,-234,-394,0],[1,-140,-152,0],[1,416,86,1],[1,-305,-334,0],[1,366,211,1],[1,-79,196,0],[1,345,-406,1],[1,-228,188,0],[1,-274,228,0],[1,-453,-434,0],[1,311,-403,1],[1,162,-160,1],[1,-4,321,0],[1,-279,449,0],[1,365,309,1],[1,-292,-209,0],[1,-125,-54,0],[1,35,-215,1],[1,-125,177,0],[1,-207,-40,0],[1,369,370,1],[1,132,459,0],[1,190,107,1],[1,238,-112,1],[1,-229,-392,0],[1,-272,-364,0],[1,-280,-93,0],[1,-81,137,0],[1,148,-287,1],[1,-111,214,0],[1,-285,444,0],[1,306,281,1],[1,345,151,1],[1,-419,92,0],[1,-131,404,0],[1,-286,294,0],[1,-247,-219,0],[1,-363,133,0],[1,-341,-149,0],[1,-128,-112,0],[1,-399,80,0],[1,-56,411,0],[1,-46,20,0],[1,272,405,1],[1,-413,-217,0],[1,48,-178,1],[1,22,-103,1],[1,-124,-59,0],[1,9,121,0],[1,422,212,1],[1,-469,194,0],[1,-7,-263,1],[1,387,147,1],[1,273,-106,1],[1,-496,240,0],[1,482,270,1],[1,-238,449,0],[1,185,-112,1],[1,-495,189,0],[1,46,105,1],[1,488,-287,1],[1,-206,209,0],[1,491,-330,1],[1,16,352,0],[1,318,177,1],[1,449,309,1],[1,-114,-293,0],[1,-65,429,0],[1,67,7,1],[1,18,98,0],[1,451,239,1],[1,229,-1,1],[1,-91,43,0],[1,69,29,1],[1,374,125,1],[1,434,89,1],[1,-348,123,0],[1,179,414,1],[1,-97,-169,0],[1,-221,-162,0],[1,-52,450,0],[1,475,452,1],[1,-481,318,0],[1,402,-126,1],[1,461,33,1],[1,408,489,1],[1,267,-181,1],[1,87,-34,1],[1,488,301,1],[1,376,-347,1],[1,442,339,1],[1,273,-482,1],[1,349,367,1],[1,19,321,0],[1,239,-370,1],[1,-56,441,0],[1,187,299,1],[1,-25,-157,1],[1,325,421,1],[1,205,113,1],[1,449,-40,1],[1,374,-410,1],[1,-446,368,0],[1,-466,496,0],[1,436,-366,1],[1,-377,-368,0],[1,215,48,1],[1,189,-96,1],[1,-225,-272,0],[1,-117,318,0],[1,242,-170,1],[1,-245,-388,0],[1,-420,245,0],[1,136,-393,1],[1,-173,81,0],[1,-382,248,0],[1,356,-336,1],[1,0,262,0],[1,-268,-448,0],[1,-21,-135,1],[1,412,59,1],[1,216,-116,1],[1,369,178,1],[1,98,-254,1],[1,-313,7,0],[1,260,381,1],[1,453,-267,1],[1,-339,163,0],[1,356,-81,1],[1,-296,-380,0],[1,-401,2,0],[1,-497,-170,0],[1,-423,-110,0],[1,-279,-61,0],[1,-264,147,0],[1,429,299,1],[1,31,91,1],[1,-386,-324,0],[1,-360,-60,0],[1,-426,302,0],[1,-348,7,0],[1,389,94,1],[1,201,427,1],[1,-457,-63,0],[1,106,-459,1],[1,133,-102,1],[1,249,340,1],[1,-457,-378,0],[1,105,116,1],[1,428,47,1],[1,-78,310,0],[1,-102,-49,0],[1,-371,422,0],[1,85,-283,1],[1,-447,489,0],[1,-416,-48,0],[1,464,409,1],[1,283,82,1],[1,45,-275,1],[1,-80,-267,1],[1,254,409,1],[1,-468,30,0],[1,499,-167,1],[1,95,211,1],[1,443,67,1],[1,10,86,0],[1,-326,-176,0],[1,48,389,0],[1,44,-144,1],[1,483,-441,1],[1,467,168,1],[1,78,-308,1],[1,185,-457,1],[1,416,375,1],[1,175,327,1],[1,-346,-43,0],[1,-225,-92,0],[1,-82,165,0],[1,-163,-215,0],[1,151,-14,1],[1,417,374,1],[1,-173,-97,0],[1,228,-210,1]]

Показать весь набор
let fullCheckSet = [[1,288,-425,1],[1,-331,-85,0],[1,67,-415,1],[1,187,459,1],[1,170,-54,1],[1,338,354,1],[1,66,-414,1],[1,-202,274,0],[1,48,-361,1],[1,-184,-298,0],[1,-384,268,0],[1,-225,265,0],[1,-225,-82,0],[1,-452,381,0],[1,189,-409,1],[1,-328,190,0],[1,231,-173,1],[1,6,6,1],[1,-330,489,0],[1,254,-452,1],[1,27,-157,1],[1,122,-183,1],[1,-396,465,0],[1,-164,329,0],[1,147,-22,1],[1,240,-112,1],[1,-337,-137,0],[1,426,-395,1],[1,-374,-493,0],[1,333,321,1],[1,-89,194,0],[1,-492,272,0],[1,-41,164,0],[1,163,43,1],[1,-59,-460,1],[1,316,-255,1],[1,-384,375,0],[1,345,-280,1],[1,160,308,1],[1,272,-90,1],[1,-1,147,0],[1,-4,-457,1],[1,324,455,1],[1,128,-83,1],[1,146,237,1],[1,-249,345,0],[1,-61,-58,0],[1,-50,-272,1],[1,-262,-449,0],[1,465,-430,1],[1,293,337,1],[1,-236,425,0],[1,307,135,1],[1,-183,132,0],[1,-337,354,0],[1,136,394,1],[1,46,-349,1],[1,422,44,1],[1,-223,-298,0],[1,389,474,1],[1,303,46,1],[1,-291,77,0],[1,-354,-268,0],[1,480,7,1],[1,-343,-93,0],[1,75,338,0],[1,-270,256,0],[1,-224,-455,0],[1,476,128,1],[1,267,-177,1],[1,-198,389,0],[1,99,-346,1],[1,-46,-333,1],[1,1,-494,1],[1,-34,439,0],[1,444,-171,1],[1,-34,-470,1],[1,114,439,0],[1,46,-358,1],[1,-269,93,0],[1,496,-341,1],[1,368,-310,1],[1,-46,57,0],[1,-214,197,0],[1,10,38,0],[1,167,-315,1],[1,-282,-1,0],[1,487,-293,1],[1,-85,172,0],[1,52,-366,1],[1,-464,221,0],[1,-282,473,0],[1,158,81,1],[1,-169,329,0],[1,-356,453,0],[1,305,79,1],[1,83,73,1],[1,-441,492,0],[1,-234,20,0],[1,-444,-30,0],[1,-71,-137,0],[1,450,290,1],[1,-376,-16,0],[1,-494,-192,0],[1,-309,62,0],[1,-62,334,0],[1,333,-316,1],[1,121,-449,1],[1,-335,-357,0],[1,-213,-306,0],[1,464,-406,1],[1,21,425,0],[1,-358,-209,0],[1,110,57,1],[1,276,138,1],[1,318,-327,1],[1,-382,424,0],[1,-379,102,0],[1,-141,459,0],[1,178,-486,1],[1,-113,-238,0],[1,287,-406,1],[1,-56,202,0],[1,-340,191,0],[1,-480,-416,0],[1,-280,-499,0],[1,-265,20,0],[1,155,433,1],[1,-378,129,0],[1,403,-383,1],[1,411,-137,1],[1,498,-129,1],[1,176,216,1],[1,-229,-172,0],[1,-147,123,0],[1,470,194,1],[1,-36,-182,1],[1,-259,151,0],[1,-202,341,0],[1,-92,-114,0],[1,-166,179,0],[1,64,97,1],[1,-221,-500,0],[1,105,431,0],[1,-478,-405,0],[1,182,-215,1],[1,223,-100,1],[1,-472,-245,0],[1,367,151,1],[1,-36,417,0],[1,-463,212,0],[1,146,-495,1],[1,498,-17,1],[1,-272,398,0],[1,311,-383,1],[1,-220,479,0],[1,-491,202,0],[1,492,463,1],[1,-450,-148,0],[1,36,162,0],[1,204,166,1],[1,270,-438,1],[1,500,-444,1],[1,243,-145,1],[1,-295,-365,0],[1,-454,194,0],[1,-338,-380,0],[1,-183,320,0],[1,167,288,1],[1,-267,89,0],[1,-421,62,0],[1,163,217,1],[1,301,144,1],[1,-410,-132,0],[1,368,-418,1],[1,-31,-126,1],[1,183,-223,1],[1,48,345,0],[1,176,133,1],[1,339,72,1],[1,132,-469,1],[1,-171,-342,0],[1,-452,-300,0],[1,-299,-388,0],[1,-15,-400,1],[1,-384,300,0],[1,137,71,1],[1,-143,396,0],[1,-253,-473,0],[1,193,419,1],[1,313,470,1],[1,-168,-375,0],[1,422,-423,1],[1,205,467,1],[1,39,-126,1],[1,441,-452,1],[1,-183,469,0],[1,-322,404,0],[1,-232,240,0],[1,-412,-198,0],[1,269,176,1],[1,430,158,1],[1,244,72,1],[1,369,79,1],[1,468,-152,1],[1,-160,-9,0],[1,-192,-441,0],[1,-31,295,0],[1,103,401,0],[1,265,-253,1],[1,248,-32,1],[1,237,-128,1],[1,-423,30,0],[1,490,-301,1],[1,246,112,1],[1,-486,53,0],[1,-157,-305,0],[1,261,-156,1],[1,244,486,1],[1,19,409,0],[1,313,-380,1],[1,-101,73,0],[1,-128,94,0],[1,-398,-204,0],[1,-108,-13,0],[1,373,-428,1],[1,141,92,1],[1,194,106,1],[1,394,291,1],[1,64,206,0],[1,284,102,1],[1,-361,33,0],[1,-11,284,0],[1,-399,368,0],[1,461,484,1],[1,-104,-13,0],[1,-108,44,0],[1,-179,-12,0],[1,-457,-133,0],[1,-248,1,0],[1,191,442,1],[1,-143,-20,0],[1,-149,15,0],[1,362,158,1],[1,-444,227,0],[1,-123,343,0],[1,21,415,0],[1,-160,-376,0],[1,-378,31,0],[1,-275,-400,0],[1,150,54,1],[1,130,-153,1],[1,-48,-223,1],[1,45,26,1],[1,-11,497,0],[1,120,-130,1],[1,-126,424,0],[1,60,283,0],[1,221,-255,1],[1,-244,-24,0],[1,-84,489,0],[1,243,-208,1],[1,-190,348,0],[1,500,99,1],[1,221,492,1],[1,-412,98,0],[1,5,-136,1],[1,12,-492,1],[1,124,326,1],[1,47,-47,1],[1,-213,135,0],[1,420,292,1],[1,21,-414,1],[1,-64,-309,1],[1,-486,-263,0],[1,-176,77,0],[1,-250,28,0],[1,-133,-341,0],[1,25,-351,1],[1,8,245,0],[1,-21,-330,1],[1,-240,167,0],[1,-297,426,0],[1,430,-399,1],[1,-466,-450,0],[1,27,433,0],[1,-125,96,0],[1,-329,123,0],[1,130,-253,1],[1,-79,474,0],[1,438,-365,1],[1,490,-89,1],[1,-261,99,0],[1,306,-236,1],[1,-209,48,0],[1,477,-48,1],[1,-288,4,0],[1,-148,-275,0],[1,16,55,0],[1,149,-409,1],[1,-219,-225,0],[1,-248,-175,0],[1,-309,-90,0],[1,-49,-56,0],[1,322,291,1],[1,-429,123,0],[1,-50,84,0],[1,284,-445,1],[1,-437,116,0],[1,-196,-414,0],[1,144,459,0],[1,147,-247,1],[1,-16,-169,1],[1,-9,415,0],[1,-40,148,0],[1,419,71,1],[1,-236,24,0],[1,34,-101,1],[1,-25,307,0],[1,97,17,1],[1,38,328,0],[1,474,51,1],[1,388,79,1],[1,57,236,0],[1,-392,-119,0],[1,45,351,0],[1,110,365,0],[1,16,-175,1],[1,-10,-163,1],[1,-211,492,0],[1,-500,238,0],[1,412,139,1],[1,-109,-144,0],[1,356,-80,1],[1,-246,-375,0],[1,-129,-54,0],[1,-284,72,0],[1,-83,298,0],[1,374,370,1],[1,-228,190,0],[1,278,-335,1],[1,280,-240,1],[1,219,-124,1],[1,168,-55,1],[1,-335,9,0],[1,352,-15,1],[1,315,366,1],[1,-2,366,0],[1,135,328,1],[1,143,-356,1],[1,4,142,0],[1,85,-445,1],[1,-38,-28,0],[1,-152,-238,0],[1,45,418,0],[1,-121,353,0],[1,434,-339,1],[1,360,-128,1],[1,-64,-37,0],[1,306,-96,1],[1,-462,-444,0],[1,-210,-375,0],[1,88,251,1],[1,346,-169,1],[1,467,-442,1],[1,179,-295,1],[1,481,-169,1],[1,170,470,1],[1,-291,68,0],[1,-420,452,0],[1,67,402,0],[1,-229,382,0],[1,436,297,1],[1,161,-386,1],[1,-477,365,0],[1,-1,-124,1],[1,-182,339,0],[1,-234,39,0],[1,-119,-245,0],[1,-143,-244,0],[1,139,413,1],[1,-338,-105,0],[1,235,54,1],[1,-282,-107,0],[1,-138,98,0],[1,-215,254,0],[1,-44,-227,1],[1,-171,-492,0],[1,307,-92,1],[1,-96,457,0],[1,-174,-327,0],[1,132,247,1],[1,225,268,1],[1,-453,-282,0],[1,33,157,0],[1,-58,205,0],[1,344,-203,1],[1,412,-166,1],[1,295,-337,1],[1,471,111,1],[1,-69,-165,0],[1,245,-280,1],[1,200,-135,1],[1,-465,-274,0],[1,498,284,1],[1,-131,-285,0],[1,484,98,1],[1,63,397,0],[1,52,206,0],[1,87,254,1],[1,122,-280,1],[1,111,377,0],[1,-275,68,0],[1,-285,-454,0],[1,34,43,1],[1,265,187,1],[1,158,165,1],[1,-121,382,0],[1,-320,50,0],[1,186,-193,1],[1,-224,-435,0],[1,0,8,0],[1,71,400,0],[1,-13,-53,1],[1,-26,-146,1],[1,-381,343,0],[1,475,65,1],[1,-91,-23,0],[1,261,55,1],[1,325,418,1],[1,-298,-433,0],[1,447,369,1],[1,-378,403,0],[1,-459,71,0],[1,-104,-52,0],[1,-332,-349,0],[1,-274,15,0],[1,-90,354,0],[1,-345,-499,0],[1,9,-47,1],[1,91,116,1],[1,279,64,1],[1,-273,-162,0],[1,185,170,1],[1,6,194,0],[1,89,59,1],[1,-354,-5,0],[1,225,-294,1],[1,-155,348,0],[1,79,-228,1],[1,484,189,1],[1,-166,472,0],[1,362,143,1],[1,-220,417,0],[1,296,282,1],[1,425,-439,1],[1,-298,469,0],[1,235,-76,1],[1,-63,190,0],[1,179,-383,1],[1,196,278,1],[1,-260,-444,0],[1,-304,275,0],[1,497,373,1],[1,375,-427,1],[1,172,489,1],[1,-453,222,0],[1,-52,304,0],[1,344,-300,1],[1,-352,390,0],[1,-54,34,0],[1,-302,-375,0],[1,332,-196,1],[1,-149,169,0],[1,-255,-456,0],[1,-42,92,0],[1,218,320,1],[1,319,-382,1],[1,233,290,1],[1,-380,191,0],[1,-139,463,0],[1,432,-371,1],[1,280,-324,1],[1,-286,357,0],[1,330,38,1],[1,-403,31,0],[1,308,108,1],[1,-334,-229,0],[1,485,273,1],[1,356,-132,1],[1,88,175,1],[1,-329,179,0],[1,-55,23,0],[1,-256,119,0],[1,426,23,1],[1,-345,-129,0],[1,122,473,0],[1,280,414,1],[1,389,-226,1],[1,400,-314,1],[1,-84,326,0],[1,338,338,1],[1,87,227,1],[1,429,428,1],[1,-360,-397,0],[1,-457,271,0],[1,-38,81,0],[1,146,-442,1],[1,-71,378,0],[1,32,-467,1],[1,155,-356,1],[1,-455,453,0],[1,-306,147,0],[1,84,-203,1],[1,-177,295,0],[1,-479,-290,0],[1,-289,130,0],[1,-321,369,0],[1,195,-25,1],[1,460,306,1],[1,-10,423,0],[1,-15,-74,1],[1,-261,-341,0],[1,309,369,1],[1,-40,-147,1],[1,-347,-232,0],[1,101,32,1],[1,-229,456,0],[1,376,357,1],[1,75,420,0],[1,306,-414,1],[1,-373,47,0],[1,6,-134,1],[1,403,-290,1],[1,360,-31,1],[1,422,-154,1],[1,405,54,1],[1,263,77,1],[1,-468,-314,0],[1,-58,150,0],[1,493,-279,1],[1,-461,-110,0],[1,-487,213,0],[1,-46,235,0],[1,253,286,1],[1,-476,66,0],[1,153,133,1],[1,-344,191,0],[1,-427,-396,0],[1,25,85,0],[1,-325,199,0],[1,184,110,1],[1,151,311,1],[1,-274,-180,0],[1,108,92,1],[1,275,-126,1],[1,427,-21,1],[1,232,242,1],[1,158,229,1],[1,-83,48,0],[1,-282,-344,0],[1,-299,154,0],[1,-89,165,0],[1,380,-483,1],[1,67,-259,1],[1,-41,-391,1],[1,-433,44,0],[1,-448,-363,0],[1,-163,-227,0],[1,265,-458,1],[1,-142,40,0],[1,-99,-445,1],[1,-239,396,0],[1,-325,459,0],[1,-68,-65,0],[1,-294,320,0],[1,-24,-315,1],[1,85,-266,1],[1,282,-167,1],[1,427,124,1],[1,-459,40,0],[1,-436,190,0],[1,-306,476,0],[1,204,-239,1],[1,98,56,1],[1,-404,117,0],[1,315,-196,1],[1,-468,-60,0],[1,-398,162,0],[1,156,-121,1],[1,-334,216,0],[1,64,-373,1],[1,-462,286,0],[1,363,-482,1],[1,-144,418,0],[1,385,-3,1],[1,-414,-477,0],[1,-401,-433,0],[1,261,-85,1],[1,330,-130,1],[1,-476,-435,0],[1,-412,375,0],[1,-282,-49,0],[1,82,-220,1],[1,42,-340,1],[1,-114,-157,0],[1,-407,135,0],[1,-136,-118,0],[1,202,3,1],[1,-316,419,0],[1,142,103,1],[1,496,18,1],[1,-435,-258,0],[1,-440,-491,0],[1,275,294,1],[1,481,143,1],[1,328,241,1],[1,80,346,0],[1,142,321,1],[1,-419,191,0],[1,396,-151,1],[1,-270,399,0],[1,-5,-499,1],[1,1,218,0],[1,24,190,0],[1,-307,108,0],[1,400,-210,1],[1,418,295,1],[1,482,-104,1],[1,420,-364,1],[1,210,-239,1],[1,128,221,1],[1,235,-211,1],[1,-257,-230,0],[1,-348,305,0],[1,431,-412,1],[1,304,-246,1],[1,-425,-114,0],[1,-474,371,0],[1,234,97,1],[1,-223,-78,0],[1,-173,109,0],[1,-226,469,0],[1,-418,328,0],[1,-57,325,0],[1,260,405,1],[1,-387,-405,0],[1,424,358,1],[1,137,-98,1],[1,444,375,1],[1,39,-68,1],[1,476,-292,1],[1,200,-420,1],[1,-148,-69,0],[1,-282,-34,0],[1,499,112,1],[1,399,149,1],[1,381,-110,1],[1,228,-363,1],[1,-371,-488,0],[1,-250,-140,0],[1,295,-273,1],[1,127,-236,1],[1,-329,-487,0],[1,-38,-31,0],[1,-359,422,0],[1,-418,252,0],[1,422,209,1],[1,-364,-75,0],[1,-310,322,0],[1,145,-470,1],[1,159,-2,1],[1,-75,-419,1],[1,-150,486,0],[1,-225,276,0],[1,416,467,1],[1,-409,-458,0],[1,-203,-261,0],[1,435,-315,1],[1,2,-96,1],[1,296,-231,1],[1,293,29,1],[1,377,-489,1],[1,80,355,0],[1,-22,-376,1],[1,230,291,1],[1,-218,-406,0],[1,-266,357,0],[1,414,-175,1],[1,35,143,0],[1,-483,-138,0],[1,122,-310,1],[1,358,196,1],[1,410,208,1],[1,-358,-357,0],[1,-239,-482,0],[1,233,-339,1],[1,-216,-243,0],[1,-298,-349,0],[1,-58,283,0],[1,-42,-309,1],[1,-434,-321,0],[1,28,183,0],[1,-435,-421,0],[1,358,247,1],[1,420,473,1],[1,-17,-51,1],[1,-73,66,0],[1,-436,375,0],[1,353,90,1],[1,-420,396,0],[1,96,86,1],[1,-26,-246,1],[1,381,-34,1],[1,-49,-421,1],[1,-411,350,0],[1,-406,-119,0],[1,-151,-492,1],[1,-90,441,0],[1,-43,486,0],[1,83,74,1],[1,316,-362,1],[1,257,-213,1],[1,-227,-318,0],[1,390,166,1],[1,36,-267,1],[1,-473,445,0],[1,259,-4,1],[1,-344,-431,0],[1,-306,443,0],[1,-399,-235,0],[1,433,64,1],[1,-26,367,0],[1,17,436,0],[1,-40,178,0],[1,256,158,1],[1,-360,244,0],[1,281,49,1],[1,426,497,1],[1,-293,494,0],[1,-175,360,0],[1,-451,217,0],[1,-132,493,0],[1,108,-312,1],[1,-78,-310,1],[1,-329,-204,0],[1,-260,-378,0],[1,288,95,1],[1,398,22,1],[1,-316,-390,0],[1,269,-143,1],[1,408,498,1],[1,-323,485,0],[1,301,80,1],[1,-190,292,0],[1,311,308,1],[1,444,478,1],[1,-438,346,0],[1,169,-429,1],[1,320,-14,1],[1,-272,-96,0],[1,-399,126,0],[1,-356,199,0],[1,275,-129,1],[1,386,-170,1],[1,-330,421,0],[1,216,491,1],[1,452,-25,1],[1,-192,132,0],[1,249,311,1],[1,-491,262,0],[1,-296,-389,0],[1,269,175,1],[1,109,-222,1],[1,184,342,1],[1,-187,-105,0],[1,-109,323,0],[1,-355,456,0],[1,-94,-338,1],[1,-439,250,0],[1,53,-111,1],[1,-332,-359,0],[1,376,-31,1],[1,489,92,1],[1,-39,190,0],[1,107,-218,1],[1,-263,188,0],[1,-360,-274,0],[1,275,490,1],[1,-230,-189,0],[1,288,77,1],[1,-129,356,0],[1,-123,2,0],[1,380,437,1],[1,-394,92,0],[1,427,-217,1],[1,344,-453,1],[1,-434,469,0],[1,98,322,0],[1,-410,54,0],[1,227,129,1],[1,462,-225,1],[1,465,-70,1],[1,173,-209,1],[1,-13,472,0],[1,-245,296,0],[1,-169,-184,0],[1,475,456,1],[1,316,-457,1],[1,-137,-175,0],[1,52,70,1],[1,163,54,1],[1,-374,139,0],[1,-92,-49,0],[1,264,393,1],[1,181,144,1],[1,-320,-85,0],[1,-234,-394,0],[1,-140,-152,0],[1,416,86,1],[1,-305,-334,0],[1,366,211,1],[1,-79,196,0],[1,345,-406,1],[1,-228,188,0],[1,-274,228,0],[1,-453,-434,0],[1,311,-403,1],[1,162,-160,1],[1,-4,321,0],[1,-279,449,0],[1,365,309,1],[1,-292,-209,0],[1,-125,-54,0],[1,35,-215,1],[1,-125,177,0],[1,-207,-40,0],[1,369,370,1],[1,132,459,0],[1,190,107,1],[1,238,-112,1],[1,-229,-392,0],[1,-272,-364,0],[1,-280,-93,0],[1,-81,137,0],[1,148,-287,1],[1,-111,214,0],[1,-285,444,0],[1,306,281,1],[1,345,151,1],[1,-419,92,0],[1,-131,404,0],[1,-286,294,0],[1,-247,-219,0],[1,-363,133,0],[1,-341,-149,0],[1,-128,-112,0],[1,-399,80,0],[1,-56,411,0],[1,-46,20,0],[1,272,405,1],[1,-413,-217,0],[1,48,-178,1],[1,22,-103,1],[1,-124,-59,0],[1,9,121,0],[1,422,212,1],[1,-469,194,0],[1,-7,-263,1],[1,387,147,1],[1,273,-106,1],[1,-496,240,0],[1,482,270,1],[1,-238,449,0],[1,185,-112,1],[1,-495,189,0],[1,46,105,1],[1,488,-287,1],[1,-206,209,0],[1,491,-330,1],[1,16,352,0],[1,318,177,1],[1,449,309,1],[1,-114,-293,0],[1,-65,429,0],[1,67,7,1],[1,18,98,0],[1,451,239,1],[1,229,-1,1],[1,-91,43,0],[1,69,29,1],[1,374,125,1],[1,434,89,1],[1,-348,123,0],[1,179,414,1],[1,-97,-169,0],[1,-221,-162,0],[1,-52,450,0],[1,475,452,1],[1,-481,318,0],[1,402,-126,1],[1,461,33,1],[1,408,489,1],[1,267,-181,1],[1,87,-34,1],[1,488,301,1],[1,376,-347,1],[1,442,339,1],[1,273,-482,1],[1,349,367,1],[1,19,321,0],[1,239,-370,1],[1,-56,441,0],[1,187,299,1],[1,-25,-157,1],[1,325,421,1],[1,205,113,1],[1,449,-40,1],[1,374,-410,1],[1,-446,368,0],[1,-466,496,0],[1,436,-366,1],[1,-377,-368,0],[1,215,48,1],[1,189,-96,1],[1,-225,-272,0],[1,-117,318,0],[1,242,-170,1],[1,-245,-388,0],[1,-420,245,0],[1,136,-393,1],[1,-173,81,0],[1,-382,248,0],[1,356,-336,1],[1,0,262,0],[1,-268,-448,0],[1,-21,-135,1],[1,412,59,1],[1,216,-116,1],[1,369,178,1],[1,98,-254,1],[1,-313,7,0],[1,260,381,1],[1,453,-267,1],[1,-339,163,0],[1,356,-81,1],[1,-296,-380,0],[1,-401,2,0],[1,-497,-170,0],[1,-423,-110,0],[1,-279,-61,0],[1,-264,147,0],[1,429,299,1],[1,31,91,1],[1,-386,-324,0],[1,-360,-60,0],[1,-426,302,0],[1,-348,7,0],[1,389,94,1],[1,201,427,1],[1,-457,-63,0],[1,106,-459,1],[1,133,-102,1],[1,249,340,1],[1,-457,-378,0],[1,105,116,1],[1,428,47,1],[1,-78,310,0],[1,-102,-49,0],[1,-371,422,0],[1,85,-283,1],[1,-447,489,0],[1,-416,-48,0],[1,464,409,1],[1,283,82,1],[1,45,-275,1],[1,-80,-267,1],[1,254,409,1],[1,-468,30,0],[1,499,-167,1],[1,95,211,1],[1,443,67,1],[1,10,86,0],[1,-326,-176,0],[1,48,389,0],[1,44,-144,1],[1,483,-441,1],[1,467,168,1],[1,78,-308,1],[1,185,-457,1],[1,416,375,1],[1,175,327,1],[1,-346,-43,0],[1,-225,-92,0],[1,-82,165,0],[1,-163,-215,0],[1,151,-14,1],[1,417,374,1],[1,-173,-97,0],[1,228,-210,1]]

Переменные и функции:

const n = 3
Число входящих сигналов

Входные данные: х = [ X0, X1, X2 ], где
X0 - нейрон смещения, всегда равен 1
X1 - координата х
Х2 - координата у

let w = [ ]
Массив весов
let t = 0.0001
Коэффициент скорости обучения
function ini ( )
Инициализация начальных весов

function ini ( ) {
for (let i=0; i<n; i++){
w[i] = Math.random( )
}
}
function predict (x)
Функция предсказание нейрона

function predict (x) {

let summator = 0;
for (let i=0; i<n; i++) {
summator+=x[i]*w[i]
}
return (summator < 0) ? 0 : 1
}
let trainingSet = [ [1,107,-28,1] , [1,-229,419,0] ,..,[1,482,-94,1] ]
Учебный набор на 1000 примеров

[Х0 - нейрон смещения=1, Х1 - координата х, Х2 - координата у, Х3 - правильный ответ (сторона 0/сторона 1) ]
function train (numberOfEras=1)
Обучение нейрона

function train (numberOfEras=1) {
for (let e=0; e<numberOfEras; e++) {//Цикл1: перебор эпох
for (let i=0; i<trainingSet.length; i++) { // Вложенный Цикл2: перебор примеров из учебного набора
let d; //значение ошибки по текущему примеру
d = trainingSet[i][3] -predict([trainingSet[i][0], trainingSet[i][1], trainingSet[i][2]])
for (let j=0; j<n; j++) { //Вложенный Цикл3: корректировка весов
w [ j ] += d * t * trainingSet [ i ] [ j ]
} //конец вложенного Цикла3
} //конец вложенного Цикла2
} //конец Цикла1
} // конец функции
let fullCheckSet = [ [1,288,-425,1],...,[1,-331,-85,0] ]
Проверочный набор на 1000 примеров
function checkAll ()
Проверка всех примеров из проверочного набора fullCheckSet

function checkAll () {
let rightSamples = 0;
for (let i=0; i<fullCheckSet.length; i++) { // перебор всех примеров
let currentValue = predict([fullCheckSet[i][0], fullCheckSet[i][1], fullCheckSet[i][2]]);
let rightValue = fullCheckSet[i][3];
if (currentValue==rightValue)
{console.log('ОК')
rightSamples+=1
}
else { console.log(`пример № ${i}, x=${fullCheckSet[i][1]}, y=${fullCheckSet[i][2]} currentValue: ${currentValue}, rightValue: ${rightValue}, `)} //подробности выводятся в случае ошибки
} //конец Цикла
console.log(`${rightSamples} правильных из ${fullCheckSet.length}`);
} // конец функции

Ссылки:

Бесплатный редактор кода Atom
КОД. Скачать 2 файла и поместить в одну папку:
index.html
script.js

Первый файл (index.html) - Открыть с помощью - Google Chrome (или другой браузер)
Второй файл с кодом (script.js) - Открыть с помощью - Atom (или другой редактор, можно блокнот)

Файл script.js подключен к файлу index.html (для этого они должны быть в одной папке).
Если вы хотите написать код с нуля, перенесите script.js в другую папку, а в текущей папке создайте пустой текстовый документ и переименуйте его в script.js
Подходит для построения графиков.
Для работы в режиме онлайн нажмите СТАРТ в разделе "Графический калькулятор" или "Геометрия"

Полный текст кода с комментариями:

index.html
<!DOCTYPE html>

<head>

  <title>Один нейрон в координатной плоскости</title>

</head>
<body>
  Подробное описание этого кода приведено в статье <br/>
 <a href='https://megabyte.ga/na-puti-k-nejroseti/odin-nejron-v-koordinatnoj-ploskosti'
 target='_blank'> ОДИН НЕЙРОН В КООРДИНАТНОЙ ПЛОСКОСТИ </a> <br/><br/>
 Демонстрация в браузере:<br/>
 1) Открыть в Chrome файл index.html<br/>
 2) Открыть консоль F12<br/>
 3) Запустить функцию ini(), которая присваивает случайные веса<br/>
 4) Посмотреть значения массива w<br/>
 5) Запустить функцию checkAll(), которая проверяет все примеры из набора для проверки fullCheckSet и покажет, сколько правильных ответов<br/>
 6) Запустить train(100), 100 эпох обучения нейрона на учебном наборе trainingSet <br/>
 5) Повторно запустить checkAll()

  <script  src="./script.js"></script>

</body>
</html>
script.js
/*Описание задачи:
Прямая у = 3х + 2 делит плоскость координат на 2 части:
левая сторона (значение 0);
правая сторона (значение 1).
Сама прямая принадлежит правой стороне.

Цель: по заданным координатам (х,у) определить, к какой стороне принадлежит точка.

Для обучения и проверки работы нейрона используются выборки по 1000 элементов.
*/

//Константы:
const n = 3; //число входящих сигналов
/*
Входные данные: х = [ X0, X1, X2 ], где
X0 - нейрон смещения, всегда равен 1
X1 - координата х
Х2 - координата у
*/

//Переменные:
let w = [], //массив весов
t = 0.0001; // коэффициент скорости обучения


function ini () { //инициализация начальных весов
  for (let i=0; i<n; i++) {
    w[i] = Math.random()
  }
}

/* Функция "Предсказание нейрона":
1) сумматор: сумма произведений всех входящих иксов на их веса
x0*w0 + x1*w1 + x2*w2
2) функция активаци: пороговая
если полученное в сумматоре значение меньше 0, то результат =0, иначе 1.
*/
function predict (x) { // Функция активации нейрона
  //параметр х - это массив = [Х0 - нейрон смещения, Х1 - координата х, Х2 - координата у]
  let summator = 0;
  for (let i=0; i<n; i++) {
    summator+=x[i]*w[i]
  }
  return (summator < 0) ? 0 : 1
}

//Учебный набор на 1000 примеров: [Х0 - нейрон смещения=1, Х1 - координата х, Х2 - координата у, Х3 - правильный ответ (сторона 0/сторона 1) ]
let trainingSet =
[[1,107,-28,1],[1,-229,419,0],[1,62,379,0],[1,-497,58,0],[1,-169,135,0],[1,-238,437,0],[1,-285,-169,0],[1,387,-395,1],[1,-356,-153,0],[1,93,359,0],[1,-275,-55,0],[1,234,-68,1],[1,-131,299,0],[1,-218,2,0],[1,14,92,0],[1,497,-208,1],[1,150,181,1],[1,-85,-76,0],[1,74,375,0],[1,223,38,1],[1,21,-214,1],[1,328,427,1],[1,-403,461,0],[1,419,-149,1],[1,-248,-290,0],[1,-257,125,0],[1,180,147,1],[1,173,79,1],[1,79,299,0],[1,-102,-402,1],[1,-302,-201,0],[1,378,-220,1],[1,-371,-261,0],[1,-481,49,0],[1,233,-314,1],[1,373,-368,1],[1,482,-94,1],[1,47,-59,1],[1,-375,-31,0],[1,-411,-318,0],[1,297,-388,1],[1,-387,345,0],[1,-154,-222,0],[1,99,-219,1],[1,-88,-72,0],[1,117,32,1],[1,340,375,1],[1,-19,160,0],[1,97,-362,1],[1,200,444,1],[1,454,-152,1],[1,-373,-188,0],[1,425,-321,1],[1,-456,300,0],[1,-156,226,0],[1,377,-251,1],[1,-152,-377,0],[1,199,-7,1],[1,-489,98,0],[1,392,-267,1],[1,-359,-101,0],[1,-439,-128,0],[1,-293,108,0],[1,316,-212,1],[1,-209,440,0],[1,261,207,1],[1,-483,-275,0],[1,40,-347,1],[1,-176,-114,0],[1,391,-88,1],[1,373,-273,1],[1,-137,362,0],[1,295,314,1],[1,498,84,1],[1,61,-266,1],[1,429,270,1],[1,-134,-334,0],[1,244,25,1],[1,91,-41,1],[1,94,223,1],[1,-34,-243,1],[1,-97,-293,1],[1,420,52,1],[1,-194,0,0],[1,-485,-274,0],[1,-277,-438,0],[1,-399,-457,0],[1,115,-177,1],[1,115,308,1],[1,-311,79,0],[1,421,-42,1],[1,-283,-481,0],[1,368,127,1],[1,455,-82,1],[1,-80,52,0],[1,-214,-139,0],[1,-265,-481,0],[1,-15,200,0],[1,-446,56,0],[1,393,-271,1],[1,440,33,1],[1,26,125,0],[1,-150,-16,0],[1,-463,-11,0],[1,427,-134,1],[1,-400,347,0],[1,-401,280,0],[1,-356,418,0],[1,366,-26,1],[1,-424,366,0],[1,80,118,1],[1,-90,-442,1],[1,-54,491,0],[1,-170,-245,0],[1,223,-337,1],[1,-466,142,0],[1,-472,379,0],[1,-398,199,0],[1,-23,456,0],[1,-269,-423,0],[1,298,-23,1],[1,481,173,1],[1,307,-118,1],[1,342,91,1],[1,-339,185,0],[1,-174,-396,0],[1,444,405,1],[1,65,243,0],[1,-443,-436,0],[1,-406,-24,0],[1,-12,-222,1],[1,-414,-40,0],[1,-262,-422,0],[1,207,172,1],[1,452,35,1],[1,325,-289,1],[1,-167,482,0],[1,-423,-180,0],[1,-351,384,0],[1,153,97,1],[1,186,160,1],[1,416,8,1],[1,109,-462,1],[1,201,8,1],[1,55,332,0],[1,-326,23,0],[1,345,157,1],[1,-255,440,0],[1,-271,89,0],[1,368,212,1],[1,382,251,1],[1,300,194,1],[1,-477,-298,0],[1,13,140,0],[1,412,438,1],[1,233,29,1],[1,428,8,1],[1,-357,-22,0],[1,-165,-155,0],[1,-377,211,0],[1,369,414,1],[1,-331,441,0],[1,235,352,1],[1,-371,92,0],[1,-320,-202,0],[1,-129,-319,0],[1,-6,-432,1],[1,309,35,1],[1,375,106,1],[1,456,237,1],[1,425,-346,1],[1,-261,-11,0],[1,273,469,1],[1,415,-493,1],[1,202,-376,1],[1,243,39,1],[1,-176,64,0],[1,399,281,1],[1,-114,248,0],[1,-271,-474,0],[1,-241,-284,0],[1,-64,477,0],[1,79,78,1],[1,476,-298,1],[1,297,475,1],[1,102,-324,1],[1,-492,369,0],[1,156,419,1],[1,-277,-14,0],[1,-320,-74,0],[1,-43,-117,0],[1,-446,76,0],[1,-399,-461,0],[1,464,27,1],[1,490,-327,1],[1,212,-98,1],[1,-268,50,0],[1,-450,-203,0],[1,-116,-98,0],[1,186,-377,1],[1,263,104,1],[1,449,-245,1],[1,500,-276,1],[1,215,-206,1],[1,22,426,0],[1,309,310,1],[1,86,31,1],[1,-136,359,0],[1,228,-249,1],[1,-135,-174,0],[1,205,-404,1],[1,-402,491,0],[1,220,182,1],[1,495,-164,1],[1,-26,-205,1],[1,365,413,1],[1,-253,-484,0],[1,376,311,1],[1,-138,-394,0],[1,-57,-312,1],[1,-338,-71,0],[1,-123,85,0],[1,83,23,1],[1,247,414,1],[1,-428,-336,0],[1,168,-490,1],[1,-4,402,0],[1,-205,-146,0],[1,93,42,1],[1,-467,-100,0],[1,-462,464,0],[1,-250,349,0],[1,-79,194,0],[1,23,-412,1],[1,378,-110,1],[1,313,-311,1],[1,-196,426,0],[1,-111,285,0],[1,-76,468,0],[1,-252,-216,0],[1,-126,-8,0],[1,-283,-71,0],[1,-195,-247,0],[1,-6,140,0],[1,-480,368,0],[1,286,451,1],[1,-339,82,0],[1,-362,-415,0],[1,128,-165,1],[1,-29,-340,1],[1,421,-466,1],[1,14,-310,1],[1,-430,278,0],[1,-72,4,0],[1,258,186,1],[1,318,-446,1],[1,287,-365,1],[1,408,76,1],[1,-448,-468,0],[1,-62,-15,0],[1,154,368,1],[1,275,-422,1],[1,50,-479,1],[1,-363,-403,0],[1,118,-372,1],[1,220,-114,1],[1,316,-1,1],[1,-168,35,0],[1,-251,-425,0],[1,221,-488,1],[1,294,-266,1],[1,-13,349,0],[1,437,414,1],[1,-497,-479,0],[1,473,366,1],[1,42,-469,1],[1,-36,273,0],[1,-357,395,0],[1,-285,-211,0],[1,-107,369,0],[1,-438,40,0],[1,473,-62,1],[1,273,500,1],[1,147,33,1],[1,385,-426,1],[1,140,-444,1],[1,-99,377,0],[1,-217,328,0],[1,-494,-455,0],[1,3,-361,1],[1,280,225,1],[1,-115,59,0],[1,215,284,1],[1,57,-145,1],[1,112,165,1],[1,312,-183,1],[1,331,-367,1],[1,217,-138,1],[1,407,-411,1],[1,36,334,0],[1,-234,-219,0],[1,122,324,1],[1,419,20,1],[1,-120,-329,0],[1,338,418,1],[1,64,142,1],[1,-336,-378,0],[1,-439,-268,0],[1,89,415,0],[1,276,-493,1],[1,238,-448,1],[1,268,-38,1],[1,39,397,0],[1,107,-296,1],[1,343,-424,1],[1,499,-335,1],[1,309,177,1],[1,-478,-402,0],[1,-337,-397,0],[1,491,47,1],[1,51,105,1],[1,-30,410,0],[1,-371,-126,0],[1,396,-45,1],[1,452,-267,1],[1,-98,-338,1],[1,183,-464,1],[1,304,321,1],[1,370,94,1],[1,149,176,1],[1,-103,273,0],[1,292,438,1],[1,-171,93,0],[1,-115,-421,1],[1,-347,447,0],[1,-10,-431,1],[1,-315,179,0],[1,156,125,1],[1,146,-42,1],[1,-476,-155,0],[1,263,486,1],[1,-193,494,0],[1,-354,-356,0],[1,311,54,1],[1,-340,138,0],[1,185,-125,1],[1,345,-424,1],[1,-125,-292,0],[1,-282,225,0],[1,145,-118,1],[1,-467,49,0],[1,-211,-252,0],[1,362,267,1],[1,-223,-292,0],[1,-348,440,0],[1,-168,318,0],[1,132,-370,1],[1,-268,-440,0],[1,-96,317,0],[1,-296,340,0],[1,256,482,1],[1,177,-440,1],[1,-234,379,0],[1,-26,9,0],[1,-498,295,0],[1,251,212,1],[1,211,-141,1],[1,438,-78,1],[1,457,-106,1],[1,337,48,1],[1,-123,-1,0],[1,-238,282,0],[1,-481,253,0],[1,-438,265,0],[1,-272,84,0],[1,87,494,0],[1,141,25,1],[1,-207,-27,0],[1,-21,316,0],[1,252,-461,1],[1,310,-145,1],[1,-275,216,0],[1,196,486,1],[1,465,-318,1],[1,310,92,1],[1,-148,39,0],[1,-497,18,0],[1,486,452,1],[1,80,386,0],[1,-219,-284,0],[1,-226,450,0],[1,-102,323,0],[1,333,46,1],[1,-202,-294,0],[1,-452,-163,0],[1,-398,223,0],[1,-282,-258,0],[1,-368,9,0],[1,149,-125,1],[1,463,-214,1],[1,-67,274,0],[1,90,418,0],[1,153,-233,1],[1,-74,275,0],[1,-349,-286,0],[1,-401,-455,0],[1,-79,-14,0],[1,-451,218,0],[1,-450,153,0],[1,-263,-366,0],[1,384,123,1],[1,-455,125,0],[1,-492,-333,0],[1,489,-124,1],[1,-364,-54,0],[1,-93,55,0],[1,258,-120,1],[1,333,401,1],[1,212,-333,1],[1,165,466,1],[1,392,-316,1],[1,256,124,1],[1,64,129,1],[1,-444,489,0],[1,-352,248,0],[1,425,386,1],[1,413,317,1],[1,244,-268,1],[1,-194,458,0],[1,-412,-350,0],[1,-405,174,0],[1,217,-239,1],[1,385,296,1],[1,210,-382,1],[1,-13,131,0],[1,-310,-343,0],[1,-449,499,0],[1,-1,-279,1],[1,-130,180,0],[1,149,430,1],[1,318,17,1],[1,-265,366,0],[1,-161,-396,0],[1,-369,-398,0],[1,119,441,0],[1,259,268,1],[1,-2,-357,1],[1,-455,10,0],[1,367,-465,1],[1,75,-141,1],[1,-310,489,0],[1,27,-332,1],[1,403,-487,1],[1,245,81,1],[1,-14,26,0],[1,-124,-370,1],[1,-431,441,0],[1,191,-163,1],[1,485,-385,1],[1,153,-131,1],[1,-229,470,0],[1,-455,-5,0],[1,233,44,1],[1,-179,-402,0],[1,3,198,0],[1,429,102,1],[1,-245,500,0],[1,215,-123,1],[1,-198,-477,0],[1,402,-71,1],[1,211,53,1],[1,-301,22,0],[1,471,-184,1],[1,-145,-456,1],[1,-291,-341,0],[1,-382,116,0],[1,229,99,1],[1,-190,-164,0],[1,-314,138,0],[1,-482,-126,0],[1,157,191,1],[1,-95,361,0],[1,-5,-59,1],[1,-339,216,0],[1,-97,445,0],[1,-118,-93,0],[1,113,-226,1],[1,68,162,1],[1,-340,-193,0],[1,24,394,0],[1,420,296,1],[1,-330,109,0],[1,-178,401,0],[1,-226,-386,0],[1,32,173,0],[1,-333,73,0],[1,89,-276,1],[1,295,-174,1],[1,79,-221,1],[1,-149,271,0],[1,-485,-107,0],[1,-212,419,0],[1,-380,-335,0],[1,493,258,1],[1,135,13,1],[1,216,-322,1],[1,-349,-265,0],[1,366,-104,1],[1,362,-73,1],[1,466,227,1],[1,-270,-242,0],[1,-394,-353,0],[1,317,78,1],[1,128,-196,1],[1,-154,426,0],[1,422,5,1],[1,-397,157,0],[1,-240,-76,0],[1,49,-300,1],[1,97,427,0],[1,-201,-454,0],[1,-35,363,0],[1,236,-428,1],[1,369,-229,1],[1,149,314,1],[1,-388,-421,0],[1,230,-305,1],[1,-33,90,0],[1,486,-372,1],[1,306,-43,1],[1,-39,-428,1],[1,100,-418,1],[1,430,58,1],[1,-478,140,0],[1,109,104,1],[1,-336,-305,0],[1,287,148,1],[1,-81,-93,0],[1,58,350,0],[1,256,-405,1],[1,-119,36,0],[1,-55,-303,1],[1,383,268,1],[1,404,-265,1],[1,-236,-346,0],[1,280,352,1],[1,383,108,1],[1,8,-181,1],[1,-152,219,0],[1,-415,-324,0],[1,347,-197,1],[1,-330,242,0],[1,-447,303,0],[1,-269,154,0],[1,380,453,1],[1,444,-14,1],[1,-47,-202,1],[1,-63,-499,1],[1,-439,486,0],[1,-446,55,0],[1,261,412,1],[1,287,-201,1],[1,180,-377,1],[1,-178,-266,0],[1,240,212,1],[1,-365,-404,0],[1,-437,89,0],[1,-196,366,0],[1,-259,-107,0],[1,253,-243,1],[1,-237,-157,0],[1,214,-131,1],[1,-354,79,0],[1,464,-221,1],[1,-17,-213,1],[1,-253,-56,0],[1,-46,-30,0],[1,133,3,1],[1,177,-9,1],[1,304,-275,1],[1,-413,115,0],[1,94,404,0],[1,-324,-13,0],[1,478,-294,1],[1,-198,-144,0],[1,-466,-336,0],[1,58,118,1],[1,366,-106,1],[1,-276,312,0],[1,-111,-189,0],[1,-257,-300,0],[1,-61,488,0],[1,-354,329,0],[1,22,-1,1],[1,-77,-474,1],[1,-309,-152,0],[1,201,-51,1],[1,358,-53,1],[1,-458,-171,0],[1,-177,196,0],[1,407,369,1],[1,123,151,1],[1,-10,402,0],[1,-24,211,0],[1,-90,218,0],[1,81,190,1],[1,57,-41,1],[1,396,-280,1],[1,439,293,1],[1,-50,408,0],[1,-498,242,0],[1,454,-283,1],[1,-415,-476,0],[1,210,-235,1],[1,243,-458,1],[1,-321,249,0],[1,-395,52,0],[1,153,-97,1],[1,-189,-430,0],[1,-229,111,0],[1,-231,-226,0],[1,-153,300,0],[1,204,-425,1],[1,-393,-120,0],[1,219,-372,1],[1,133,-23,1],[1,-326,-333,0],[1,-93,-486,1],[1,-43,168,0],[1,-90,347,0],[1,318,131,1],[1,66,-309,1],[1,-224,-306,0],[1,-247,-346,0],[1,-450,312,0],[1,-384,33,0],[1,477,338,1],[1,301,-12,1],[1,-320,370,0],[1,-50,-365,1],[1,-324,-22,0],[1,-6,-65,1],[1,-160,-232,0],[1,200,-387,1],[1,-107,-148,0],[1,460,-184,1],[1,462,-121,1],[1,-354,-70,0],[1,328,-10,1],[1,242,-128,1],[1,336,-488,1],[1,-390,431,0],[1,-11,404,0],[1,-350,-100,0],[1,64,464,0],[1,-427,-182,0],[1,335,54,1],[1,206,-369,1],[1,353,431,1],[1,152,316,1],[1,-361,220,0],[1,-461,-447,0],[1,173,-249,1],[1,-322,-141,0],[1,-320,-195,0],[1,-374,-9,0],[1,298,479,1],[1,309,2,1],[1,103,-487,1],[1,-83,-6,0],[1,78,219,1],[1,37,130,0],[1,95,-407,1],[1,274,-8,1],[1,-356,42,0],[1,467,202,1],[1,-444,1,0],[1,-370,228,0],[1,-132,-495,1],[1,-49,-1,0],[1,12,456,0],[1,-94,-300,1],[1,-437,490,0],[1,-459,-214,0],[1,-89,-190,0],[1,73,-270,1],[1,370,139,1],[1,181,345,1],[1,-185,-411,0],[1,178,270,1],[1,-300,-355,0],[1,-204,-408,0],[1,207,320,1],[1,-199,-230,0],[1,-58,8,0],[1,217,385,1],[1,279,-492,1],[1,-327,-214,0],[1,-177,184,0],[1,356,-381,1],[1,153,-273,1],[1,114,443,0],[1,488,234,1],[1,-268,499,0],[1,395,289,1],[1,-442,-411,0],[1,354,177,1],[1,186,-369,1],[1,-408,406,0],[1,-319,-239,0],[1,294,262,1],[1,-397,-315,0],[1,-1,-397,1],[1,-485,17,0],[1,-14,276,0],[1,-427,457,0],[1,-39,338,0],[1,-453,374,0],[1,-427,329,0],[1,156,-433,1],[1,-116,457,0],[1,-39,-193,1],[1,-81,287,0],[1,360,469,1],[1,33,192,0],[1,99,-252,1],[1,-194,-366,0],[1,-482,61,0],[1,312,-207,1],[1,-282,-417,0],[1,411,103,1],[1,454,56,1],[1,500,-169,1],[1,-184,-101,0],[1,259,-156,1],[1,238,132,1],[1,114,419,0],[1,-375,158,0],[1,-344,247,0],[1,391,67,1],[1,193,309,1],[1,-94,-7,0],[1,282,-201,1],[1,-458,262,0],[1,-200,-102,0],[1,-229,-413,0],[1,227,-489,1],[1,-30,-475,1],[1,-3,-350,1],[1,138,417,0],[1,265,-482,1],[1,-92,-469,1],[1,346,362,1],[1,327,209,1],[1,-439,429,0],[1,218,118,1],[1,-252,-23,0],[1,469,135,1],[1,339,-118,1],[1,-191,463,0],[1,-409,391,0],[1,170,88,1],[1,232,-436,1],[1,213,235,1],[1,-321,-237,0],[1,284,419,1],[1,216,-401,1],[1,-192,6,0],[1,435,416,1],[1,-231,-383,0],[1,0,-128,1],[1,-461,-427,0],[1,201,289,1],[1,344,289,1],[1,-242,314,0],[1,375,338,1],[1,220,292,1],[1,25,189,0],[1,-129,-409,1],[1,386,-413,1],[1,86,-421,1],[1,-235,236,0],[1,153,-14,1],[1,83,329,0],[1,24,-7,1],[1,31,180,0],[1,-338,438,0],[1,-441,287,0],[1,335,388,1],[1,-383,67,0],[1,-204,-113,0],[1,73,-128,1],[1,-242,-415,0],[1,-35,-318,1],[1,-199,64,0],[1,-67,163,0],[1,296,18,1],[1,-36,-43,0],[1,260,-167,1],[1,-72,422,0],[1,246,-89,1],[1,-444,-306,0],[1,357,34,1],[1,103,270,1],[1,-179,41,0],[1,439,24,1],[1,-53,-474,1],[1,363,415,1],[1,-273,-338,0],[1,-154,-258,0],[1,-464,-197,0],[1,267,-290,1],[1,-470,209,0],[1,-323,31,0],[1,296,104,1],[1,362,464,1],[1,449,-232,1],[1,200,111,1],[1,133,432,0],[1,-405,64,0],[1,462,108,1],[1,207,29,1],[1,-336,264,0],[1,-338,461,0],[1,268,271,1],[1,-240,171,0],[1,-328,27,0],[1,-382,-483,0],[1,-329,355,0],[1,-410,33,0],[1,230,-411,1],[1,-260,-11,0],[1,448,107,1],[1,-175,490,0],[1,235,157,1],[1,399,-279,1],[1,-415,401,0],[1,-47,62,0],[1,-458,-84,0],[1,-333,-313,0],[1,80,497,0],[1,-161,-309,0],[1,200,-286,1],[1,496,-363,1],[1,150,219,1],[1,178,118,1],[1,-414,-123,0],[1,-486,467,0],[1,-215,-169,0],[1,-48,265,0],[1,394,-28,1],[1,18,-98,1],[1,78,446,0],[1,388,-57,1],[1,452,-27,1],[1,166,-289,1],[1,-357,261,0],[1,372,-207,1],[1,391,-179,1],[1,253,476,1],[1,-248,-229,0],[1,-473,-361,0],[1,2,-215,1],[1,-281,-125,0],[1,-483,401,0],[1,-51,295,0],[1,-59,430,0],[1,-332,-416,0],[1,-430,-372,0],[1,127,474,0],[1,130,197,1],[1,-167,98,0],[1,193,-172,1],[1,-291,-367,0],[1,-225,-192,0],[1,285,248,1],[1,-196,476,0],[1,-407,456,0],[1,479,-259,1],[1,-297,-241,0],[1,21,297,0],[1,287,227,1],[1,266,19,1],[1,-295,-113,0],[1,256,242,1],[1,-408,-479,0],[1,-267,421,0],[1,-480,97,0],[1,-26,-150,1],[1,475,477,1],[1,-307,19,0],[1,317,-204,1],[1,261,-286,1],[1,372,402,1],[1,-147,-367,0],[1,-401,286,0],[1,314,252,1],[1,334,-344,1],[1,94,384,0],[1,418,-497,1],[1,-136,-70,0],[1,91,-488,1],[1,-153,57,0],[1,-470,-369,0],[1,264,416,1],[1,-419,199,0],[1,-65,376,0],[1,325,269,1],[1,180,-129,1],[1,-497,441,0],[1,-29,-397,1],[1,31,-231,1],[1,402,-247,1],[1,208,-411,1],[1,106,130,1],[1,-316,258,0],[1,275,18,1],[1,-435,-135,0],[1,446,-184,1],[1,377,7,1],[1,-341,-376,0],[1,-463,336,0],[1,-42,-87,0],[1,-443,160,0],[1,100,-454,1],[1,-197,-7,0],[1,65,310,0],[1,-446,209,0],[1,139,311,1],[1,176,-299,1],[1,385,-286,1],[1,-4,258,0],[1,278,244,1],[1,-475,-161,0],[1,313,131,1],[1,-459,-126,0],[1,142,183,1],[1,-433,181,0],[1,188,-352,1],[1,177,225,1],[1,-192,420,0],[1,211,-62,1],[1,-160,138,0],[1,346,292,1],[1,114,3,1],[1,106,-98,1],[1,196,-90,1],[1,335,179,1],[1,-27,382,0],[1,-350,314,0],[1,427,-219,1],[1,-290,-78,0],[1,406,-483,1],[1,19,436,0],[1,-97,274,0],[1,13,-257,1],[1,4,263,0],[1,-323,-207,0],[1,-224,-126,0],[1,-381,402,0],[1,48,-216,1],[1,469,-303,1],[1,-406,362,0],[1,427,151,1],[1,319,261,1],[1,-428,-6,0],[1,-213,238,0],[1,3,-188,1],[1,-46,-97,0],[1,-416,-86,0],[1,201,190,1],[1,-76,-345,1],[1,354,-411,1],[1,466,-432,1],[1,120,330,1],[1,290,106,1],[1,221,65,1],[1,389,-144,1],[1,378,-287,1],[1,-154,-240,0],[1,327,-320,1],[1,329,-461,1],[1,215,204,1],[1,-310,-154,0],[1,475,121,1],[1,-190,-208,0],[1,-460,365,0],[1,281,57,1],[1,446,456,1],[1,382,-201,1],[1,98,435,0],[1,370,-367,1],[1,410,63,1],[1,252,-127,1],[1,-149,-171,0],[1,495,-335,1],[1,397,-290,1],[1,-3,120,0],[1,-404,-137,0],[1,-104,-118,0]]




function train (numberOfEras=1) { // Обучение нейрона
for (let e=0; e<numberOfEras; e++) { //Цикл1: перебор эпох
  for (let i=0; i<trainingSet.length; i++) { // Вложенный Цикл2: перебор примеров из учебного набора
    let d; //значение ошибки по текущему примеру
d = trainingSet[i][3] -predict([trainingSet[i][0], trainingSet[i][1], trainingSet[i][2]])
for (let j=0; j<n; j++) { //Вложенный Цикл3: корректировка весов
  w[j] += d*t*trainingSet[i][j]
} //конец вложенного Цикла3
} //конец вложенного Цикла2
} //конец Цикла1
} // конец функции

//Полный набор данных для проверки, 1000 комбинаций
let fullCheckSet =
[[1,288,-425,1],[1,-331,-85,0],[1,67,-415,1],[1,187,459,1],[1,170,-54,1],[1,338,354,1],[1,66,-414,1],[1,-202,274,0],[1,48,-361,1],[1,-184,-298,0],[1,-384,268,0],[1,-225,265,0],[1,-225,-82,0],[1,-452,381,0],[1,189,-409,1],[1,-328,190,0],[1,231,-173,1],[1,6,6,1],[1,-330,489,0],[1,254,-452,1],[1,27,-157,1],[1,122,-183,1],[1,-396,465,0],[1,-164,329,0],[1,147,-22,1],[1,240,-112,1],[1,-337,-137,0],[1,426,-395,1],[1,-374,-493,0],[1,333,321,1],[1,-89,194,0],[1,-492,272,0],[1,-41,164,0],[1,163,43,1],[1,-59,-460,1],[1,316,-255,1],[1,-384,375,0],[1,345,-280,1],[1,160,308,1],[1,272,-90,1],[1,-1,147,0],[1,-4,-457,1],[1,324,455,1],[1,128,-83,1],[1,146,237,1],[1,-249,345,0],[1,-61,-58,0],[1,-50,-272,1],[1,-262,-449,0],[1,465,-430,1],[1,293,337,1],[1,-236,425,0],[1,307,135,1],[1,-183,132,0],[1,-337,354,0],[1,136,394,1],[1,46,-349,1],[1,422,44,1],[1,-223,-298,0],[1,389,474,1],[1,303,46,1],[1,-291,77,0],[1,-354,-268,0],[1,480,7,1],[1,-343,-93,0],[1,75,338,0],[1,-270,256,0],[1,-224,-455,0],[1,476,128,1],[1,267,-177,1],[1,-198,389,0],[1,99,-346,1],[1,-46,-333,1],[1,1,-494,1],[1,-34,439,0],[1,444,-171,1],[1,-34,-470,1],[1,114,439,0],[1,46,-358,1],[1,-269,93,0],[1,496,-341,1],[1,368,-310,1],[1,-46,57,0],[1,-214,197,0],[1,10,38,0],[1,167,-315,1],[1,-282,-1,0],[1,487,-293,1],[1,-85,172,0],[1,52,-366,1],[1,-464,221,0],[1,-282,473,0],[1,158,81,1],[1,-169,329,0],[1,-356,453,0],[1,305,79,1],[1,83,73,1],[1,-441,492,0],[1,-234,20,0],[1,-444,-30,0],[1,-71,-137,0],[1,450,290,1],[1,-376,-16,0],[1,-494,-192,0],[1,-309,62,0],[1,-62,334,0],[1,333,-316,1],[1,121,-449,1],[1,-335,-357,0],[1,-213,-306,0],[1,464,-406,1],[1,21,425,0],[1,-358,-209,0],[1,110,57,1],[1,276,138,1],[1,318,-327,1],[1,-382,424,0],[1,-379,102,0],[1,-141,459,0],[1,178,-486,1],[1,-113,-238,0],[1,287,-406,1],[1,-56,202,0],[1,-340,191,0],[1,-480,-416,0],[1,-280,-499,0],[1,-265,20,0],[1,155,433,1],[1,-378,129,0],[1,403,-383,1],[1,411,-137,1],[1,498,-129,1],[1,176,216,1],[1,-229,-172,0],[1,-147,123,0],[1,470,194,1],[1,-36,-182,1],[1,-259,151,0],[1,-202,341,0],[1,-92,-114,0],[1,-166,179,0],[1,64,97,1],[1,-221,-500,0],[1,105,431,0],[1,-478,-405,0],[1,182,-215,1],[1,223,-100,1],[1,-472,-245,0],[1,367,151,1],[1,-36,417,0],[1,-463,212,0],[1,146,-495,1],[1,498,-17,1],[1,-272,398,0],[1,311,-383,1],[1,-220,479,0],[1,-491,202,0],[1,492,463,1],[1,-450,-148,0],[1,36,162,0],[1,204,166,1],[1,270,-438,1],[1,500,-444,1],[1,243,-145,1],[1,-295,-365,0],[1,-454,194,0],[1,-338,-380,0],[1,-183,320,0],[1,167,288,1],[1,-267,89,0],[1,-421,62,0],[1,163,217,1],[1,301,144,1],[1,-410,-132,0],[1,368,-418,1],[1,-31,-126,1],[1,183,-223,1],[1,48,345,0],[1,176,133,1],[1,339,72,1],[1,132,-469,1],[1,-171,-342,0],[1,-452,-300,0],[1,-299,-388,0],[1,-15,-400,1],[1,-384,300,0],[1,137,71,1],[1,-143,396,0],[1,-253,-473,0],[1,193,419,1],[1,313,470,1],[1,-168,-375,0],[1,422,-423,1],[1,205,467,1],[1,39,-126,1],[1,441,-452,1],[1,-183,469,0],[1,-322,404,0],[1,-232,240,0],[1,-412,-198,0],[1,269,176,1],[1,430,158,1],[1,244,72,1],[1,369,79,1],[1,468,-152,1],[1,-160,-9,0],[1,-192,-441,0],[1,-31,295,0],[1,103,401,0],[1,265,-253,1],[1,248,-32,1],[1,237,-128,1],[1,-423,30,0],[1,490,-301,1],[1,246,112,1],[1,-486,53,0],[1,-157,-305,0],[1,261,-156,1],[1,244,486,1],[1,19,409,0],[1,313,-380,1],[1,-101,73,0],[1,-128,94,0],[1,-398,-204,0],[1,-108,-13,0],[1,373,-428,1],[1,141,92,1],[1,194,106,1],[1,394,291,1],[1,64,206,0],[1,284,102,1],[1,-361,33,0],[1,-11,284,0],[1,-399,368,0],[1,461,484,1],[1,-104,-13,0],[1,-108,44,0],[1,-179,-12,0],[1,-457,-133,0],[1,-248,1,0],[1,191,442,1],[1,-143,-20,0],[1,-149,15,0],[1,362,158,1],[1,-444,227,0],[1,-123,343,0],[1,21,415,0],[1,-160,-376,0],[1,-378,31,0],[1,-275,-400,0],[1,150,54,1],[1,130,-153,1],[1,-48,-223,1],[1,45,26,1],[1,-11,497,0],[1,120,-130,1],[1,-126,424,0],[1,60,283,0],[1,221,-255,1],[1,-244,-24,0],[1,-84,489,0],[1,243,-208,1],[1,-190,348,0],[1,500,99,1],[1,221,492,1],[1,-412,98,0],[1,5,-136,1],[1,12,-492,1],[1,124,326,1],[1,47,-47,1],[1,-213,135,0],[1,420,292,1],[1,21,-414,1],[1,-64,-309,1],[1,-486,-263,0],[1,-176,77,0],[1,-250,28,0],[1,-133,-341,0],[1,25,-351,1],[1,8,245,0],[1,-21,-330,1],[1,-240,167,0],[1,-297,426,0],[1,430,-399,1],[1,-466,-450,0],[1,27,433,0],[1,-125,96,0],[1,-329,123,0],[1,130,-253,1],[1,-79,474,0],[1,438,-365,1],[1,490,-89,1],[1,-261,99,0],[1,306,-236,1],[1,-209,48,0],[1,477,-48,1],[1,-288,4,0],[1,-148,-275,0],[1,16,55,0],[1,149,-409,1],[1,-219,-225,0],[1,-248,-175,0],[1,-309,-90,0],[1,-49,-56,0],[1,322,291,1],[1,-429,123,0],[1,-50,84,0],[1,284,-445,1],[1,-437,116,0],[1,-196,-414,0],[1,144,459,0],[1,147,-247,1],[1,-16,-169,1],[1,-9,415,0],[1,-40,148,0],[1,419,71,1],[1,-236,24,0],[1,34,-101,1],[1,-25,307,0],[1,97,17,1],[1,38,328,0],[1,474,51,1],[1,388,79,1],[1,57,236,0],[1,-392,-119,0],[1,45,351,0],[1,110,365,0],[1,16,-175,1],[1,-10,-163,1],[1,-211,492,0],[1,-500,238,0],[1,412,139,1],[1,-109,-144,0],[1,356,-80,1],[1,-246,-375,0],[1,-129,-54,0],[1,-284,72,0],[1,-83,298,0],[1,374,370,1],[1,-228,190,0],[1,278,-335,1],[1,280,-240,1],[1,219,-124,1],[1,168,-55,1],[1,-335,9,0],[1,352,-15,1],[1,315,366,1],[1,-2,366,0],[1,135,328,1],[1,143,-356,1],[1,4,142,0],[1,85,-445,1],[1,-38,-28,0],[1,-152,-238,0],[1,45,418,0],[1,-121,353,0],[1,434,-339,1],[1,360,-128,1],[1,-64,-37,0],[1,306,-96,1],[1,-462,-444,0],[1,-210,-375,0],[1,88,251,1],[1,346,-169,1],[1,467,-442,1],[1,179,-295,1],[1,481,-169,1],[1,170,470,1],[1,-291,68,0],[1,-420,452,0],[1,67,402,0],[1,-229,382,0],[1,436,297,1],[1,161,-386,1],[1,-477,365,0],[1,-1,-124,1],[1,-182,339,0],[1,-234,39,0],[1,-119,-245,0],[1,-143,-244,0],[1,139,413,1],[1,-338,-105,0],[1,235,54,1],[1,-282,-107,0],[1,-138,98,0],[1,-215,254,0],[1,-44,-227,1],[1,-171,-492,0],[1,307,-92,1],[1,-96,457,0],[1,-174,-327,0],[1,132,247,1],[1,225,268,1],[1,-453,-282,0],[1,33,157,0],[1,-58,205,0],[1,344,-203,1],[1,412,-166,1],[1,295,-337,1],[1,471,111,1],[1,-69,-165,0],[1,245,-280,1],[1,200,-135,1],[1,-465,-274,0],[1,498,284,1],[1,-131,-285,0],[1,484,98,1],[1,63,397,0],[1,52,206,0],[1,87,254,1],[1,122,-280,1],[1,111,377,0],[1,-275,68,0],[1,-285,-454,0],[1,34,43,1],[1,265,187,1],[1,158,165,1],[1,-121,382,0],[1,-320,50,0],[1,186,-193,1],[1,-224,-435,0],[1,0,8,0],[1,71,400,0],[1,-13,-53,1],[1,-26,-146,1],[1,-381,343,0],[1,475,65,1],[1,-91,-23,0],[1,261,55,1],[1,325,418,1],[1,-298,-433,0],[1,447,369,1],[1,-378,403,0],[1,-459,71,0],[1,-104,-52,0],[1,-332,-349,0],[1,-274,15,0],[1,-90,354,0],[1,-345,-499,0],[1,9,-47,1],[1,91,116,1],[1,279,64,1],[1,-273,-162,0],[1,185,170,1],[1,6,194,0],[1,89,59,1],[1,-354,-5,0],[1,225,-294,1],[1,-155,348,0],[1,79,-228,1],[1,484,189,1],[1,-166,472,0],[1,362,143,1],[1,-220,417,0],[1,296,282,1],[1,425,-439,1],[1,-298,469,0],[1,235,-76,1],[1,-63,190,0],[1,179,-383,1],[1,196,278,1],[1,-260,-444,0],[1,-304,275,0],[1,497,373,1],[1,375,-427,1],[1,172,489,1],[1,-453,222,0],[1,-52,304,0],[1,344,-300,1],[1,-352,390,0],[1,-54,34,0],[1,-302,-375,0],[1,332,-196,1],[1,-149,169,0],[1,-255,-456,0],[1,-42,92,0],[1,218,320,1],[1,319,-382,1],[1,233,290,1],[1,-380,191,0],[1,-139,463,0],[1,432,-371,1],[1,280,-324,1],[1,-286,357,0],[1,330,38,1],[1,-403,31,0],[1,308,108,1],[1,-334,-229,0],[1,485,273,1],[1,356,-132,1],[1,88,175,1],[1,-329,179,0],[1,-55,23,0],[1,-256,119,0],[1,426,23,1],[1,-345,-129,0],[1,122,473,0],[1,280,414,1],[1,389,-226,1],[1,400,-314,1],[1,-84,326,0],[1,338,338,1],[1,87,227,1],[1,429,428,1],[1,-360,-397,0],[1,-457,271,0],[1,-38,81,0],[1,146,-442,1],[1,-71,378,0],[1,32,-467,1],[1,155,-356,1],[1,-455,453,0],[1,-306,147,0],[1,84,-203,1],[1,-177,295,0],[1,-479,-290,0],[1,-289,130,0],[1,-321,369,0],[1,195,-25,1],[1,460,306,1],[1,-10,423,0],[1,-15,-74,1],[1,-261,-341,0],[1,309,369,1],[1,-40,-147,1],[1,-347,-232,0],[1,101,32,1],[1,-229,456,0],[1,376,357,1],[1,75,420,0],[1,306,-414,1],[1,-373,47,0],[1,6,-134,1],[1,403,-290,1],[1,360,-31,1],[1,422,-154,1],[1,405,54,1],[1,263,77,1],[1,-468,-314,0],[1,-58,150,0],[1,493,-279,1],[1,-461,-110,0],[1,-487,213,0],[1,-46,235,0],[1,253,286,1],[1,-476,66,0],[1,153,133,1],[1,-344,191,0],[1,-427,-396,0],[1,25,85,0],[1,-325,199,0],[1,184,110,1],[1,151,311,1],[1,-274,-180,0],[1,108,92,1],[1,275,-126,1],[1,427,-21,1],[1,232,242,1],[1,158,229,1],[1,-83,48,0],[1,-282,-344,0],[1,-299,154,0],[1,-89,165,0],[1,380,-483,1],[1,67,-259,1],[1,-41,-391,1],[1,-433,44,0],[1,-448,-363,0],[1,-163,-227,0],[1,265,-458,1],[1,-142,40,0],[1,-99,-445,1],[1,-239,396,0],[1,-325,459,0],[1,-68,-65,0],[1,-294,320,0],[1,-24,-315,1],[1,85,-266,1],[1,282,-167,1],[1,427,124,1],[1,-459,40,0],[1,-436,190,0],[1,-306,476,0],[1,204,-239,1],[1,98,56,1],[1,-404,117,0],[1,315,-196,1],[1,-468,-60,0],[1,-398,162,0],[1,156,-121,1],[1,-334,216,0],[1,64,-373,1],[1,-462,286,0],[1,363,-482,1],[1,-144,418,0],[1,385,-3,1],[1,-414,-477,0],[1,-401,-433,0],[1,261,-85,1],[1,330,-130,1],[1,-476,-435,0],[1,-412,375,0],[1,-282,-49,0],[1,82,-220,1],[1,42,-340,1],[1,-114,-157,0],[1,-407,135,0],[1,-136,-118,0],[1,202,3,1],[1,-316,419,0],[1,142,103,1],[1,496,18,1],[1,-435,-258,0],[1,-440,-491,0],[1,275,294,1],[1,481,143,1],[1,328,241,1],[1,80,346,0],[1,142,321,1],[1,-419,191,0],[1,396,-151,1],[1,-270,399,0],[1,-5,-499,1],[1,1,218,0],[1,24,190,0],[1,-307,108,0],[1,400,-210,1],[1,418,295,1],[1,482,-104,1],[1,420,-364,1],[1,210,-239,1],[1,128,221,1],[1,235,-211,1],[1,-257,-230,0],[1,-348,305,0],[1,431,-412,1],[1,304,-246,1],[1,-425,-114,0],[1,-474,371,0],[1,234,97,1],[1,-223,-78,0],[1,-173,109,0],[1,-226,469,0],[1,-418,328,0],[1,-57,325,0],[1,260,405,1],[1,-387,-405,0],[1,424,358,1],[1,137,-98,1],[1,444,375,1],[1,39,-68,1],[1,476,-292,1],[1,200,-420,1],[1,-148,-69,0],[1,-282,-34,0],[1,499,112,1],[1,399,149,1],[1,381,-110,1],[1,228,-363,1],[1,-371,-488,0],[1,-250,-140,0],[1,295,-273,1],[1,127,-236,1],[1,-329,-487,0],[1,-38,-31,0],[1,-359,422,0],[1,-418,252,0],[1,422,209,1],[1,-364,-75,0],[1,-310,322,0],[1,145,-470,1],[1,159,-2,1],[1,-75,-419,1],[1,-150,486,0],[1,-225,276,0],[1,416,467,1],[1,-409,-458,0],[1,-203,-261,0],[1,435,-315,1],[1,2,-96,1],[1,296,-231,1],[1,293,29,1],[1,377,-489,1],[1,80,355,0],[1,-22,-376,1],[1,230,291,1],[1,-218,-406,0],[1,-266,357,0],[1,414,-175,1],[1,35,143,0],[1,-483,-138,0],[1,122,-310,1],[1,358,196,1],[1,410,208,1],[1,-358,-357,0],[1,-239,-482,0],[1,233,-339,1],[1,-216,-243,0],[1,-298,-349,0],[1,-58,283,0],[1,-42,-309,1],[1,-434,-321,0],[1,28,183,0],[1,-435,-421,0],[1,358,247,1],[1,420,473,1],[1,-17,-51,1],[1,-73,66,0],[1,-436,375,0],[1,353,90,1],[1,-420,396,0],[1,96,86,1],[1,-26,-246,1],[1,381,-34,1],[1,-49,-421,1],[1,-411,350,0],[1,-406,-119,0],[1,-151,-492,1],[1,-90,441,0],[1,-43,486,0],[1,83,74,1],[1,316,-362,1],[1,257,-213,1],[1,-227,-318,0],[1,390,166,1],[1,36,-267,1],[1,-473,445,0],[1,259,-4,1],[1,-344,-431,0],[1,-306,443,0],[1,-399,-235,0],[1,433,64,1],[1,-26,367,0],[1,17,436,0],[1,-40,178,0],[1,256,158,1],[1,-360,244,0],[1,281,49,1],[1,426,497,1],[1,-293,494,0],[1,-175,360,0],[1,-451,217,0],[1,-132,493,0],[1,108,-312,1],[1,-78,-310,1],[1,-329,-204,0],[1,-260,-378,0],[1,288,95,1],[1,398,22,1],[1,-316,-390,0],[1,269,-143,1],[1,408,498,1],[1,-323,485,0],[1,301,80,1],[1,-190,292,0],[1,311,308,1],[1,444,478,1],[1,-438,346,0],[1,169,-429,1],[1,320,-14,1],[1,-272,-96,0],[1,-399,126,0],[1,-356,199,0],[1,275,-129,1],[1,386,-170,1],[1,-330,421,0],[1,216,491,1],[1,452,-25,1],[1,-192,132,0],[1,249,311,1],[1,-491,262,0],[1,-296,-389,0],[1,269,175,1],[1,109,-222,1],[1,184,342,1],[1,-187,-105,0],[1,-109,323,0],[1,-355,456,0],[1,-94,-338,1],[1,-439,250,0],[1,53,-111,1],[1,-332,-359,0],[1,376,-31,1],[1,489,92,1],[1,-39,190,0],[1,107,-218,1],[1,-263,188,0],[1,-360,-274,0],[1,275,490,1],[1,-230,-189,0],[1,288,77,1],[1,-129,356,0],[1,-123,2,0],[1,380,437,1],[1,-394,92,0],[1,427,-217,1],[1,344,-453,1],[1,-434,469,0],[1,98,322,0],[1,-410,54,0],[1,227,129,1],[1,462,-225,1],[1,465,-70,1],[1,173,-209,1],[1,-13,472,0],[1,-245,296,0],[1,-169,-184,0],[1,475,456,1],[1,316,-457,1],[1,-137,-175,0],[1,52,70,1],[1,163,54,1],[1,-374,139,0],[1,-92,-49,0],[1,264,393,1],[1,181,144,1],[1,-320,-85,0],[1,-234,-394,0],[1,-140,-152,0],[1,416,86,1],[1,-305,-334,0],[1,366,211,1],[1,-79,196,0],[1,345,-406,1],[1,-228,188,0],[1,-274,228,0],[1,-453,-434,0],[1,311,-403,1],[1,162,-160,1],[1,-4,321,0],[1,-279,449,0],[1,365,309,1],[1,-292,-209,0],[1,-125,-54,0],[1,35,-215,1],[1,-125,177,0],[1,-207,-40,0],[1,369,370,1],[1,132,459,0],[1,190,107,1],[1,238,-112,1],[1,-229,-392,0],[1,-272,-364,0],[1,-280,-93,0],[1,-81,137,0],[1,148,-287,1],[1,-111,214,0],[1,-285,444,0],[1,306,281,1],[1,345,151,1],[1,-419,92,0],[1,-131,404,0],[1,-286,294,0],[1,-247,-219,0],[1,-363,133,0],[1,-341,-149,0],[1,-128,-112,0],[1,-399,80,0],[1,-56,411,0],[1,-46,20,0],[1,272,405,1],[1,-413,-217,0],[1,48,-178,1],[1,22,-103,1],[1,-124,-59,0],[1,9,121,0],[1,422,212,1],[1,-469,194,0],[1,-7,-263,1],[1,387,147,1],[1,273,-106,1],[1,-496,240,0],[1,482,270,1],[1,-238,449,0],[1,185,-112,1],[1,-495,189,0],[1,46,105,1],[1,488,-287,1],[1,-206,209,0],[1,491,-330,1],[1,16,352,0],[1,318,177,1],[1,449,309,1],[1,-114,-293,0],[1,-65,429,0],[1,67,7,1],[1,18,98,0],[1,451,239,1],[1,229,-1,1],[1,-91,43,0],[1,69,29,1],[1,374,125,1],[1,434,89,1],[1,-348,123,0],[1,179,414,1],[1,-97,-169,0],[1,-221,-162,0],[1,-52,450,0],[1,475,452,1],[1,-481,318,0],[1,402,-126,1],[1,461,33,1],[1,408,489,1],[1,267,-181,1],[1,87,-34,1],[1,488,301,1],[1,376,-347,1],[1,442,339,1],[1,273,-482,1],[1,349,367,1],[1,19,321,0],[1,239,-370,1],[1,-56,441,0],[1,187,299,1],[1,-25,-157,1],[1,325,421,1],[1,205,113,1],[1,449,-40,1],[1,374,-410,1],[1,-446,368,0],[1,-466,496,0],[1,436,-366,1],[1,-377,-368,0],[1,215,48,1],[1,189,-96,1],[1,-225,-272,0],[1,-117,318,0],[1,242,-170,1],[1,-245,-388,0],[1,-420,245,0],[1,136,-393,1],[1,-173,81,0],[1,-382,248,0],[1,356,-336,1],[1,0,262,0],[1,-268,-448,0],[1,-21,-135,1],[1,412,59,1],[1,216,-116,1],[1,369,178,1],[1,98,-254,1],[1,-313,7,0],[1,260,381,1],[1,453,-267,1],[1,-339,163,0],[1,356,-81,1],[1,-296,-380,0],[1,-401,2,0],[1,-497,-170,0],[1,-423,-110,0],[1,-279,-61,0],[1,-264,147,0],[1,429,299,1],[1,31,91,1],[1,-386,-324,0],[1,-360,-60,0],[1,-426,302,0],[1,-348,7,0],[1,389,94,1],[1,201,427,1],[1,-457,-63,0],[1,106,-459,1],[1,133,-102,1],[1,249,340,1],[1,-457,-378,0],[1,105,116,1],[1,428,47,1],[1,-78,310,0],[1,-102,-49,0],[1,-371,422,0],[1,85,-283,1],[1,-447,489,0],[1,-416,-48,0],[1,464,409,1],[1,283,82,1],[1,45,-275,1],[1,-80,-267,1],[1,254,409,1],[1,-468,30,0],[1,499,-167,1],[1,95,211,1],[1,443,67,1],[1,10,86,0],[1,-326,-176,0],[1,48,389,0],[1,44,-144,1],[1,483,-441,1],[1,467,168,1],[1,78,-308,1],[1,185,-457,1],[1,416,375,1],[1,175,327,1],[1,-346,-43,0],[1,-225,-92,0],[1,-82,165,0],[1,-163,-215,0],[1,151,-14,1],[1,417,374,1],[1,-173,-97,0],[1,228,-210,1]]




//Проверка всех примеров из проверочного набора fullCheckSet
function checkAll () {
  let rightSamples = 0;
  for (let i=0; i<fullCheckSet.length; i++) { // перебор всех примеров
  let currentValue = predict([fullCheckSet[i][0], fullCheckSet[i][1], fullCheckSet[i][2]]);
  let rightValue = fullCheckSet[i][3];

  if (currentValue==rightValue)
  {console.log('ОК')
  rightSamples+=1
}
  else {  console.log(`пример № ${i}, x=${fullCheckSet[i][1]}, y=${fullCheckSet[i][2]} currentValue: ${currentValue}, rightValue: ${rightValue}, `)} //подробности выводятся в случае ошибки
  } //конец Цикла

console.log(`${rightSamples} правильных из ${fullCheckSet.length}`);
  } // конец функции
ВЕСА
w=[0.5563085008772537, 0.44644484005178886, 0.10594939032864392]

Задания для самостоятельной работы:

Случайное уравнение прямой:
Графический калькулятор GeoGebra:
Как работать с интерактивным графиком:
В разделе "Алгебра" можно изменить уравнение прямой, а также координаты точки
1
Вам выпало случайное уравнение прямой (запишите его, так как это уравнение скоро изменится).
2
Подготовьте учебный и проверочный наборы для обучения нейрона с тем уравнением прямой, которое вам выпало.
3
Обучите нейрон, чтобы он решал правильно 100% примеров из учебного набора.
4*
Напишите своими руками функцию на JavaScript, которая создает учебный и проверочный наборы данных с заданными параметрами (если всё получилось, выложите код в комментариях).
5**
Идеальные веса. Разгадайте секрет, как найти идеальные веса для нейрона (для любой прямой, если её уравнение известно).
Эти веса должны гарантировать 100%-ную точность, вообще без округлений, всегда!
Показать подсказки
1) Веса связаны с уравнением прямой
2) Веса пропорционально связаны между собой
3) Знаки (+/-) зависят от того, является ли прямая возрастающей или убывающей функцией.
Нашли ответ? Проверьте себя! [только 1 попытка]
эта кнопка с к о р о будет доступна

Дополнительные материалы:

JavaScript на один нейрон:

Это минимальный набор конструкций и ключевых слов языка программирования JavaScript, который нам необходим для написания одного нейрона.
JavaScript на один нейрон 2021

JavaScript на одном листе

JavaScript

Учебник по JavaScript

Полный курс по JavaScript за 6 часов
от Владилена Минина