MCPcopy Create free account

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

Functions939 in github.com/tensorflow/tfjs-examples

↓ 1 callersMethoddecodeSequence
(inputSeq)
translation/index.js:131
↓ 1 callersFunctiondecodeZ
* Decode a (batch of) z vector into an image tensor. Z is the vector in latent * space that we want to generate an image for. * * Returns an image
fashion-mnist-vae/client.js:82
↓ 1 callersFunctiondecode_sequence
Decode (i.e., translate) an encoded sentence. Args: input_seq: A `numpy.ndarray` of shape `(1, max_encoder_seq_length, num_encoder_tokens
translation/python/translation.py:171
↓ 1 callersFunctiondescribeKernelElements
(kernel)
boston-housing/index.js:113
↓ 1 callersFunctiondiscountAndNormalizeRewards
* Discount and normalize reward values. * * This function performs two steps: * * 1. Discounts the reward values using `discountRate`. * 2. Norma
cart-pole/index.js:358
↓ 1 callersFunctiondiscountRewards
* Discount the reward values. * * @param {number[]} rewards The reward values to be discounted. * @param {number} discountRate Discount rate: a num
cart-pole/index.js:332
↓ 1 callersFunctiondisplayEmbeddingsPlot
* Display an illustrative representation of the embeddings values * @param {*} embeddings * @param {*} parentEl
intent-classifier/app/tagger.js:203
↓ 1 callersFunctiondisplayTags
* * @param {*} tokenScores * @param {*} parentEl * @param {*} modelName
intent-classifier/app/tagger.js:233
↓ 1 callersFunctiondisplayTokenization
* Render the tokens * * @param {string[]} tokens the tokens * @param {Array.number[]} tokenScores model scores for each token * @param {Array.numb
intent-classifier/app/tagger.js:167
↓ 1 callersFunctiondisplayTokens
* Render the tokens. * * @param {string[]} tokens tokens to display * @param {HTMLElement} parentEl parent element
intent-classifier/app/tagger.js:186
↓ 1 callersFunctiondoEmbedding
( data, labels, numIterations, knnIter, perplexity, onIteration)
tsne-mnist-canvas/index.js:41
↓ 1 callersFunctiondraw
(image, canvas)
mnist-core/ui.js:80
↓ 1 callersFunctiondraw
(image, canvas)
mnist/ui.js:96
↓ 1 callersFunctiondraw
(image, canvas)
webcam-transfer-learning/ui.js:109
↓ 1 callersFunctiondrawAxes
(canvas)
polynomial-regression/index.js:27
↓ 1 callersFunctiondrawBoundingBoxes
(canvas, trueBoundingBox, predictBoundingBox)
simple-object-detection/index.js:42
↓ 1 callersFunctiondrawROC
* Draw a ROC curve. * * @param {tf.Tensor} targets The actual target labels, as a 1D Tensor * object consisting of only 0 and 1 values. * @param
website-phishing/index.js:64
↓ 1 callersMethoddrawRectangle
* Draw a rectangle. * * A rectangle is a target object in the simple object detection task here. * Therefore, its bounding box is returned.
simple-object-detection/synthetic_images.js:217
↓ 1 callersMethoddrawTriangle
* Draw an equilateral triangle. * * A triangle are a target object in the simple object detection task here. * Therefore, its bounding box is
simple-object-detection/synthetic_images.js:240
↓ 1 callersFunctiondrawXYData
(canvas, xyData)
polynomial-regression/index.js:50
↓ 1 callersFunctionembedTokens
* Embed the input sentences using univeversal sentence encoder. * @param {string[]} sentences sentences to embed * @param {UniversalSentenceEncoder}
intent-classifier/training/tokens_to_embeddings.js:47
↓ 1 callersFunctionenableModelParameterControls
()
lstm-text-generation/ui.js:241
↓ 1 callersMethodencodeString
* Encode a string (e.g., a sentence) as a Tensor3D that can be fed directly * into the TensorFlow.js model.
translation/index.js:110
↓ 1 callersFunctionevaluateModelOnTestData
* Run inference on some test Iris flower data. * * @param model The instance of `tf.Model` to run the inference with. * @param testDataset A tf.Dat
iris-fitDataset/index.js:152
↓ 1 callersFunctionevaluateModelOnTestData
* Run inference on some test Iris flower data. * * @param model The instance of `tf.Model` to run the inference with. * @param xTest Test data feat
iris/index.js:145
↓ 1 callersFunctionextractEmbeddingMatrix
* Extract the first embedding matrix from a TensorFlow.js model. * * @param {tf.model} model An instance of tf.Model, assumed to contain an * Emb
sentiment/embedding.js:34
↓ 1 callersFunctionfalsePositives
(yTrue, yPred)
website-phishing/index.js:24
↓ 1 callersFunctionfeaturesAndLabelsToPrettyString
Helper to display processed version of game state.
data-generator/ui.js:88
↓ 1 callersMethodfetchModel
(modelUrl: string)
interactive-visualizers/src/app/app.component.ts:307
↓ 1 callersMethodfinalizeProcessFrame
()
gpu-pipeline/webgl/gl-class.js:143
↓ 1 callersFunctionfindImagesFromDirectoriesRecursive
(dirPath)
electron/image_utils.js:66
↓ 1 callersFunctionfitAndRender
()
polynomial-regression/index.js:238
↓ 1 callersFunctionfitModel
(xyData, epochs, learningRate)
polynomial-regression/index.js:165
↓ 1 callersMethodfitModel
* Train the LSTM model. * * @param {number} numEpochs Number of epochs to train the model for. * @param {number} examplesPerEpoch Number of e
lstm-text-generation/index.js:87
↓ 1 callersFunctionflatMap
(array, func)
intent-classifier/training/util.js:34
↓ 1 callersFunctiongenerate
* Generate an image and preview it on the console. * * @param {tf.LayersModel} decoderModel Decoder portion of the VAE. * @param {number} latentDim
fashion-mnist-vae/train.js:120
↓ 1 callersFunctiongenerateData
(numPoints, coeff, sigma = 0.04)
polynomial-regression-core/data.js:20
↓ 1 callersFunctiongenerateData
* Generate examples. * * Each example consists of a question, e.g., '123+456' and and an * answer, e.g., '579'. * * @param digits Maximum number
addition-rnn/index.js:120
↓ 1 callersFunctiongenerateData
* Generate examples. * * Each example consists of a question, e.g., '123+456' and and an * answer, e.g., '579'. * * @param digits Maximum number
addition-rnn-webworker/worker.js:112
↓ 1 callersMethodgenerateExample
* Generate a single image example. * * @param {number} numCircles Number of circles (background object type) * to include. * @param {num
simple-object-detection/synthetic_images.js:99
↓ 1 callersMethodgenerateExampleBeginIndices_
* Generate the example-begin indices; shuffle them randomly.
lstm-text-generation/data.js:224
↓ 1 callersFunctiongenerateLatentSpace
* Generates a representation of a latent space. * * Returns an array of tensors representing each dimension. Currently * each dimension is evenly s
fashion-mnist-vae/client.js:63
↓ 1 callersFunctiongenerateRandomDateTuple
()
date-conversion-attention/date_format.js:68
↓ 1 callersMethodgenerateText
* Generate text using the LSTM model. * * @param {number[]} sentenceIndices Seed sentence, represented as the * indices of the constituent
lstm-text-generation/index.js:123
↓ 1 callersFunctiongenerateXYData
(canvas, coeffs)
polynomial-regression/index.js:226
↓ 1 callersMethodgetActions
* Get actions based on a state-tensor input. * * @param {tf.Tensor} inputs A tf.Tensor instance of shape `[batchSize, 4]`. * @param {Float32A
cart-pole/index.js:224
↓ 1 callersMethodgetBaseUrlAndFilePaths
()
quantization/data_mnist.js:168
↓ 1 callersFunctiongetBatchSize
()
data-generator/ui.js:41
↓ 1 callersFunctiongetBatchesPerEpoch
()
data-generator/ui.js:49
↓ 1 callersMethodgetCharSet_
* Get the set of unique characters from text.
lstm-text-generation/data.js:204
↓ 1 callersFunctiongetClassificationMessage
(softmaxArr)
intent-classifier/app/index.js:71
↓ 1 callersFunctiongetDataIterator
* Returns a generator function that yields batches of data for training. * * @param {string} embeddingsPath path to ndjson file with token embedding
intent-classifier/training/train_tagger.js:54
↓ 1 callersFunctiongetDataVizOptions
()
jena-weather/ui.js:120
↓ 1 callersFunctiongetEpochsToTrain
()
data-generator/ui.js:53
↓ 1 callersMethodgetGradientsAndSaveActions
(inputTensor)
cart-pole/index.js:181
↓ 1 callersFunctiongetImageElementsWithSrcUrl
* Returns a list of all DOM image elements pointing to the provided srcUrl. * @param {string} srcUrl which url to search for, including 'http(s)://'
chrome-extension/src/content.js:66
↓ 1 callersMethodgetImageSize
Get the required image sizes (height and width).
electron/image_classifier.js:172
↓ 1 callersFunctiongetLatentVectors
* Read the value of the latent-space vector fromthe sliders. * * @param {number} numRepeats Number of times to tile the single latent vector * fo
mnist-acgan/index.js:67
↓ 1 callersMethodgetMainComponentName
Returns the name of the main component registered from JavaScript. This is used to schedule rendering of the component.
react-native/pose-detection/android/app/src/main/java/com/posenet/MainActivity.java:27
↓ 1 callersMethodgetMainComponentName
Returns the name of the main component registered from JavaScript. This is used to schedule rendering of the component.
react-native/image-classification/expo/android/app/src/main/java/com/posenet/MainActivity.java:27
↓ 1 callersMethodgetMeanAndStddev
Get the mean and standard deviation of a data column.
jena-weather/data.js:194
↓ 1 callersMethodgetMerch
(category: string)
angular-predictive-prefetching/client/src/app/merch-display/merch-display.component.ts:37
↓ 1 callersFunctiongetMerchList
(category)
angular-predictive-prefetching/client/src/prefetch.service-worker.js:84
↓ 1 callersMethodgetMerchList
(category: string)
angular-predictive-prefetching/client/src/app/data/merch.service.ts:9
↓ 1 callersFunctiongetParams
()
fashion-mnist-vae/client.js:140
↓ 1 callersFunctiongetRandomDigit
()
data-generator/game.js:52
↓ 1 callersFunctiongetRandomIntegers
(min, max, numIntegers)
snake-dqn/utils.js:41
↓ 1 callersMethodgetReactNativeHost
()
react-native/pose-detection/android/app/src/main/java/com/posenet/MainApplication.java:81
↓ 1 callersMethodgetReactNativeHost
()
react-native/image-classification/expo/android/app/src/main/java/com/posenet/MainApplication.java:81
↓ 1 callersMethodgetReactNativeHost
()
react-native/image-classification/react-native-cli/android/app/src/main/java/com/reactnativecli/MainApplication.java:57
↓ 1 callersMethodgetTestData
()
mnist-node/data.js:146
↓ 1 callersMethodgetTestData
()
website-phishing/data.js:80
↓ 1 callersFunctiongetTextureRotationAngleInDegrees
()
react-native/pose-detection/App.tsx:249
↓ 1 callersMethodgetTitleText
()
interactive-visualizers/projects/playground/e2e/src/app.po.ts:25
↓ 1 callersMethodgetTitleText
()
interactive-visualizers/e2e/src/app.po.ts:25
↓ 1 callersFunctiongetTopKClasses
(logits, topK)
mobilenet/index.js:103
↓ 1 callersMethodgetTrainData
()
mnist-node/data.js:142
↓ 1 callersMethodgetTrainData
* Get all training data as a data tensor and a labels tensor. * * @returns * xs: The data tensor, of shape `[numTrainExamples, 28, 28, 1]`.
mnist/data.js:106
↓ 1 callersMethodgetTrainData
()
quantization/data_mnist.js:198
↓ 1 callersMethodgetTrainData
()
mnist-acgan/data.js:144
↓ 1 callersMethodgetTrainData
* Get all training data as a data tensor and a labels tensor. * * @returns * xs: The data tensor, of shape `[numTrainExamples, 28, 28, 1]`.
mnist-acgan/web-data.js:109
↓ 1 callersMethodgetTrainData
()
website-phishing/data.js:68
↓ 1 callersFunctiongetUserHomeDirectory
Get the user's home directory (Node.js only).
electron/image_classifier.js:256
↓ 1 callersFunctiongetWebGLRenderingContext
* @license * Copyright 2022 Google LLC. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use th
gpu-pipeline/webgl/gl-util.js:18
↓ 1 callersFunctionget_imdb_data
Get IMDB data for training and validation. Args: vocabulary_size: Size of the vocabulary, as an `int`. max_len: Cut text after this number
sentiment/python/imdb.py:73
↓ 1 callersFunctionhashCode
(str)
lstm-text-generation/ui.js:258
↓ 1 callersMethodhiddenLayerSizes
* Get the sizes of the hidden layers. * * @returns {number | number[]} If the model has only one hidden layer, * return the size of the lay
cart-pole/index.js:315
↓ 1 callersFunctionindices_to_words
Convert an iterable of word indices into words. Args: reverse_index: An `dict` mapping word index (as `int`) to word (as `str`). indices: A
sentiment/python/imdb.py:59
↓ 1 callersFunctioninit
* @license * Copyright 2022 Google LLC. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use th
gpu-pipeline/webgl/index.js:18
↓ 1 callersFunctioninit
()
webcam-transfer-learning/index.js:180
↓ 1 callersFunctioninit
()
simple-object-detection/index.js:144
↓ 1 callersFunctioninit
()
date-conversion-attention/index.js:102
↓ 1 callersFunctioninit
()
mnist-acgan/index.js:162
↓ 1 callersMethodinitAppWithTfjsModel
* Initializes the app for the provided model metadata URL.
interactive-visualizers/src/app/app.component.ts:335
↓ 1 callersMethodinitAppWithTfliteModel
* Initializes the app for the provided TFLite model URL.
interactive-visualizers/src/app/app.component.ts:315
↓ 1 callersFunctioninitControls
()
tsne-mnist-canvas/index.js:120
↓ 1 callersFunctioninitVisualization
()
tsne-mnist-canvas/index.js:69
↓ 1 callersMethodinitializeFlipper
Loads Flipper in React Native templates. Call this in the onCreate method with something like initializeFlipper(this, getReactNativeHost().getReactIns
react-native/pose-detection/android/app/src/main/java/com/posenet/MainApplication.java:105
↓ 1 callersMethodinitializeFlipper
Loads Flipper in React Native templates. Call this in the onCreate method with something like initializeFlipper(this, getReactNativeHost().getReactIns
react-native/image-classification/expo/android/app/src/main/java/com/posenet/MainApplication.java:105
↓ 1 callersMethodinitializeFlipper
Loads Flipper in React Native templates. Call this in the onCreate method with something like initializeFlipper(this, getReactNativeHost().getReactIns
react-native/image-classification/react-native-cli/android/app/src/main/java/com/reactnativecli/MainApplication.java:76
← previousnext →301–400 of 939, ranked by callers