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

Function RNN

browser.js:4104–4125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4102
4103var RNN = function () {
4104 function RNN() {
4105 var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
4106
4107 _classCallCheck(this, RNN);
4108
4109 var defaults = this.constructor.defaults;
4110
4111 Object.assign(this, defaults, options);
4112
4113 this.stepCache = {};
4114 this.runs = 0;
4115 this.totalCost = null;
4116 this.ratioClipped = null;
4117 this.model = null;
4118
4119 this.inputLookup = null;
4120 this.outputLookup = null;
4121
4122 if (options.json) {
4123 this.fromJSON(options.json);
4124 }
4125 }
4126
4127 _createClass(RNN, [{
4128 key: 'initialize',

Callers

nothing calls this directly

Calls 2

_classCallCheckFunction · 0.70
fromJSONMethod · 0.45

Tested by

no test coverage detected