MCPcopy
hub / github.com/tensorflow/tfjs-examples / constructor

Method constructor

lstm-text-generation/index.js:50–55  ·  view source on GitHub ↗

* Constructor of NeuralNetworkTextGenerator. * * @param {TextData} textData An instance of `TextData`.

(textData)

Source from the content-addressed store, hash-verified

48 * @param {TextData} textData An instance of `TextData`.
49 */
50 constructor(textData) {
51 this.textData_ = textData;
52 this.charSetSize_ = textData.charSetSize();
53 this.sampleLen_ = textData.sampleLen();
54 this.textLen_ = textData.textLen();
55 }
56
57 /**
58 * Create LSTM model from scratch.

Callers

nothing calls this directly

Calls 3

charSetSizeMethod · 0.80
sampleLenMethod · 0.80
textLenMethod · 0.80

Tested by

no test coverage detected