docstring_tokens list | code_tokens list |
|---|---|
[
"initialize",
"the",
"computation",
"graph",
"network"
] | [
"init",
"(",
"null",
",",
"false",
")",
";"
] |
[
"this",
"method",
"allows",
"you",
"to",
"specificy",
"gradients",
"accumulator",
"instance",
"to",
"be",
"used",
"with",
"this",
"model"
] | [
"if",
"(",
"!",
"is",
"init",
"called",
"(",
")",
")",
"init",
"(",
")",
";",
"solver",
"get",
"optimizer",
"(",
")",
"set",
"gradients",
"accumulator",
"(",
"accumulator",
")",
";"
] |
[
"compute",
"activations",
"from",
"input",
"to",
"output",
"of",
"the",
"output",
"layer"
] | [
"set",
"input",
"(",
"input",
")",
";",
"return",
"feed",
"forward",
"(",
"train",
")",
";"
] |
[
"compute",
"activations",
"from",
"input",
"to",
"output",
"of",
"the",
"output",
"layer"
] | [
"try",
"{",
"return",
"ff",
"to",
"layer",
"activations",
"detached",
"(",
"train",
",",
"fwd",
"pass",
"type",
"standard",
",",
"false",
",",
"layers",
"length",
"-",
"1",
",",
"input",
",",
"mask",
",",
"null",
",",
"true",
")",
";",
"}",
"catch",
... |
[
"perform",
"feed",
"-",
"forward",
"optionally",
"(",
"not",
")",
"clearing",
"the",
"layer",
"input",
"arrays",
"<",
"br",
">",
"note",
":",
"when",
"using",
"clear",
"inputs",
"=",
"false",
"there",
"can",
"be",
"some",
"performance",
"and",
"memory",
... | [
"try",
"{",
"return",
"ff",
"to",
"layer",
"activations",
"detached",
"(",
"train",
",",
"fwd",
"pass",
"type",
"standard",
",",
"false",
",",
"layers",
"length",
"-",
"1",
",",
"input",
",",
"mask",
",",
"null",
",",
"clear",
"inputs",
")",
";",
"}"... |
[
"compute",
"the",
"activations",
"from",
"the",
"input",
"to",
"the",
"specified",
"layer",
"<",
"br",
">",
"to",
"compute",
"activations",
"for",
"all",
"layers",
"use",
"feed",
"forward",
"(",
")",
"methods",
"<",
"br",
">",
"note",
":",
"output",
"lis... | [
"try",
"{",
"return",
"ff",
"to",
"layer",
"activations",
"detached",
"(",
"false",
",",
"fwd",
"pass",
"type",
"standard",
",",
"false",
",",
"layer",
"num",
",",
"input",
",",
"mask",
",",
"null",
",",
"true",
")",
";",
"}",
"catch",
"(",
"out",
... |
[
"compute",
"the",
"activations",
"from",
"the",
"input",
"to",
"the",
"specified",
"layer",
"<",
"br",
">",
"to",
"compute",
"activations",
"for",
"all",
"layers",
"use",
"feed",
"forward",
"(",
")",
"methods",
"<",
"br",
">",
"note",
":",
"output",
"lis... | [
"try",
"{",
"int",
"layer",
"vertex",
"idx",
"=",
"layers",
"[",
"layer",
"num",
"]",
"get",
"index",
"(",
")",
";",
"return",
"ff",
"to",
"layer",
"activations",
"detached",
"(",
"train",
",",
"fwd",
"pass",
"type",
"standard",
",",
"false",
",",
"l... |
[
"compute",
"the",
"activations",
"from",
"the",
"input",
"to",
"the",
"specified",
"layer",
"using",
"the",
"currently",
"set",
"input",
"for",
"the",
"network",
"<",
"br",
">",
"to",
"compute",
"activations",
"for",
"all",
"layers",
"use",
"feed",
"forward"... | [
"try",
"{",
"return",
"ff",
"to",
"layer",
"activations",
"detached",
"(",
"train",
",",
"fwd",
"pass",
"type",
"standard",
",",
"false",
",",
"layer",
"num",
",",
"input",
",",
"mask",
",",
"null",
",",
"true",
")",
";",
"}",
"catch",
"(",
"out",
... |
[
"compute",
"activations",
"from",
"input",
"to",
"output",
"of",
"the",
"output",
"layer"
] | [
"return",
"feed",
"forward",
"(",
"false",
")",
";"
] |
[
"compute",
"the",
"activations",
"from",
"the",
"input",
"to",
"the",
"output",
"layer",
"given",
"mask",
"arrays",
"(",
"that",
"may",
"be",
"null",
")",
"the",
"masking",
"arrays",
"are",
"used",
"in",
"situations",
"such",
"an",
"one",
"-",
"to",
"-",... | [
"set",
"layer",
"mask",
"arrays",
"(",
"features",
"mask",
",",
"labels",
"mask",
")",
";",
"list",
"<",
"i",
"n",
"d",
"array",
">",
"list",
"=",
"feed",
"forward",
"(",
"input",
")",
";",
"clear",
"layer",
"mask",
"arrays",
"(",
")",
";",
"return... |
[
"returns",
"a",
"1",
"x",
"m",
"vector",
"where",
"the",
"vector",
"is",
"composed",
"of",
"a",
"flattened",
"vector",
"of",
"all",
"of",
"the",
"weights",
"for",
"the",
"various",
"neural",
"nets",
"(",
"w",
"hbias",
"not",
"vbias",
")",
"and",
"outpu... | [
"return",
"flattened",
"params",
";"
] |
[
"sets",
"the",
"input",
"and",
"labels",
"and",
"returns",
"a",
"score",
"for",
"the",
"prediction",
"wrt",
"true",
"labels"
] | [
"return",
"f",
"1",
"score",
"(",
"data",
"get",
"features",
"(",
")",
",",
"data",
"get",
"labels",
"(",
")",
")",
";"
] |
[
"perform",
"minibatch",
"training",
"on",
"all",
"minibatches",
"in",
"the",
"data",
"set",
"iterator",
"<",
"br",
">",
"note",
"that",
"this",
"method",
"does",
"not",
"do",
"layerwise",
"pretraining",
"<",
"br",
">",
"for",
"pretraining",
"use",
"method",
... | [
"try",
"{",
"fit",
"helper",
"(",
"iterator",
")",
";",
"}",
"catch",
"(",
"out",
"of",
"memory",
"error",
"e",
")",
"{",
"crash",
"reporting",
"util",
"write",
"memory",
"crash",
"dump",
"(",
"this",
",",
"e",
")",
";",
"throw",
"e",
";",
"}"
] |
[
"calculate",
"parameter",
"gradients",
"and",
"input",
"activation",
"gradients",
"given",
"the",
"input",
"and",
"labels"
] | [
"try",
"{",
"return",
"calculate",
"gradients",
"helper",
"(",
"features",
",",
"label",
",",
"f",
"mask",
",",
"label",
"mask",
")",
";",
"}",
"catch",
"(",
"out",
"of",
"memory",
"error",
"e",
")",
"{",
"crash",
"reporting",
"util",
"write",
"memory"... |
[
"get",
"the",
"training",
"listeners",
"for",
"the",
"computation",
"graph"
] | [
"return",
"training",
"listeners",
";"
] |
[
"return",
"predicted",
"label",
"names"
] | [
"int",
"[",
"]",
"int",
"ret",
"=",
"predict",
"(",
"data",
"set",
"get",
"features",
"(",
")",
")",
";",
"list",
"<",
"string",
">",
"ret",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"... |
[
"returns",
"the",
"probabilities",
"for",
"each",
"label",
"for",
"each",
"example",
"row",
"wise"
] | [
"list",
"<",
"i",
"n",
"d",
"array",
">",
"feed",
"=",
"feed",
"forward",
"(",
"examples",
")",
";",
"i",
"output",
"layer",
"o",
"=",
"(",
"i",
"output",
"layer",
")",
"get",
"output",
"layer",
"(",
")",
";",
"return",
"o",
"label",
"probabilities... |
[
"fit",
"the",
"model"
] | [
"fit",
"(",
"data",
",",
"labels",
",",
"null",
",",
"null",
")",
";"
] |
[
"fit",
"the",
"model"
] | [
"try",
"{",
"fit",
"helper",
"(",
"features",
",",
"labels",
",",
"features",
"mask",
",",
"labels",
"mask",
")",
";",
"}",
"catch",
"(",
"out",
"of",
"memory",
"error",
"e",
")",
"{",
"crash",
"reporting",
"util",
"write",
"memory",
"crash",
"dump",
... |
[
"fit",
"the",
"model"
] | [
"fit",
"(",
"data",
"get",
"features",
"(",
")",
",",
"data",
"get",
"labels",
"(",
")",
",",
"data",
"get",
"features",
"mask",
"array",
"(",
")",
",",
"data",
"get",
"labels",
"mask",
"array",
"(",
")",
")",
";"
] |
[
"label",
"the",
"probabilities",
"of",
"the",
"input"
] | [
"return",
"output",
"(",
"input",
",",
"train",
"=",
"=",
"training",
"mode",
"train",
")",
";"
] |
[
"label",
"the",
"probabilities",
"of",
"the",
"input"
] | [
"return",
"output",
"(",
"input",
",",
"train",
",",
"null",
",",
"null",
")",
";"
] |
[
"calculate",
"the",
"output",
"of",
"the",
"network",
"with",
"masking",
"arrays",
"the",
"masking",
"arrays",
"are",
"used",
"in",
"situations",
"such",
"as",
"one",
"-",
"to",
"-",
"many",
"and",
"many",
"-",
"to",
"-",
"one",
"recurrent",
"neural",
"n... | [
"return",
"output",
"(",
"input",
",",
"train",
",",
"features",
"mask",
",",
"labels",
"mask",
",",
"null",
")",
";"
] |
[
"get",
"the",
"network",
"output",
"which",
"is",
"optionally",
"placed",
"in",
"the",
"specified",
"memory",
"workspace",
"<",
"br",
">",
"if",
"no",
"memory",
"workspace",
"is",
"provided",
"the",
"output",
"will",
"be",
"detached",
"(",
"not",
"in",
"an... | [
"return",
"output",
"(",
"input",
",",
"train",
",",
"null",
",",
"null",
",",
"output",
"workspace",
")",
";"
] |
[
"get",
"the",
"network",
"output",
"which",
"is",
"optionally",
"placed",
"in",
"the",
"specified",
"memory",
"workspace",
"<",
"br",
">",
"if",
"no",
"memory",
"workspace",
"is",
"provided",
"the",
"output",
"will",
"be",
"detached",
"(",
"not",
"in",
"an... | [
"try",
"{",
"return",
"output",
"of",
"layer",
"detached",
"(",
"train",
",",
"fwd",
"pass",
"type",
"standard",
",",
"layers",
"length",
"-",
"1",
",",
"input",
",",
"features",
"mask",
",",
"labels",
"mask",
",",
"output",
"workspace",
")",
";",
"}",... |
[
"this",
"method",
"uses",
"provided",
"output",
"adapter",
"to",
"return",
"custom",
"object",
"built",
"from",
"i",
"n",
"d",
"array"
] | [
"try",
"(",
"val",
"ws",
"=",
"nd",
"4j",
"get",
"workspace",
"manager",
"(",
")",
"get",
"and",
"activate",
"workspace",
"(",
"ws",
"all",
"layers",
"act",
"config",
",",
"ws",
"output",
"mem",
")",
")",
"{",
"return",
"output",
"adapter",
"apply",
... |
[
"label",
"the",
"probabilities",
"of",
"the",
"input"
] | [
"return",
"output",
"(",
"input",
",",
"training",
"mode",
"test",
")",
";"
] |
[
"generate",
"the",
"output",
"for",
"all",
"examples",
"/",
"batches",
"in",
"the",
"input",
"iterator",
"and",
"concatenate",
"them",
"into",
"a",
"single",
"array"
] | [
"list",
"<",
"i",
"n",
"d",
"array",
">",
"out",
"list",
"=",
"new",
"array",
"list",
"<",
">",
"(",
")",
";",
"while",
"(",
"iterator",
"has",
"next",
"(",
")",
")",
"{",
"data",
"set",
"next",
"=",
"iterator",
"next",
"(",
")",
";",
"i",
"n... |
[
"generate",
"the",
"output",
"for",
"all",
"examples",
"/",
"batches",
"in",
"the",
"input",
"iterator",
"and",
"concatenate",
"them",
"into",
"a",
"single",
"array"
] | [
"return",
"output",
"(",
"iterator",
",",
"false",
")",
";"
] |
[
"reconstructs",
"the",
"input",
"this",
"is",
"equivalent",
"functionality",
"to",
"a",
"deep",
"autoencoder"
] | [
"list",
"<",
"i",
"n",
"d",
"array",
">",
"forward",
"=",
"feed",
"forward",
"(",
"x",
")",
";",
"return",
"forward",
"get",
"(",
"layer",
"num",
"-",
"1",
")",
";"
] |
[
"sets",
"the",
"input",
"and",
"labels",
"and",
"returns",
"a",
"score",
"for",
"the",
"prediction",
"wrt",
"true",
"labels"
] | [
"feed",
"forward",
"(",
"input",
")",
";",
"set",
"labels",
"(",
"labels",
")",
";",
"evaluation",
"eval",
"=",
"new",
"evaluation",
"(",
")",
";",
"eval",
"eval",
"(",
"labels",
",",
"label",
"probabilities",
"(",
"input",
")",
")",
";",
"return",
"... |
[
"returns",
"the",
"number",
"of",
"possible",
"labels"
] | [
"return",
"labels",
"columns",
"(",
")",
";"
] |
[
"sets",
"the",
"input",
"and",
"labels",
"and",
"returns",
"a",
"score",
"for",
"the",
"prediction",
"with",
"respect",
"to",
"the",
"true",
"labels",
"<",
"br",
">",
"this",
"is",
"equivalent",
"to",
"{"
] | [
"return",
"score",
"(",
"data",
",",
"false",
")",
";"
] |
[
"calculate",
"the",
"score",
"(",
"loss",
"function",
")",
"of",
"the",
"prediction",
"with",
"respect",
"to",
"the",
"true",
"labels",
"<",
"br",
">"
] | [
"try",
"{",
"return",
"score",
"helper",
"(",
"data",
",",
"training",
")",
";",
"}",
"catch",
"(",
"out",
"of",
"memory",
"error",
"e",
")",
"{",
"crash",
"reporting",
"util",
"write",
"memory",
"crash",
"dump",
"(",
"this",
",",
"e",
")",
";",
"t... |
[
"calculate",
"the",
"score",
"for",
"each",
"example",
"in",
"a",
"data",
"set",
"individually",
"unlike",
"{"
] | [
"try",
"{",
"return",
"score",
"examples",
"helper",
"(",
"data",
",",
"add",
"regularization",
"terms",
")",
";",
"}",
"catch",
"(",
"out",
"of",
"memory",
"error",
"e",
")",
"{",
"crash",
"reporting",
"util",
"write",
"memory",
"crash",
"dump",
"(",
... |
[
"clear",
"the",
"inputs",
"clears",
"optimizer",
"state"
] | [
"for",
"(",
"layer",
"layer",
":",
"layers",
")",
"layer",
"clear",
"(",
")",
";",
"input",
"=",
"null",
";",
"labels",
"=",
"null",
";",
"solver",
"=",
"null",
";"
] |
[
"get",
"the",
"output",
"layer"
] | [
"layer",
"ret",
"=",
"get",
"layers",
"(",
")",
"[",
"get",
"layers",
"(",
")",
"length",
"-",
"1",
"]",
";",
"if",
"(",
"ret",
"instanceof",
"frozen",
"layer",
"with",
"backprop",
")",
"{",
"ret",
"=",
"(",
"(",
"frozen",
"layer",
"with",
"backpro... |
[
"sets",
"parameters",
"for",
"the",
"model",
"this",
"is",
"used",
"to",
"manipulate",
"the",
"weights",
"and",
"biases",
"across",
"all",
"neural",
"nets",
"(",
"including",
"the",
"output",
"layer",
")"
] | [
"set",
"params",
"(",
"params",
")",
";"
] |
[
"get",
"the",
"number",
"of",
"layers",
"in",
"the",
"network"
] | [
"return",
"layer",
"wise",
"configurations",
"get",
"confs",
"(",
")",
"size",
"(",
")",
";"
] |
[
"layer",
"methods"
] | [
"return",
"type",
"multilayer",
";"
] |
[
"clear",
"the",
"previous",
"state",
"of",
"the",
"rnn",
"layers",
"(",
"if",
"any",
")"
] | [
"if",
"(",
"layers",
"=",
"=",
"null",
")",
"return",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"layers",
"length",
";",
"i",
"+",
"+",
")",
"{",
"if",
"(",
"layers",
"[",
"i",
"]",
"instanceof",
"recurrent",
"layer",
")",
"(",
"(... |
[
"similar",
"to",
"rnn",
"time",
"step",
"and",
"feed",
"forward",
"(",
")",
"methods",
"difference",
"here",
"is",
"that",
"this",
"method",
":",
"<",
"br",
">",
"(",
"a",
")",
"like",
"rnn",
"time",
"step",
"does",
"forward",
"pass",
"using",
"stored"... | [
"return",
"ff",
"to",
"layer",
"activations",
"detached",
"(",
"training",
",",
"fwd",
"pass",
"type",
"rnn",
"activate",
"with",
"stored",
"state",
",",
"store",
"last",
"for",
"t",
"b",
"p",
"t",
"t",
",",
"layers",
"length",
"-",
"1",
",",
"input",
... |
[
"get",
"the",
"updater",
"for",
"this",
"multi",
"layer",
"network"
] | [
"return",
"get",
"updater",
"(",
"true",
")",
";"
] |
[
"set",
"the",
"updater",
"for",
"the",
"multi",
"layer",
"network"
] | [
"if",
"(",
"solver",
"=",
"=",
"null",
")",
"{",
"solver",
"=",
"new",
"solver",
"builder",
"(",
")",
"configure",
"(",
"conf",
"(",
")",
")",
"listeners",
"(",
"get",
"listeners",
"(",
")",
")",
"model",
"(",
"this",
")",
"build",
"(",
")",
";",... |
[
"remove",
"the",
"mask",
"arrays",
"from",
"all",
"layers",
"<",
"br",
">",
"see",
"{"
] | [
"for",
"(",
"layer",
"layer",
":",
"layers",
")",
"{",
"layer",
"set",
"mask",
"array",
"(",
"null",
")",
";",
"}"
] |
[
"evaluate",
"the",
"network",
"(",
"classification",
"performance",
")"
] | [
"return",
"evaluate",
"(",
"iterator",
",",
"null",
")",
";"
] |
[
"evaluate",
"the",
"network",
"for",
"regression",
"performance"
] | [
"return",
"do",
"evaluation",
"(",
"iterator",
",",
"new",
"regression",
"evaluation",
"(",
"iterator",
"total",
"outcomes",
"(",
")",
")",
")",
"[",
"0",
"]",
";"
] |
[
"evaluate",
"the",
"network",
"(",
"must",
"be",
"a",
"binary",
"classifier",
")",
"on",
"the",
"specified",
"data",
"using",
"the",
"{",
"@",
"link",
"roc",
"}",
"class",
"defaults",
"to",
"exact",
"mode",
"for",
"{",
"@",
"link",
"roc",
"}",
"class",... | [
"return",
"evaluate",
"r",
"o",
"c",
"(",
"iterator",
",",
"0",
")",
";"
] |
[
"evaluate",
"the",
"network",
"(",
"must",
"be",
"a",
"binary",
"classifier",
")",
"on",
"the",
"specified",
"data",
"using",
"the",
"{",
"@",
"link",
"roc",
"}",
"class"
] | [
"return",
"do",
"evaluation",
"(",
"iterator",
",",
"new",
"roc",
"(",
"roc",
"threshold",
"steps",
")",
")",
"[",
"0",
"]",
";"
] |
[
"evaluate",
"the",
"network",
"on",
"the",
"specified",
"data",
"using",
"the",
"{",
"@",
"link",
"r",
"o",
"c",
"multi",
"class",
"}",
"class",
"defaults",
"to",
"exact",
"mode",
"for",
"{",
"@",
"link",
"r",
"o",
"c",
"multi",
"class",
"}",
"class"... | [
"return",
"evaluate",
"r",
"o",
"c",
"multi",
"class",
"(",
"iterator",
",",
"0",
")",
";"
] |
[
"evaluate",
"the",
"network",
"on",
"the",
"specified",
"data",
"using",
"the",
"{",
"@",
"link",
"r",
"o",
"c",
"multi",
"class",
"}",
"class"
] | [
"return",
"do",
"evaluation",
"(",
"iterator",
",",
"new",
"r",
"o",
"c",
"multi",
"class",
"(",
"roc",
"threshold",
"steps",
")",
")",
"[",
"0",
"]",
";"
] |
[
"perform",
"evaluation",
"using",
"an",
"arbitrary",
"i",
"evaluation",
"instance"
] | [
"try",
"{",
"return",
"do",
"evaluation",
"helper",
"(",
"iterator",
",",
"evaluations",
")",
";",
"}",
"catch",
"(",
"out",
"of",
"memory",
"error",
"e",
")",
"{",
"crash",
"reporting",
"util",
"write",
"memory",
"crash",
"dump",
"(",
"this",
",",
"e"... |
[
"evaluate",
"the",
"network",
"on",
"the",
"provided",
"data",
"set",
"(",
"single",
"output",
"computation",
"graphs",
"only",
")",
"used",
"for",
"evaluating",
"the",
"performance",
"of",
"classifiers"
] | [
"return",
"evaluate",
"(",
"iterator",
",",
"labels",
"list",
",",
"1",
")",
";"
] |
[
"perform",
"minibatch",
"training",
"on",
"all",
"minibatches",
"in",
"the",
"multi",
"data",
"set",
"iterator",
"<",
"br",
">",
"note",
":",
"the",
"multi",
"data",
"sets",
"in",
"the",
"multi",
"data",
"set",
"iterator",
"must",
"have",
"exactly",
"1",
... | [
"fit",
"(",
"new",
"multi",
"data",
"set",
"wrapper",
"iterator",
"(",
"iterator",
")",
")",
";"
] |
[
"string",
"detailing",
"the",
"architecture",
"of",
"the",
"multilayernetwork",
"columns",
"are",
"layer",
"index",
"with",
"layer",
"type",
"n",
"in",
"n",
"out",
"total",
"number",
"of",
"parameters",
"and",
"the",
"shapes",
"of",
"the",
"parameters",
"will"... | [
"return",
"summary",
"(",
"null",
")",
";"
] |
[
"generate",
"information",
"regarding",
"memory",
"use",
"for",
"the",
"network",
"for",
"the",
"given",
"input",
"type",
"and",
"minibatch",
"size",
"note",
"that",
"when",
"using",
"workspaces",
"or",
"cu",
"d",
"n",
"n",
"the",
"network",
"should",
"be",
... | [
"return",
"crash",
"reporting",
"util",
"generate",
"memory",
"status",
"(",
"this",
",",
"minibatch",
",",
"input",
"type",
")",
";"
] |
[
"this",
"method",
"just",
"makes",
"sure",
"there",
"s",
"no",
"state",
"preserved",
"within",
"layers"
] | [
"for",
"(",
"layer",
"layer",
":",
"layers",
")",
"{",
"layer",
"clear",
"(",
")",
";",
"layer",
"clear",
"noise",
"weight",
"params",
"(",
")",
";",
"}"
] |
[
"increment",
"the",
"epoch",
"count",
"(",
"in",
"the",
"underlying",
"{",
"@",
"link",
"multi",
"layer",
"configuration",
"}",
"by",
"1",
")",
"note",
"that",
"this",
"is",
"done",
"<",
"i",
">",
"automatically",
"<",
"/",
"i",
">",
"when",
"using",
... | [
"layer",
"wise",
"configurations",
"set",
"epoch",
"count",
"(",
"layer",
"wise",
"configurations",
"get",
"epoch",
"count",
"(",
")",
"+",
"1",
")",
";",
"synchronize",
"iter",
"epoch",
"counts",
"(",
")",
";"
] |
[
"save",
"the",
"computation",
"graph",
"to",
"a",
"file",
"restore",
"using",
"{",
"@",
"link",
"#",
"load",
"(",
"file",
"boolean",
")",
"}",
"note",
"that",
"this",
"saves",
"the",
"updater",
"(",
"i",
"e",
"the",
"state",
"array",
"for",
"momentum",... | [
"save",
"(",
"f",
",",
"true",
")",
";"
] |
[
"save",
"the",
"computation",
"graph",
"to",
"a",
"file",
"restore",
"using",
"{",
"@",
"link",
"#",
"load",
"(",
"file",
"boolean",
")",
"}"
] | [
"model",
"serializer",
"write",
"model",
"(",
"this",
",",
"f",
",",
"save",
"updater",
")",
";"
] |
[
"restore",
"a",
"multi",
"layer",
"network",
"to",
"a",
"file",
"saved",
"using",
"{"
] | [
"return",
"model",
"serializer",
"restore",
"multi",
"layer",
"network",
"(",
"f",
",",
"load",
"updater",
")",
";"
] |
[
"convert",
"this",
"multi",
"layer",
"network",
"to",
"a",
"computation",
"graph"
] | [
"return",
"network",
"utils",
"to",
"computation",
"graph",
"(",
"this",
")",
";"
] |
[
"set",
"the",
"learning",
"rate",
"for",
"all",
"layers",
"in",
"the",
"network",
"to",
"the",
"specified",
"value",
"note",
"that",
"if",
"any",
"learning",
"rate",
"schedules",
"are",
"currently",
"present",
"these",
"will",
"be",
"removed",
"in",
"favor",... | [
"network",
"utils",
"set",
"learning",
"rate",
"(",
"this",
",",
"new",
"lr",
")",
";"
] |
[
"set",
"the",
"learning",
"rate",
"schedule",
"for",
"all",
"layers",
"in",
"the",
"network",
"to",
"the",
"specified",
"schedule",
"this",
"schedule",
"will",
"replace",
"any",
"/",
"all",
"existing",
"schedules",
"and",
"also",
"any",
"fixed",
"learning",
... | [
"network",
"utils",
"set",
"learning",
"rate",
"(",
"this",
",",
"new",
"lr",
")",
";"
] |
[
"set",
"the",
"learning",
"rate",
"for",
"a",
"single",
"layer",
"in",
"the",
"network",
"to",
"the",
"specified",
"value",
"note",
"that",
"if",
"any",
"learning",
"rate",
"schedules",
"are",
"currently",
"present",
"these",
"will",
"be",
"removed",
"in",
... | [
"network",
"utils",
"set",
"learning",
"rate",
"(",
"this",
",",
"layer",
"number",
",",
"new",
"lr",
")",
";"
] |
[
"set",
"the",
"learning",
"rate",
"schedule",
"for",
"a",
"single",
"layer",
"in",
"the",
"network",
"to",
"the",
"specified",
"value",
"<",
"br",
">",
"note",
"also",
"that",
"{",
"@",
"link",
"#",
"set",
"learning",
"rate",
"(",
"i",
"schedule",
")",... | [
"network",
"utils",
"set",
"learning",
"rate",
"(",
"this",
",",
"layer",
"number",
",",
"new",
"lr",
")",
";"
] |
[
"get",
"the",
"current",
"learning",
"rate",
"for",
"the",
"specified",
"layer",
"from",
"the",
"network",
"note",
":",
"if",
"the",
"layer",
"has",
"no",
"learning",
"rate",
"(",
"no",
"parameters",
"or",
"an",
"updater",
"without",
"a",
"learning",
"rate... | [
"return",
"network",
"utils",
"get",
"learning",
"rate",
"(",
"this",
",",
"layer",
"number",
")",
";"
] |
[
"indicates",
"whether",
"some",
"other",
"object",
"is",
"equal",
"to",
"this",
"one",
"<",
"p",
">",
"the",
"{",
"@",
"code",
"equals",
"}",
"method",
"implements",
"an",
"equivalence",
"relation",
"on",
"non",
"-",
"null",
"object",
"references",
":",
... | [
"if",
"(",
"obj",
"=",
"=",
"null",
")",
"return",
"false",
";",
"if",
"(",
"obj",
"instanceof",
"multi",
"layer",
"network",
")",
"{",
"multi",
"layer",
"network",
"network",
"=",
"(",
"multi",
"layer",
"network",
")",
"obj",
";",
"boolean",
"params",... |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"marker",
"<",
"/",
"p",
">"
] | [
"this",
"marker",
"name",
"=",
"marker",
"name",
";"
] |
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"marker",
"<",
"/",
"p",
">"
] | [
"return",
"this",
"marker",
"name",
";"
] |
[
"<",
"p",
">",
"the",
"marker",
"s",
"name",
"<",
"/",
"p",
">"
] | [
"set",
"marker",
"name",
"(",
"marker",
"name",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"cause",
"of",
"the",
"failure",
"this",
"information",
"is",
"generated",
"by",
"the",
"system",
"and",
"can",
"be",
"useful",
"for",
"diagnostic",
"purposes",
"<",
"/",
"p",
">",
"<",
"note",
">",
"<",
"p",
">",
"if",
"<",
"... | [
"set",
"cause",
"(",
"cause",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"cause",
"of",
"the",
"failure",
"this",
"information",
"is",
"generated",
"by",
"the",
"system",
"and",
"can",
"be",
"useful",
"for",
"diagnostic",
"purposes",
"<",
"/",
"p",
">",
"<",
"note",
">",
"<",
"p",
">",
"if",
"<",
"... | [
"with",
"cause",
"(",
"cause",
")",
";"
] |
[
"<",
"p",
">",
"the",
"cause",
"of",
"the",
"failure",
"this",
"information",
"is",
"generated",
"by",
"the",
"system",
"and",
"can",
"be",
"useful",
"for",
"diagnostic",
"purposes",
"<",
"/",
"p",
">",
"<",
"note",
">",
"<",
"p",
">",
"if",
"<",
"... | [
"this",
"cause",
"=",
"cause",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
] |
[
"<",
"p",
">",
"the",
"id",
"of",
"the",
"<",
"code",
">",
"decision",
"task",
"completed",
"<",
"/",
"code",
">",
"event",
"corresponding",
"to",
"the",
"decision",
"task",
"that",
"resulted",
"in",
"the",
"<",
"code",
">",
"record",
"marker",
"failed... | [
"set",
"decision",
"task",
"completed",
"event",
"id",
"(",
"decision",
"task",
"completed",
"event",
"id",
")",
";",
"return",
"this",
";"
] |
[
"basic",
"unary",
"methods"
] | [
"return",
"this",
";"
] |
[
"basic",
"binary",
"methods"
] | [
"return",
"this",
";"
] |
[
"implementations",
"for",
"object"
] | [
"return",
"object",
"!",
"=",
"null",
"&",
"&",
"this",
"get",
"class",
"(",
")",
"=",
"=",
"object",
"get",
"class",
"(",
")",
";"
] |
[
"used",
"to",
"reset",
"cube",
"field"
] | [
"score",
"=",
"0",
";",
"low",
"cap",
"=",
"10",
";",
"color",
"int",
"=",
"0",
";",
"high",
"cap",
"=",
"40",
";",
"difficulty",
"=",
"high",
"cap",
";",
"for",
"(",
"geometry",
"cube",
":",
"cube",
"field",
")",
"{",
"cube",
"remove",
"from",
... |
[
"forcefully",
"takes",
"over",
"camera",
"adding",
"functionality",
"and",
"placing",
"it",
"behind",
"the",
"character"
] | [
"cam",
"set",
"location",
"(",
"player",
"get",
"local",
"translation",
"(",
")",
"add",
"(",
"-",
"8",
",",
"2",
",",
"0",
")",
")",
";",
"cam",
"look",
"at",
"(",
"player",
"get",
"local",
"translation",
"(",
")",
",",
"vector",
"3f",
"unit",
"... |
[
"sets",
"up",
"a",
"bitmap",
"text",
"to",
"be",
"displayed"
] | [
"txt",
"set",
"size",
"(",
"font",
"get",
"char",
"set",
"(",
")",
"get",
"rendered",
"size",
"(",
")",
")",
";",
"txt",
"set",
"local",
"translation",
"(",
"txt",
"get",
"line",
"width",
"(",
")",
"*",
"x",
",",
"txt",
"get",
"line",
"height",
"... |
[
"sets",
"how",
"many",
"lines",
"should",
"be",
"displayed",
"at",
"most"
] | [
"m",
"max",
"displayed",
"lines",
"=",
"number",
"lines",
";"
] |
[
"update",
"m",
"text",
"and",
"m",
"precomputed"
] | [
"m",
"text",
"=",
"text",
";",
"m",
"spannable",
"=",
"(",
"text",
"instanceof",
"spannable",
")",
"?",
"(",
"spannable",
")",
"text",
":",
"null",
";",
"m",
"precomputed",
"=",
"(",
"text",
"instanceof",
"precomputed",
"text",
")",
"?",
"(",
"precompu... |
[
"specify",
"whether",
"this",
"widget",
"should",
"automatically",
"scale",
"the",
"text",
"to",
"try",
"to",
"perfectly",
"fit",
"within",
"the",
"layout",
"bounds",
"if",
"all",
"the",
"configuration",
"params",
"are",
"valid",
"the",
"type",
"of",
"auto",
... | [
"if",
"(",
"supports",
"auto",
"size",
"text",
"(",
")",
")",
"{",
"final",
"display",
"metrics",
"display",
"metrics",
"=",
"get",
"resources",
"(",
")",
"get",
"display",
"metrics",
"(",
")",
";",
"final",
"float",
"auto",
"size",
"min",
"text",
"siz... |
[
"returns",
"the",
"type",
"of",
"auto",
"-",
"size",
"set",
"for",
"this",
"widget"
] | [
"return",
"m",
"auto",
"size",
"text",
"type",
";"
] |
[
"@",
"return",
"the",
"current",
"auto",
"-",
"size",
"step",
"granularity",
"in",
"pixels"
] | [
"return",
"math",
"round",
"(",
"m",
"auto",
"size",
"step",
"granularity",
"in",
"px",
")",
";"
] |
[
"@",
"return",
"the",
"current",
"auto",
"-",
"size",
"minimum",
"text",
"size",
"in",
"pixels",
"(",
"the",
"default",
"is",
"1",
"2sp",
")",
"note",
"that",
"if",
"auto",
"-",
"size",
"has",
"not",
"been",
"configured",
"this",
"function",
"returns",
... | [
"return",
"math",
"round",
"(",
"m",
"auto",
"size",
"min",
"text",
"size",
"in",
"px",
")",
";"
] |
[
"@",
"return",
"the",
"current",
"auto",
"-",
"size",
"maximum",
"text",
"size",
"in",
"pixels",
"(",
"the",
"default",
"is",
"1",
"1",
"2sp",
")",
"note",
"that",
"if",
"auto",
"-",
"size",
"has",
"not",
"been",
"configured",
"this",
"function",
"retu... | [
"return",
"math",
"round",
"(",
"m",
"auto",
"size",
"max",
"text",
"size",
"in",
"px",
")",
";"
] |
[
"@",
"return",
"the",
"current",
"auto",
"-",
"size",
"{",
"@",
"code",
"int",
"}",
"sizes",
"array",
"(",
"in",
"pixels",
")"
] | [
"return",
"m",
"auto",
"size",
"text",
"sizes",
"in",
"px",
";"
] |
[
"returns",
"distinct",
"sorted",
"positive",
"values"
] | [
"final",
"int",
"preset",
"values",
"length",
"=",
"preset",
"values",
"length",
";",
"if",
"(",
"preset",
"values",
"length",
"=",
"=",
"0",
")",
"{",
"return",
"preset",
"values",
";",
"}",
"arrays",
"sort",
"(",
"preset",
"values",
")",
";",
"final"... |
[
"subclasses",
"override",
"this",
"to",
"specify",
"that",
"they",
"have",
"a",
"key",
"listener",
"by",
"default",
"even",
"if",
"not",
"specifically",
"called",
"for",
"in",
"the",
"xml",
"options"
] | [
"return",
"false",
";"
] |
[
"subclasses",
"override",
"this",
"to",
"specify",
"a",
"default",
"movement",
"method"
] | [
"return",
"null",
";"
] |
[
"return",
"the",
"text",
"that",
"text",
"view",
"is",
"displaying",
"if",
"{",
"@",
"link",
"#",
"set",
"text",
"(",
"char",
"sequence",
")",
"}",
"was",
"called",
"with",
"an",
"argument",
"of",
"{",
"@",
"link",
"android",
"widget",
"text",
"view",
... | [
"return",
"m",
"text",
";"
] |
[
"return",
"the",
"text",
"that",
"text",
"view",
"is",
"displaying",
"as",
"an",
"editable",
"object",
"if",
"the",
"text",
"is",
"not",
"editable",
"null",
"is",
"returned"
] | [
"return",
"(",
"m",
"text",
"instanceof",
"editable",
")",
"?",
"(",
"editable",
")",
"m",
"text",
":",
"null",
";"
] |
[
"gets",
"the",
"vertical",
"distance",
"between",
"lines",
"of",
"text",
"in",
"pixels",
"note",
"that",
"markup",
"within",
"the",
"text",
"can",
"cause",
"individual",
"lines",
"to",
"be",
"taller",
"or",
"shorter",
"than",
"this",
"height",
"and",
"the",
... | [
"return",
"fast",
"math",
"round",
"(",
"m",
"text",
"paint",
"get",
"font",
"metrics",
"int",
"(",
"null",
")",
"*",
"m",
"spacing",
"mult",
"+",
"m",
"spacing",
"add",
")",
";"
] |
[
"gets",
"the",
"{"
] | [
"return",
"m",
"layout",
";"
] |
[
"gets",
"the",
"current",
"{",
"@",
"link",
"key",
"listener",
"}",
"for",
"the",
"text",
"view",
"this",
"will",
"frequently",
"be",
"null",
"for",
"non",
"-",
"edit",
"text",
"text",
"views",
"@",
"return",
"the",
"current",
"key",
"listener",
"for",
... | [
"return",
"m",
"editor",
"=",
"=",
"null",
"?",
"null",
":",
"m",
"editor",
"m",
"key",
"listener",
";"
] |
[
"sets",
"the",
"key",
"listener",
"to",
"be",
"used",
"with",
"this",
"text",
"view",
"this",
"can",
"be",
"null",
"to",
"disallow",
"user",
"input",
"note",
"that",
"this",
"method",
"has",
"significant",
"and",
"subtle",
"interactions",
"with",
"soft",
"... | [
"m",
"listener",
"changed",
"=",
"true",
";",
"set",
"key",
"listener",
"only",
"(",
"input",
")",
";",
"fix",
"focusable",
"and",
"clickable",
"settings",
"(",
")",
";",
"if",
"(",
"input",
"!",
"=",
"null",
")",
"{",
"create",
"editor",
"if",
"need... |
[
"gets",
"the",
"{"
] | [
"return",
"m",
"movement",
";"
] |
[
"gets",
"the",
"current",
"{",
"@",
"link",
"android",
"text",
"method",
"transformation",
"method",
"}",
"for",
"the",
"text",
"view",
"this",
"is",
"frequently",
"null",
"except",
"for",
"single",
"-",
"line",
"and",
"password",
"fields",
"@",
"return",
... | [
"return",
"m",
"transformation",
";"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.