MCPcopy Create free account

hub / github.com/tensorflow/tfjs-examples / functions

Functions939 in github.com/tensorflow/tfjs-examples

↓ 2 callersFunctionloadMetadata
* Load metadata for a model. * @param {string} name Name of model. Should be a key in modelUrls
intent-classifier/app/tagger.js:67
↓ 2 callersFunctionloadMetadataTemplate
()
sentiment/data.js:246
↓ 2 callersFunctionloadModel
(modelUrl)
fashion-mnist-vae/client.js:39
↓ 2 callersFunctionloadNDJSON
(path)
intent-classifier/training/train_tagger.js:33
↓ 2 callersFunctionloadTargets
* Load IMDB targets from a file. * * @param {string} filePath Path to the binary targets file. * @return {tf.Tensor} The targets as `tf.Tensor` of
sentiment/data.js:116
↓ 2 callersFunctionloadUSE
* Load the universal sentence encoder model
intent-classifier/app/tagger.js:30
↓ 2 callersFunctionlogitsToSpans
(logits)
iris-fitDataset/ui.js:83
↓ 2 callersFunctionlogitsToSpans
(logits)
iris/ui.js:83
↓ 2 callersMethodmakeFruits_
* Generate a number of new fruits at a random locations. * * The number of frtuis created is such that the total number of * fruits will be e
snake-dqn/snake_game.js:263
↓ 2 callersFunctionmakeMetadata
(totalEpochs, currentEpoch, completed)
mnist-acgan/gan.js:407
↓ 2 callersFunctionmanhanttanDistance
(xy1, xy2)
snake-dqn/snake_game_test.js:35
↓ 2 callersFunctionmaybeDownload
(sourceURL, destPath)
lstm-text-generation/data.js:245
↓ 2 callersFunctionmaybeDownload
* Get a file by downloading it if necessary. * * @param {string} sourceURL URL to download the file from. * @param {string} destPath Destination fi
sentiment/data.js:146
↓ 2 callersFunctionmaybeExtract
* Get extracted files. * * If the files are already extracted, this will be a no-op. * * @param {string} sourcePath Source zip file path. * @para
sentiment/data.js:172
↓ 2 callersFunctionmean
* Calculate the arithmetic mean of a vector. * * @param {Array} vector The vector represented as an Array of Numbers. * * @returns {number} The ar
website-phishing/utils.js:89
↓ 2 callersFunctionmodel
(inputXs)
mnist-core/model.js:51
↓ 2 callersMethodmodelIdentifier
* Get model identifier. * * @returns {string} The model identifier.
lstm-text-generation/index.js:155
↓ 2 callersMethodnextBatch
(batchSize, data, index)
mnist-core/data.js:125
↓ 2 callersMethodnextBatch
(batchSize, data, index)
tsne-mnist-canvas/data.js:123
↓ 2 callersFunctionnormalizeVector
(vector, vectorMean, vectorStddev)
polynomial-regression/index.js:95
↓ 2 callersFunctiononGameEnd
(gameCount, totalGames)
cart-pole/ui.js:81
↓ 2 callersFunctiononIterationEnd
* A function invoked at the end of a training iteration. * * @param {number} iterationCount A count of how many iterations has completed * so far
cart-pole/ui.js:97
↓ 2 callersFunctionplotDataAndPredictions
(container, xs, ys, preds)
polynomial-regression-core/ui.js:43
↓ 2 callersFunctionplotScoreBar
(score, container, className = '')
baseball-node/client.js:97
↓ 2 callersMethodpushGradients
* Push a new dictionary of gradients into records. * * @param {{[varName: string]: tf.Tensor[]}} record The record of variable * gradient:
cart-pole/index.js:237
↓ 2 callersFunctionquantize
Simulate weight quantization. Args: w: (a numpy.ndarray) The weight to be quantized. bits: (int) number of bits used for the quantizatio
quantization/draw_quantization.py:23
↓ 2 callersFunctionrandomHand
()
data-generator/game.js:62
↓ 2 callersMethodremoveOverlayedCanvas
()
interactive-visualizers/src/app/app.component.ts:1071
↓ 2 callersFunctionrenderCartPole
* Render the current state of the system on an HTML canvas. * * @param {CartPole} cartPole The instance of cart-pole system to render. * @param {HT
cart-pole/ui.js:132
↓ 2 callersFunctionrenderSnakeGame
(canvas, game, qValues)
snake-dqn/snake_graphics.js:29
↓ 2 callersFunctionreset
Reset the game state.
snake-dqn/index.js:42
↓ 2 callersMethodreset
()
snake-dqn/agent.js:69
↓ 2 callersFunctionresetOutputMessages
()
data-csv/index.js:146
↓ 2 callersMethodretrainModel
()
mnist-transfer-cnn/index.js:112
↓ 2 callersMethodrunImageSegmenter
* Run the model in case of image segmentation.
interactive-visualizers/src/app/app.component.ts:667
↓ 2 callersMethodsample
* Randomly sample a batch of items from the replay buffer. * * The sampling is done *without* replacement. * * @param {number} batchSize S
snake-dqn/replay_memory.js:61
↓ 2 callersFunctionsetReviewText
(text, predict)
sentiment/ui.js:62
↓ 2 callersFunctionsetupPage
()
gpu-pipeline/ui-util.js:79
↓ 2 callersFunctionshowGeneratorInitially
(generator)
mnist-acgan/index.js:149
↓ 2 callersFunctionshuffle
* Shuffles data and target (maintaining alignment) using Fisher-Yates * algorithm.flab
boston-housing/data.js:110
↓ 2 callersFunctionsimulateGameHandler
* Collects one random play of the game. Processes the sample to generate * features and labels representation of the play. Calls a UI method to ren
data-generator/index.js:74
↓ 2 callersFunctionsleep
(ms)
baseball-node/utils.js:27
↓ 2 callersFunctionstddev
(vector)
polynomial-regression/index.js:85
↓ 2 callersFunctionsum
(xs)
cart-pole/utils.js:35
↓ 2 callersFunctiontagTokens
* Tokenize a sentence and tag the tokens. * * @param {string} sentence sentence to tag * @param {string} model name of model to use * * @return {
intent-classifier/app/tagger.js:107
↓ 2 callersFunctiontensorToCanvas
(tensor, canvas)
custom-layer/index.js:36
↓ 2 callersFunctiontrainModel
( model, jenaWeatherData, normalize, includeDateTime, lookBack, step, delay, batchSize, epochs, custom
jena-weather/models.js:218
↓ 2 callersMethodupdateDetectionScoreThresholdPosition
()
interactive-visualizers/src/app/app.component.ts:1157
↓ 2 callersMethoduseProgram
()
gpu-pipeline/webgl/gl-class.js:53
↓ 2 callersFunctionvae
* The combined encoder-decoder pipeline. * * @param {tf.Model} encoder * @param {tf.Model} decoder * * @returns {tf.Model} the vae.
fashion-mnist-vae/model.js:155
↓ 2 callersFunctionvaeLoss
* The custom loss function for VAE. * * @param {tf.tensor} inputs the encoder inputs a batched image tensor * @param {[tf.tensor]} outputs the vae
fashion-mnist-vae/model.js:179
↓ 2 callersFunctionvisualizeModelLayers
* Visualize layers of a model. * * @param {string} tab Name of the tfjs-vis visor tab on which the visualization * will be made. * @param {tf.la
jena-weather/index.js:209
↓ 2 callersFunctionwriteEmbeddingMatrixAndLabels
( model, prefix, wordIndex, indexFrom)
sentiment/embedding.js:65
↓ 2 callersFunctionwrite_mnist_examples_to_json_file
Write a batch of MNIST examples to a JavaScript (.js) file. Args: x: A numpy array representing the image data, with shape (NUM_EXAMPLES,
mnist-transfer-cnn/python/mnist_transfer_cnn.py:111
↓ 1 callersFunction_to_one_hot
Convert indices to one-hot encoding. Args: indices: A list of `int` indices with length `n`, each eleemnt of which is assumed to be a zer
iris/python/iris_data.py:204
↓ 1 callersMethodaddExample
* Adds an example to the controller dataset. * @param {Tensor} example A tensor representing the example. It can be an image, * an activatio
webcam-transfer-learning/controller_dataset.js:34
↓ 1 callersFunctionaddTextElementToImageNode
* Moves the provided imgNode into a container div, and adds a text div as a * peer. Styles the container div and text div to place the text * on t
chrome-extension/src/content.js:94
↓ 1 callersMethodaddUploadedImage
* Adds an uploaded image and returns its index.
interactive-visualizers/src/app/app.component.ts:477
↓ 1 callersMethodanalyzeImage
* Triggers the model to make a prediction on the image referenced by the * image data. After a successful prediction a IMAGE_CLICK_PROCESSED messag
chrome-extension/src/service_worker.js:104
↓ 1 callersFunctionantirectifier
()
custom-layer/custom_layer.js:91
↓ 1 callersFunctionarrayToJimp
* Convert an image represented as a typed array to a JIMP object. * * @param {Float32Array} imageData * * @returns {Promise[Jimp]} Jimp object rep
fashion-mnist-vae/data.js:128
↓ 1 callersFunctionarraysToTensors
()
boston-housing/index.js:35
↓ 1 callersFunctionbatchImages
* Take an array of images (represented as typedarrays) and return * a tensor representing them. * * @param {Float32Array[]} imagesData * * @retur
fashion-mnist-vae/data.js:105
↓ 1 callersMethodbindTextures
(textures)
gpu-pipeline/webgl/gl-class.js:129
↓ 1 callersFunctionbuildCombinedModel
* Build a combined ACGAN model. * * @param {number} latentSize Size of the latent vector. * @param {tf.SymbolicTensor} imageClass Symbolic tensor f
mnist-acgan/gan.js:244
↓ 1 callersFunctionbuildDiscriminator
* Build the discriminator part of ACGAN. * * The discriminator model of ACGAN takes the input: an image of * MNIST format, of shape [batchSize, 28,
mnist-acgan/gan.js:181
↓ 1 callersFunctionbuildGenerator
* Build the generator part of ACGAN. * * The generator of ACGAN takes two inputs: * * 1. A random latent-space vector (the latent space is often
mnist-acgan/gan.js:87
↓ 1 callersFunctionbuildLinearRegressionModel
* Build a linear-regression model for the temperature-prediction problem. * * @param {tf.Shape} inputShape Input shape (without the batch dimenson).
jena-weather/models.js:90
↓ 1 callersFunctionbuildNewHead
* Build a new head (i.e., output sub-model) that will be connected to * the top of the truncated base for object detection. * * @param {tf.Shape} i
simple-object-detection/train.js:110
↓ 1 callersFunctionbuildObjectDetectionModel
* Builds object-detection model from MobileNet. * * @returns {[tf.Model, tf.layers.Layer[]]} * 1. The newly-built model for simple object detecti
simple-object-detection/train.js:130
↓ 1 callersMethodcalculateMeansAndStddevs_
* Calculate the means and standard deviations of every column. * * TensorFlow.js is used for acceleration.
jena-weather/data.js:155
↓ 1 callersFunctioncompareHands
(hand1, hand2)
data-generator/game.js:117
↓ 1 callersFunctioncompileModel
(model)
quantization/model_fashion_mnist.js:57
↓ 1 callersMethodcompileModel
* Compile model for training. * * @param {number} learningRate The learning rate to use during training.
lstm-text-generation/index.js:73
↓ 1 callersFunctioncomputeBaseline
()
boston-housing/index.js:175
↓ 1 callersMethodconvertAllTextToIndices_
* Convert all training text to integer indices.
lstm-text-generation/data.js:217
↓ 1 callersFunctionconvertToTensors
* Convert Iris data arrays to `tf.Tensor`s. * * @param data The Iris input feature data, an `Array` of `Array`s, each element * of which is assum
iris/data.js:96
↓ 1 callersFunctioncreateAndCompileModel
( layers, hiddenSize, rnnType, digits, vocabularySize)
addition-rnn/index.js:172
↓ 1 callersFunctioncreateAndCompileModel
( layers, hiddenSize, rnnType, digits, vocabularySize)
addition-rnn-webworker/worker.js:164
↓ 1 callersFunctioncreateConvModel
* Creates a convolutional neural network (Convnet) for the MNIST data. * * @returns {tf.Model} An instance of tf.Model.
mnist/index.js:35
↓ 1 callersFunctioncreateDNNModel
* Returns a three layer sequential model suitable for predicting win state from * feature representation. The input shape depends on whether oneHot
data-generator/index.js:114
↓ 1 callersFunctioncreateDenseModel
* Creates a model consisting of only flatten, dense and dropout layers. * * The model create here has approximately the same number of parameters *
mnist/index.js:99
↓ 1 callersFunctioncreateFoundCard
* Create and material-design card for a search match and add * it to the root div for search results.
electron/renderer.js:175
↓ 1 callersFunctioncreateModel
()
gpu-pipeline/ui-util.js:69
↓ 1 callersFunctioncreateModel
()
mnist/index.js:255
↓ 1 callersFunctioncreateModel
()
quantization/model_housing.js:22
↓ 1 callersMethodcreateModel
* Create LSTM model from scratch. * * @param {number | number[]} lstmLayerSizes Sizes of the LSTM layers, as a * number or an non-empty arr
lstm-text-generation/index.js:63
↓ 1 callersMethodcreatePolicyNetwork
* Create the underlying model of this policy network. * * @param {number | number[]} hiddenLayerSizes Size of the hidden layer, as * a sing
cart-pole/index.js:76
↓ 1 callersFunctioncreateProgram
(gl, vertexSrc, fragmentSrc)
gpu-pipeline/webgl/gl-util.js:133
↓ 1 callersFunctioncreateSliders
* Create sliders for the latent space. * * @param {tf.Model} generator The generator part of the trained ACGAN.
mnist-acgan/index.js:127
↓ 1 callersFunctioncreateStatsPanel
()
gpu-pipeline/ui-util.js:54
↓ 1 callersFunctioncreateTexture
(gl, texture, width, height)
gpu-pipeline/webgl/gl-util.js:128
↓ 1 callersFunctioncreateWebGLTexture
(gl, internalFormat, format, type, filterMode, pixelData, width, height)
gpu-pipeline/webgl/gl-util.js:82
↓ 1 callersFunctioncsvToTensors
(data, labels, use, batchSize)
intent-classifier/training/csv_to_tensors.js:49
↓ 1 callersFunctioncustomLayerDemo
()
custom-layer/index.js:22
↓ 1 callersMethoddataIdentifier
* Get data identifier. * * @returns {string} The data identifier.
lstm-text-generation/data.js:92
↓ 1 callersFunctiondatasetToArray
* This is pulled into a separate function to isolate the async code. * @see datasetToArrayHandler
data-generator/index.js:87
↓ 1 callersMethoddecode
* Convert a 2D tensor into a string with the CharacterTable's vocabulary. * * @param x Input 2D tensor. * @param calcArgmax Whether to perfor
addition-rnn/index.js:94
↓ 1 callersMethoddecode
* Convert a 2D tensor into a string with the CharacterTable's vocabulary. * * @param x Input 2D tensor. * @param calcArgmax Whether to perfor
addition-rnn-webworker/worker.js:86
↓ 1 callersFunctiondecodeSequence
Decode (i.e., translate) an encoded sentence. Args: input_seq: A `numpy.ndarray` of shape `(1, max_encoder_seq_length, num_encoder_tokens)`.
translation/translation.ts:294
← previousnext →201–300 of 939, ranked by callers