Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tensorflow/tfjs-examples
/ functions
Functions
939 in github.com/tensorflow/tfjs-examples
⨍
Functions
939
◇
Types & classes
124
↓ 1 callers
Function
train_and_save_model
Train and save MNIST CNN model. Args: filters: number of filters for convolution layers. kernel_size: kernel size for convolution layers.
mnist-transfer-cnn/python/mnist_transfer_cnn.py:155
↓ 1 callers
Function
train_model
Train or re-train a model using data. Args: model: `keras.Model` instance to (re-)train. optimizer: Name of the optimizer to use. train
mnist-transfer-cnn/python/mnist_transfer_cnn.py:66
↓ 1 callers
Function
train_model
Train a model for IMDB sentiment classification. Args: model_type: Type of the model to train, as a `str`. vocabulary_size: Vocabulary size
sentiment/python/imdb.py:95
↓ 1 callers
Function
trueNegatives
(yTrue, yPred)
website-phishing/index.js:34
↓ 1 callers
Function
unique
(array)
intent-classifier/training/util.js:62
↓ 1 callers
Function
updateDateTimeRangeSpan
(jenaWeatherData)
jena-weather/ui.js:80
↓ 1 callers
Method
updateDirection_
(action)
snake-dqn/snake_game.js:189
↓ 1 callers
Function
updateFn
data-csv/index.js:50
↓ 1 callers
Function
updateModelParameterControls
(lstmLayerSizes)
lstm-text-generation/ui.js:245
↓ 1 callers
Function
updateScatterCheckbox
()
jena-weather/ui.js:90
↓ 1 callers
Function
updateTextInputParameters
()
lstm-text-generation/ui.js:249
↓ 1 callers
Method
warmUpModel
* Warms up the model. Subsequent calls will be faster.
interactive-visualizers/src/app/app.component.ts:355
↓ 1 callers
Function
warmup
()
intent-classifier/app/index.js:147
↓ 1 callers
Function
warmup
()
intent-classifier/app/tagger.js:286
↓ 1 callers
Function
writeCSV
(data, path)
intent-classifier/training/raw_to_csv.js:49
↓ 1 callers
Function
writeConvLayerFilters
* Calcuate and save the maximally-activating input images for a covn2d layer. * * @param {tf.Model} model The model that the conv2d layer of interes
visualize-convnet/main.js:88
↓ 1 callers
Function
writeNDJson
* Writes an array to an NDJSON file. * * @param {string} path * @param {array} collection
intent-classifier/training/raw_to_tagged_tokens.js:39
↓ 1 callers
Function
write_gte5_data
Write the transfer-learning data to .js files. Args: x_train_lt5: x (image) data for training: digits >= 5. y_train_lt5: y (label) data for
mnist-transfer-cnn/python/mnist_transfer_cnn.py:129
Function
App
()
react-native/pose-detection/App.tsx:50
Function
App
()
react-native/image-classification/expo/App.tsx:7
Function
App
()
react-native/image-classification/react-native-cli/App.tsx:7
Method
append
* Append an item to the replay buffer. * * @param {any} item The item to append.
snake-dqn/replay_memory.js:47
Method
apply
(OkHttpClient.Builder builder)
react-native/image-classification/expo/android/app/src/debug/java/com/posenet/ReactNativeFlipper.java:39
Method
apply
(OkHttpClient.Builder builder)
react-native/image-classification/react-native-cli/android/app/src/debug/java/com/reactnativecli/ReactNativeFlipper.java:41
Function
applyColorMap
* Convert an input monocolor image to color by applying a color map. * * @param {tf.Tensor4d} x Input monocolor image, assumed to be of shape *
visualize-convnet/utils.js:138
Function
binarize
(y, threshold)
website-phishing/utils.js:175
Method
call
* The actual computation performed by an instance of ZLayer. * * @param {Tensor[]} inputs this layer takes two input tensors, z_mean and *
fashion-mnist-vae/model.js:95
Method
call
(input)
date-conversion-attention/model.js:37
Method
call
* Centers the input and applies the following function to every element of * the input. * * x => [max(x, 0), max(-x, 0)] * * The th
custom-layer/custom_layer.js:65
Method
canvasOverlayLeft
When leaving a detector result or label hover.
interactive-visualizers/src/app/app.component.ts:1129
Method
className
()
fashion-mnist-vae/model.js:109
Method
className
()
date-conversion-attention/model.js:46
Method
className
* If a custom layer class is to support serialization, it must implement * the `className` static getter.
custom-layer/custom_layer.js:85
Function
classesFromLabel
(y)
mnist-core/model.js:102
Function
clearEvaluateTable
()
iris-fitDataset/ui.js:23
Function
clearEvaluateTable
()
iris/ui.js:23
Function
clickHandler
* Removes text elements from DOM on a left click.
chrome-extension/src/content.js:160
Function
clickMenuCallback
* What action to take when someone clicks the right-click menu option. * Here it takes the url of the right-clicked image and the current tabId, and
chrome-extension/src/service_worker.js:32
Method
computeOutputShape
(inputShape)
fashion-mnist-vae/model.js:80
Method
computeOutputShape
(inputShape)
date-conversion-attention/model.js:31
Method
computeOutputShape
* This layer only works on 4D Tensors [batch, height, width, channels], * and produces output with twice as many channels. * * layer.computeO
custom-layer/custom_layer.js:49
Method
constructor
()
mnist-core/data.js:41
Method
constructor
()
jena-weather/data.js:43
Method
constructor
()
mnist-node/data.js:124
Method
constructor
(gl, texture, width, height)
gpu-pipeline/webgl/gl-class.js:20
Method
constructor
(gl, framebuffer, texture, width, height)
gpu-pipeline/webgl/gl-class.js:34
Method
constructor
(gl, program)
gpu-pipeline/webgl/gl-class.js:47
Method
constructor
(gl)
gpu-pipeline/webgl/gl-class.js:70
Method
constructor
(gl, shader)
gpu-pipeline/webgl/gl-class.js:102
Method
constructor
(gl)
gpu-pipeline/webgl/gl-class.js:152
Method
constructor
()
chrome-extension/src/service_worker.js:70
Method
constructor
* Constructor of SnakeGame. * * @param {object} args Configurations for the game. Fields include: * - height {number} height of the board (
snake-dqn/snake_game.js:60
Method
constructor
* Constructor of ReplayMemory. * * @param {number} maxLen Maximal buffer length.
snake-dqn/replay_memory.js:27
Method
constructor
(bufferLength)
snake-dqn/train.js:32
Method
constructor
* Constructor of SnakeGameAgent. * * @param {SnakeGame} game A game object. * @param {object} config The configuration object with the follow
snake-dqn/agent.js:42
Method
constructor
()
mnist/data.js:39
Method
constructor
* Constructor of CartPole.
cart-pole/cart_pole.js:43
Method
constructor
* Constructor of PolicyNetwork. * * @param {number | number[] | tf.LayersModel} hiddenLayerSizes * Can be any of the following * - Siz
cart-pole/index.js:61
Method
constructor
* Constructor of SaveablePolicyNetwork * * @param {number | number[]} hiddenLayerSizesOrModel
cart-pole/index.js:260
Method
constructor
()
electron/image_classifier.js:34
Method
constructor
()
quantization/data_mnist.js:160
Method
constructor
* Constructor of NeuralNetworkTextGenerator. * * @param {TextData} textData An instance of `TextData`.
lstm-text-generation/index.js:50
Method
constructor
* Constructor of NeuralNetworkTextGenerator. * * @param {TextData} textData An instance of `TextData`.
lstm-text-generation/index.js:142
Method
constructor
* Constructor of TextData. * * @param {string} dataIdentifier An identifier for this instance of TextData. * @param {string} textString The t
lstm-text-generation/data.js:64
Method
constructor
()
tsne-mnist-canvas/data.js:39
Method
constructor
(numClasses)
webcam-transfer-learning/controller_dataset.js:24
Method
constructor
* Constructor of ObjectDetectionImageSynthesizer. * * @param {} canvas An HTML canvas object or node-canvas object. * @param {*} tensorFlow A
simple-object-detection/synthetic_images.js:62
Method
constructor
(config)
fashion-mnist-vae/model.js:76
Method
constructor
(config)
date-conversion-attention/model.js:26
Method
constructor
* Constructor of CharacterTable. * @param chars A string that contains the characters that can appear * in the input.
addition-rnn/index.js:34
Method
constructor
(digits, trainingSize, rnnType, layers, hiddenSize)
addition-rnn/index.js:240
Method
constructor
()
mnist-acgan/data.js:128
Method
constructor
()
mnist-acgan/web-data.js:42
Method
constructor
( private route: ActivatedRoute, private merchService: MerchService, private location: Location
angular-predictive-prefetching/client/src/app/merch-display/merch-display.component.ts:18
Method
constructor
(private breakpointObserver: BreakpointObserver)
angular-predictive-prefetching/client/src/app/navigation/navigation.component.ts:28
Method
constructor
()
custom-layer/custom_layer.js:35
Method
constructor
()
boston-housing/data.js:70
Method
constructor
(private sanitizer: DomSanitizer)
interactive-visualizers/projects/playground/src/app/app.component.ts:33
Method
constructor
* Constructor of CharacterTable. * @param chars A string that contains the characters that can appear * in the input.
addition-rnn-webworker/worker.js:26
Method
constructor
(digits, trainingSize, rnnType, layers, hiddenSize)
addition-rnn-webworker/worker.js:233
Method
constructor
()
website-phishing/data.js:29
Function
convOutput2ClassOutput
(input)
visualize-convnet/cam.js:86
Function
convertDataToTensors
(data, numClasses)
mnist-transfer-cnn/util.js:83
Method
copyEmbedUrl
* Copies the embed URL to the clipboard.
interactive-visualizers/src/app/app.component.ts:1168
Function
countRowsHandler
* Builds a CSV Dataset object using the URL specified in the UI. Then iterates * over all elements in that dataset to count them. Updates the UI ac
data-csv/index.js:44
Function
createModel
()
quantization/model_fashion_mnist.js:26
Function
createModel
()
quantization/model_mnist.js:20
Method
createReactActivityDelegate
()
react-native/pose-detection/android/app/src/main/java/com/posenet/MainActivity.java:32
Method
createReactActivityDelegate
()
react-native/image-classification/expo/android/app/src/main/java/com/posenet/MainActivity.java:32
Method
createRootView
()
react-native/pose-detection/android/app/src/main/java/com/posenet/MainActivity.java:35
Method
createRootView
()
react-native/image-classification/expo/android/app/src/main/java/com/posenet/MainActivity.java:35
Function
csvTransform
({xs, ys})
baseball-node/pitch_type.js:49
Function
csvTransform
({xs, ys})
baseball-node/strike_zone.js:41
Function
customLossFunction
* Custom loss function for object detection. * * The loss function is a sum of two losses * - shape-class loss, computed as binaryCrossentropy and
simple-object-detection/train.js:57
Function
datasetToArrayHandler
* Creates a dataset pipeline from GAME_GENERATOR_DATASET by: * 1) Applying the function gameToFeaturesAndlabel * 2) Taking the first N samples of th
data-generator/index.js:103
Function
dateTupleToDDDashMMDashYYYY
(dateTuple)
date-conversion-attention/date_format.js:149
Function
dateTupleToDDDotMMDotYYYY
(dateTuple)
date-conversion-attention/date_format.js:161
Function
dateTupleToDDMMMYYYY
(dateTuple)
date-conversion-attention/date_format.js:78
Function
dateTupleToDDashMDashYYYY
(dateTuple)
date-conversion-attention/date_format.js:156
Function
dateTupleToDDotMDotYYYY
(dateTuple)
date-conversion-attention/date_format.js:168
← previous
next →
601–700 of 939, ranked by callers