MCPcopy
hub / github.com/BrainJS/brain.js / _classCallCheck

Function _classCallCheck

browser.js:123–123  ·  view source on GitHub ↗
(instance, Constructor)

Source from the content-addressed store, hash-verified

121var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
122
123function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
124
125var CrossValidate = function () {
126

Callers 15

CrossValidateFunction · 0.70
lookupFunction · 0.70
NeuralNetworkGPUFunction · 0.70
NeuralNetworkFunction · 0.70
GRUTimeStepFunction · 0.70
GRUFunction · 0.70
LSTMTimeStepFunction · 0.70
LSTMFunction · 0.70
EquationFunction · 0.70
MatrixFunction · 0.70
OnesMatrixFunction · 0.70
RandomMatrixFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected