MCPcopy Create free account

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

Functions939 in github.com/tensorflow/tfjs-examples

↓ 3 callersMethodtextToIndices
* Convert text string to integer indices. * * @param {string} text Input text. * @returns {number[]} Indices of the characters of `text`.
lstm-text-generation/data.js:168
↓ 3 callersMethodtrainOnReplayBatch
* Perform training on a randomly sampled batch from the replay buffer. * * @param {number} batchSize Batch size. * @param {number} gamma Rewa
snake-dqn/agent.js:131
↓ 3 callersMethodupdate
* Update the cart-pole system using an action. * @param {number} action Only the sign of `action` matters. * A value > 0 leads to a rightward
cart-pole/cart_pole.js:91
↓ 3 callersFunctionupdateClearSearchResultsButtonStatus
()
electron/renderer.js:220
↓ 2 callersMethod_getFakeMnistData
Generate some fake MNIST data for testing.
mnist-transfer-cnn/python/mnist_transfer_cnn_test.py:42
↓ 2 callersFunctionappendMessage
(message, sender, appendAfter)
intent-classifier/app/index.js:112
↓ 2 callersMethodaverage
()
snake-dqn/train.js:44
↓ 2 callersFunctionbeginEstimateSegmentationStats
()
gpu-pipeline/ui-util.js:86
↓ 2 callersFunctionbuildGRUModel
(inputShape, dropout, recurrentDropout)
jena-weather/models.js:144
↓ 2 callersFunctionbuildModel
(modelType, numTimeSteps, numFeatures)
jena-weather/models.js:168
↓ 2 callersFunctionbuildSimpleRNNModel
(inputShape)
jena-weather/models.js:128
↓ 2 callersFunctioncalcPitchClassEval
(pitchIndex, classSize, values)
baseball-node/pitch_type.js:133
↓ 2 callersFunctioncalcQValuesAndBestAction
Calculate the current Q-values and the best action.
snake-dqn/index.js:93
↓ 2 callersFunctioncalculateAndDrawConfusionMatrix
* Draw confusion matrix.
iris-fitDataset/index.js:125
↓ 2 callersFunctioncalculateAndDrawConfusionMatrix
* Draw confusion matrix.
iris/index.js:119
↓ 2 callersMethodcheckStoredModelStatus
* Check the status of locally saved model. * * @returns If the locally saved model exists, the model info as a JSON * object. Else, `undefi
cart-pole/index.js:296
↓ 2 callersFunctionclassify
(sentences)
intent-classifier/app/index.js:51
↓ 2 callersFunctioncompileModel
(model)
quantization/model_housing.js:50
↓ 2 callersFunctioncompileModel
(model)
quantization/model_mnist.js:55
↓ 2 callersFunctioncompileShader
(gl, type, src)
gpu-pipeline/webgl/gl-util.js:69
↓ 2 callersFunctionconvertDataToTensors
(data, charTable, digits)
addition-rnn/index.js:162
↓ 2 callersFunctionconvertDataToTensors
(data, charTable, digits)
addition-rnn-webworker/worker.js:154
↓ 2 callersFunctioncreateDataset
* Load a local csv file and prepare the data for training. Data source: * https://archive.ics.uci.edu/ml/datasets/Abalone * * @param {string} csvPa
abalone-node/data.js:27
↓ 2 callersFunctioncreateTextureFrameBuffer
(gl, filterMode, width, height)
gpu-pipeline/webgl/gl-util.js:107
↓ 2 callersFunctioncreateWindow
()
electron/main.js:26
↓ 2 callersFunctiondateTuplesToTensor
(dateTuples)
date-conversion-attention/train.js:75
↓ 2 callersFunctiondeprocessImage
Center and scale input image so the pixel values fall into [0, 255].
visualize-convnet/filters.js:156
↓ 2 callersFunctiondequantize
Simulate weight de-quantization. Args: w: (a numpy.ndarray) The weight to be quantized. bits: (int) number of bits used for the quantiza
quantization/draw_quantization.py:54
↓ 2 callersFunctiondisableModelButtons
()
lstm-text-generation/ui.js:158
↓ 2 callersFunctiondisableModelControls
()
cart-pole/ui.js:113
↓ 2 callersFunctiondisableModelParameterControls
()
lstm-text-generation/ui.js:237
↓ 2 callersMethoddisplayRectangles
* Coordinates are expected to be in the [0, 1] range.
interactive-visualizers/src/app/app.component.ts:1016
↓ 2 callersFunctiondisplaySearchResults
* Display result results (from backend or frontend). * * @param {object} results Search result object. Assumed to have the following * fields: *
electron/renderer.js:96
↓ 2 callersFunctiondoPredict
(predict)
sentiment/ui.js:53
↓ 2 callersFunctiondraw
* Generate an evenly spaced 2d latent space.
fashion-mnist-vae/client.js:154
↓ 2 callersMethoddraw
()
gpu-pipeline/webgl/gl-class.js:87
↓ 2 callersMethoddrawCircle
(ctx, centerX, centerY, radius)
simple-object-detection/synthetic_images.js:176
↓ 2 callersMethoddrawLineSegment
(ctx, x0, y0, x1, y1)
simple-object-detection/synthetic_images.js:189
↓ 2 callersFunctiondrawReals
Refresh examples of real MNIST images.
mnist-acgan/index.js:113
↓ 2 callersFunctionenableGameButtons
()
snake-dqn/index.js:113
↓ 2 callersFunctionenableModelControls
()
cart-pole/ui.js:119
↓ 2 callersMethodencodeBatch
(strings, numRows)
addition-rnn/index.js:70
↓ 2 callersMethodencodeBatch
(strings, numRows)
addition-rnn-webworker/worker.js:62
↓ 2 callersFunctionendEstimateSegmentationStats
()
gpu-pipeline/ui-util.js:90
↓ 2 callersFunctionextract
* Unzip file * * @param {string} sourcePath Source zip file path. * @param {string} destPath destination path.
fashion-mnist-vae/download.js:59
↓ 2 callersFunctionf
()
addition-rnn/index.js:127
↓ 2 callersFunctionf
()
addition-rnn-webworker/worker.js:119
↓ 2 callersFunctionfalsePositiveRate
(yTrue, yPred)
website-phishing/index.js:44
↓ 2 callersFunctionfetchOnceAndSaveToDiskWithBuffer
(filename)
mnist-node/data.js:44
↓ 2 callersFunctionfetchOnceAndSaveToDiskWithBuffer
( baseURL, destDir, filename)
quantization/data_mnist.js:48
↓ 2 callersFunctionfetchOnceAndSaveToDiskWithBuffer
(filename)
mnist-acgan/data.js:47
↓ 2 callersMethodfetchTestImages
()
interactive-visualizers/src/app/app.component.ts:279
↓ 2 callersFunctionfitModel
( model, textData, numEpochs, examplesPerEpoch, batchSize, validationSplit, callbacks)
lstm-text-generation/model.js:73
↓ 2 callersFunctionflatOneHot
(idx)
iris-fitDataset/data.js:84
↓ 2 callersFunctiongameToFeaturesAndLabel
* Takes the state of one complete game and returns features suitable for * training. Returns an object containing features = player1's hand represen
data-generator/index.js:56
↓ 2 callersFunctiongenerateDataForTraining
(trainSplit = 0.25, valSplit = 0.15)
date-conversion-attention/train.js:52
↓ 2 callersMethodgenerateExampleBatch
* Generate a number (i.e., batch) of examples. * * @param {number} batchSize Number of example image in the batch. * @param {number} numCircl
simple-object-detection/synthetic_images.js:281
↓ 2 callersFunctiongenerateLatentVector
* Generate values for the latent vector and show them with the sliders. * * @param {bool} fixedLatent Whether to use fixed value for the latent *
mnist-acgan/index.js:48
↓ 2 callersFunctiongenerateText
* Use `textGenerator` to generate random text, show the characters on the * screen as they are generated one by one.
lstm-text-generation/ui.js:176
↓ 2 callersMethodgetAssetsUrlPrefix
* Get the assets URL path, e.g. `http://assets-url-path/` if the metadata URL * is `http://assets-url-path/metadata.json`.
interactive-visualizers/src/app/app.component.ts:371
↓ 2 callersFunctiongetBaselineMeanAbsoluteError
( jenaWeatherData, normalize, includeDateTime, lookBack, step, delay)
jena-weather/models.js:52
↓ 2 callersMethodgetData_
(isTrainingData)
mnist-node/data.js:150
↓ 2 callersMethodgetData_
(isTrainingData)
quantization/data_mnist.js:206
↓ 2 callersMethodgetData_
(isTrainingData)
mnist-acgan/data.js:152
↓ 2 callersFunctiongetDatasetStats
()
quantization/data_housing.js:39
↓ 2 callersMethodgetFileSystemCacheDirectory_
()
electron/image_classifier.js:183
↓ 2 callersFunctiongetImage
* Captures a frame from the webcam and normalizes it between -1 and 1. * Returns a batched image (1-element batch) of shape [1, w, h, c].
webcam-transfer-learning/index.js:159
↓ 2 callersMethodgetLogitsAndActions
* Get policy-network logits and the action based on state-tensor inputs. * * @param {tf.Tensor} inputs A tf.Tensor instance of shape `[batchSize
cart-pole/index.js:204
↓ 2 callersFunctiongetModel
* Return a tf.Model to tag tokens in an input sequence. * * @param {Object} opts * @return {tf.Model} the model instance
intent-classifier/training/tagger_model.js:26
↓ 2 callersFunctiongetNormalizedDatasets
( count, featureMeans, featureStddevs, labelMean, labelStddev, validationSplit, evaluationSplit)
quantization/data_housing.js:116
↓ 2 callersFunctiongetOutputTensorHeight
()
react-native/pose-detection/App.tsx:243
↓ 2 callersFunctiongetRandomAction
()
snake-dqn/snake_game.js:45
↓ 2 callersMethodgetStateTensor
* Get current state as a tf.Tensor of shape [1, 4].
cart-pole/cart_pole.js:81
↓ 2 callersMethodgetTestData
* Get all test data as a data tensor and a labels tensor. * * @param {number} numExamples Optional number of examples to get. If not * pr
mnist/data.js:126
↓ 2 callersMethodgetTestData
()
quantization/data_mnist.js:202
↓ 2 callersMethodgetTestImagesUrlPrefix
* Get the test images URL path, e.g. `http://test-images-url-path/` if the * test images index is `http://test-images-url-path/index.json`.
interactive-visualizers/src/app/app.component.ts:380
↓ 2 callersMethodgetUniformLocation
(symbol)
gpu-pipeline/webgl/gl-class.js:57
↓ 2 callersFunctionget_word_index
Get word index. Args: reverse: Reverse the index, so that the returned index is from index values to words. Returns: The word inde
sentiment/python/imdb.py:43
↓ 2 callersFunctionhandScoringHelper
(hand)
data-generator/game.js:88
↓ 2 callersMethodhandleInputImage
* Handles an input image as data URL. Displays it in the query element, and * sends it for inference to the right handler depending on the model ty
interactive-visualizers/src/app/app.component.ts:486
↓ 2 callersFunctionhideProgress
Display the indeterminate progress bar.
electron/renderer.js:244
↓ 2 callersMethodinit
* Initializes the MNIST Transfer CNN demo.
mnist-transfer-cnn/index.js:44
↓ 2 callersMethodinit
* Initializes the Sentiment demo.
sentiment/index.js:39
↓ 2 callersFunctioninitGame
()
snake-dqn/index.js:119
↓ 2 callersFunctionisMobile
()
gpu-pipeline/ui-util.js:26
↓ 2 callersFunctionisNode
* Is the current environment Node.js? * * This logic is specific to Electron, because it checks * `process.type`.
electron/image_classifier.js:247
↓ 2 callersMethodload
()
mnist-core/data.js:46
↓ 2 callersFunctionloadCSV
(path)
intent-classifier/training/util.js:26
↓ 2 callersMethodloadData
Loads training and test data.
quantization/data_mnist.js:180
↓ 2 callersFunctionloadFeatures
* Load IMDB data features from a local file. * * @param {string} filePath Data file on local filesystem. * @param {string} numWords Number of words
sentiment/data.js:49
↓ 2 callersFunctionloadHeaderValues
(buffer, headerLength)
mnist-node/data.js:63
↓ 2 callersFunctionloadHeaderValues
(buffer, headerLength)
quantization/data_mnist.js:80
↓ 2 callersFunctionloadHeaderValues
(buffer, headerLength)
mnist-acgan/data.js:66
↓ 2 callersFunctionloadImages
(filename)
mnist-node/data.js:72
↓ 2 callersFunctionloadImages
(baseURL, destDir, filename)
quantization/data_mnist.js:89
↓ 2 callersFunctionloadImages
(filename)
mnist-acgan/data.js:76
↓ 2 callersFunctionloadLabels
(filename)
mnist-node/data.js:99
↓ 2 callersFunctionloadLabels
(baseURL, destDir, filename)
quantization/data_mnist.js:128
↓ 2 callersFunctionloadLabels
(filename)
mnist-acgan/data.js:103
↓ 2 callersFunctionloadMetadata
()
intent-classifier/app/index.js:43
← previousnext →101–200 of 939, ranked by callers