MCPcopy Create free account

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

Functions939 in github.com/tensorflow/tfjs-examples

↓ 62 callersMethodpredict
(text)
sentiment/index.js:60
↓ 47 callersMethodapply
(OkHttpClient.Builder builder)
react-native/pose-detection/android/app/src/debug/java/com/posenet/ReactNativeFlipper.java:39
↓ 29 callersFunctionlogStatus
(message)
lstm-text-generation/ui.js:61
↓ 22 callersFunctioncreateDeepQNetwork
(h, w, numActions)
snake-dqn/dqn.js:20
↓ 21 callersFunctiontoTwoDigitString
(num)
date-conversion-attention/date_format.js:73
↓ 18 callersMethodgetTime
(index)
jena-weather/data.js:189
↓ 17 callersMethodappend
(x)
snake-dqn/train.js:39
↓ 17 callersMethodstep
* Perform a step of the game. * * @param {0 | 1 | 2 | 3} action The action to take in the current step. * The meaning of the possible value
snake-dqn/snake_game.js:122
↓ 13 callersFunctionexpectArraysClose
(actual, expected)
test_util.js:36
↓ 12 callersMethodload
()
mnist/data.js:41
↓ 11 callersFunctionnormalize
(value, min, max)
baseball-node/utils.js:19
↓ 10 callersMethodgetState
* Get plain JavaScript representation of the game state. * * @return An object with two keys: * - s: {Array<[number, number]>} representing
snake-dqn/snake_game.js:319
↓ 9 callersFunctiongetStateTensor
(state, h, w)
snake-dqn/snake_game.js:347
↓ 9 callersFunctionlogStatus
* Display a message to the info div. * * @param {string} message The message to be displayed.
cart-pole/ui.js:60
↓ 9 callersMethodpredict
(imageText)
mnist-transfer-cnn/index.js:97
↓ 8 callersMethodcharSetSize
* Get the size of the character set. * * @returns {number} Size of the character set, i.e., how many unique * characters there are in the t
lstm-text-generation/data.js:118
↓ 8 callersFunctionrunTests
* Execute all unit tests in the current directory.
test_util.js:21
↓ 8 callersMethodsampleLen
* Get the length of each training example.
lstm-text-generation/data.js:108
↓ 8 callersFunctionshowProgress
Display an indeterminate progress bar with message.
electron/renderer.js:237
↓ 7 callersFunctionbuildModel
(modelType, maxLen, vocabularySize, embeddingSize)
sentiment/train.js:36
↓ 7 callersMethodgetDataColumnNames
()
jena-weather/data.js:185
↓ 7 callersMethodgetFromCharSet
* Get the unique character at given index from the character set. * * @param {number} index * @returns {string} The unique character at `inde
lstm-text-generation/data.js:158
↓ 7 callersMethodinit
* Initializes the Translation demo.
translation/index.js:39
↓ 7 callersFunctionpadSequences
( sequences, maxLen, padding = 'pre', truncating = 'pre', value = PAD_INDEX)
sentiment/sequence_utils.js:36
↓ 7 callersFunctionworld2canvas
(canvas, x, y)
polynomial-regression/index.js:23
↓ 6 callersFunctionbuildMLPModel
(inputShape, kernelRegularizer, dropoutRate)
jena-weather/models.js:109
↓ 6 callersFunctioncheckGlError
(gl, label, allowFail = false)
gpu-pipeline/webgl/gl-util.js:32
↓ 6 callersFunctioncreateModel
(sampleLen, charSetSize, lstmLayerSizes)
lstm-text-generation/model.js:32
↓ 6 callersMethodensureModelLoaded
* If the underlying model is not loaded, load it. * * @param {() => any} loadingCallback An optional callback function that will * be invok
electron/image_classifier.js:85
↓ 6 callersMethodgetColumnData
( columnName, includeTime, normalize, beginIndex, length, stride)
jena-weather/data.js:208
↓ 6 callersFunctionlogStatus
(message)
jena-weather/ui.js:30
↓ 6 callersMethodreset
* Reset the state of the game. * * @return {object} Initial state of the game. * See the documentation of `getState()` for details.
snake-dqn/snake_game.js:96
↓ 5 callersFunctionassertPositiveInteger
(x, name)
snake-dqn/utils.js:50
↓ 5 callersMethodclassify
* Perform classification on a batch of image tensors. * * @param {tf.Tensor} images Batch image tensor of shape * `[numExamples, height, wi
electron/image_classifier.js:53
↓ 5 callersFunctionenableModelButtons
()
lstm-text-generation/ui.js:165
↓ 5 callersMethodfillSegmentationCanvas
* Fills a canvas with segmenter predictions overlaid on top of the query image.
interactive-visualizers/src/app/app.component.ts:813
↓ 5 callersFunctiongetRandomInteger
(min, max)
snake-dqn/utils.js:27
↓ 5 callersFunctionisPortrait
()
react-native/pose-detection/App.tsx:225
↓ 4 callersMethodbindFramebuffer
()
gpu-pipeline/webgl/gl-class.js:39
↓ 4 callersFunctionconnectURLButton
(buttonId, url, statusMessage)
data-csv/index.js:159
↓ 4 callersFunctioncreateModel
( inputVocabSize, outputVocabSize, inputLength, outputLength)
date-conversion-attention/model.js:68
↓ 4 callersFunctioncreateTextDataForTest
(sampleLen, sampleStep = 1)
lstm-text-generation/model_test.js:39
↓ 4 callersFunctiondrawQValueOverlay
(context, q, qNormalized, x, y, w, h)
snake-dqn/snake_graphics.js:155
↓ 4 callersFunctionencoder
* The encoder portion of the model. * * @param {object} opts encoder configuration, includnig the following fields: * - originaDim {number} Lengt
fashion-mnist-vae/model.js:42
↓ 4 callersMethodfetchLabelmap
* Fetches and parses the labelmap. If IDs are provided, they are used. * Otherwise list indices are used as IDs.
interactive-visualizers/src/app/app.component.ts:535
↓ 4 callersFunctiongenerateRandomColorStyle
* Generate a random color style for canvas strokes and fills. * * @returns {string} Style string in the form of 'rgb(100,200,250)'.
simple-object-detection/synthetic_images.js:34
↓ 4 callersMethodgetNextBatchFunction
* Get a data iterator function. * * @param {boolean} shuffle Whether the data is to be shuffled. If `false`, * the examples generated by re
jena-weather/data.js:272
↓ 4 callersMethodgetRandomSlice
* Get a random slice of text data. * * @returns {[string, number[]} The string and index representation of the * same slice.
lstm-text-generation/data.js:182
↓ 4 callersFunctionhandler
(label)
webcam-transfer-learning/ui.js:76
↓ 4 callersMethodload
* Load and preprocess data. * * This method first tries to load the data from `LOCAL_JENA_WEATHER_CSV_PATH` * (a relative path) and, if that
jena-weather/data.js:52
↓ 4 callersFunctionloadCsv
(filename)
boston-housing/data.js:53
↓ 4 callersFunctionloadJSON
(path)
intent-classifier/training/util.js:30
↓ 4 callersFunctionnormalize
snake-dqn/snake_graphics.js:146
↓ 4 callersFunctionnormalizePath
(path)
visualize-convnet/index.js:29
↓ 4 callersMethodplayStep
* Play one step of the game. * * @returns {number | null} If this step leads to the end of the game, * the total reward from the game as a
snake-dqn/agent.js:81
↓ 4 callersFunctionplotData
()
jena-weather/index.js:56
↓ 4 callersFunctionpredict
* Given an image element, makes a prediction through mobilenet returning the * probabilities of the top K classes.
mobilenet/index.js:61
↓ 4 callersFunctionpredictOnManualInput
* Run inference on manually-input Iris flower data. * * @param model The instance of `tf.Model` to run the inference with.
iris-fitDataset/index.js:98
↓ 4 callersFunctionpredictOnManualInput
* Run inference on manually-input Iris flower data. * * @param model The instance of `tf.Model` to run the inference with.
iris/index.js:92
↓ 4 callersFunctionpreviewImage
* Preview an image on the console. * * @param {Float32Array} imageData
fashion-mnist-vae/data.js:162
↓ 4 callersMethodrun
()
react-native/pose-detection/android/app/src/debug/java/com/posenet/ReactNativeFlipper.java:57
↓ 4 callersFunctionshowSnackbar
* Display a snackbar message on the screen. * * @param {string} message The message to be displayed. * @param {number} timeoutMillis How many milll
electron/renderer.js:121
↓ 4 callersFunctionstatus
mobilenet/index.js:190
↓ 4 callersMethodtrain
* Train the policy network's model. * * @param {CartPole} cartPoleSystem The cart-pole system object to use during * training. * @param
cart-pole/index.js:110
↓ 4 callersMethodtranslate
Translate the given English sentence into French.
translation/index.js:177
↓ 4 callersFunctionupdateUIControlState
()
cart-pole/ui.js:217
↓ 3 callersMethodbindTexture
()
gpu-pipeline/webgl/gl-class.js:27
↓ 3 callersMethodcheckStoredModelStatus
* Check the status of locally saved model. * * @returns If the locally saved model exists, the model info as a JSON * object. Else, `undefi
lstm-text-generation/index.js:208
↓ 3 callersFunctionchunk
(array, chunkSize)
intent-classifier/training/util.js:45
↓ 3 callersFunctioncompileModel
(model, learningRate)
lstm-text-generation/model.js:52
↓ 3 callersFunctioncopyWeights
(destNetwork, srcNetwork)
snake-dqn/dqn.js:70
↓ 3 callersFunctioncreateModel
* Builds and returns Multi Layer Perceptron Regression Model. * * @param {number} inputShape The input shape of the model. * @returns {tf.Sequentia
abalone-node/model.js:26
↓ 3 callersFunctiondecoder
* The decoder portion of the model. * * @param {*} opts decoder configuration * @param {number} opts.originalDim number of dimensions in the origin
fashion-mnist-vae/model.js:124
↓ 3 callersMethodfillDetectionCanvas
* Fills the query image overlaid canvas with detection results.
interactive-visualizers/src/app/app.component.ts:1082
↓ 3 callersFunctiongenerateAndVisualizeImages
* Generate a set of examples using the generator model of the ACGAN. * * @param {tf.Model} generator The generator part of the ACGAN.
mnist-acgan/index.js:84
↓ 3 callersFunctiongenerateText
( model, textData, sentenceIndices, length, temperature, onTextGenerationChar)
lstm-text-generation/model.js:103
↓ 3 callersFunctiongetOutputTensorWidth
()
react-native/pose-detection/App.tsx:232
↓ 3 callersMethodgetPackageList
()
react-native/image-classification/react-native-cli/android/app/src/main/java/com/reactnativecli/generated/BasePackageList.java:8
↓ 3 callersFunctiongetTargetWords
()
electron/renderer.js:77
↓ 3 callersFunctionintegerToTwoDigitString
(x)
date-conversion-attention/index.js:97
↓ 3 callersFunctionloadData
(numWords, len, multihot = false)
sentiment/data.js:220
↓ 3 callersFunctionloadModel
()
firebase-object-detection-node/functions/index.js:14
↓ 3 callersFunctionmean
(vector)
polynomial-regression/index.js:70
↓ 3 callersMethodnextDataEpoch
* Generate the next epoch of data for training models. * * @param {number} numExamples Number examples to generate. * @returns {[tf.Tensor, t
lstm-text-generation/data.js:130
↓ 3 callersFunctionpitchFromClassNum
(classNum)
baseball-node/pitch_type.js:146
↓ 3 callersFunctionpredict
(x)
mnist-core/model.js:93
↓ 3 callersFunctionpredict
(x)
polynomial-regression-core/index.js:63
↓ 3 callersMethodprepareImageInput
* Prepare an input image by converting it to tf.Tensor and resizing it * according to the expected model input.
interactive-visualizers/src/app/app.component.ts:512
↓ 3 callersMethodreadImageFile
(imageFile: File)
interactive-visualizers/src/app/app.component.ts:457
↓ 3 callersFunctionrefreshLocalModelStatus
* Refresh the status of locally saved model (in IndexedDB).
lstm-text-generation/ui.js:140
↓ 3 callersMethodremoveModel
* Remove the locally saved model from IndexedDB.
cart-pole/index.js:304
↓ 3 callersFunctionrenderCoefficients
(container, coeff)
polynomial-regression-core/ui.js:79
↓ 3 callersFunctionrun
(model, modelName, weightsIllustration)
boston-housing/index.js:132
↓ 3 callersFunctionrunAndVisualizeInference
* Synthesize an input image, run inference on it and visualize the results. * * @param {tf.Model} model Model to be used for inference.
simple-object-detection/index.js:97
↓ 3 callersMethodrunImageClassifier
* Run the model in case of image classification.
interactive-visualizers/src/app/app.component.ts:576
↓ 3 callersFunctionrunSeq2SeqInference
( model, inputStr, getAttention = false)
date-conversion-attention/model.js:155
↓ 3 callersFunctionsample
(probs, temperature)
lstm-text-generation/model.js:157
↓ 3 callersMethodsearchFromFiles
* Search for images with content matching target wrods. * * @param {string[]} filePaths An array of paths to image files * @param {string[]}
electron/image_classifier.js:135
↓ 3 callersMethodsetRandomState
* Set the state of the cart-pole system randomly.
cart-pole/cart_pole.js:66
↓ 3 callersFunctionstatus
(statusText, statusColor)
mnist-transfer-cnn/ui.js:21
next →1–100 of 939, ranked by callers