MCPcopy Create free account

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

Functions939 in github.com/tensorflow/tfjs-examples

↓ 1 callersFunctiontrain_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 callersFunctiontrain_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 callersFunctiontrain_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 callersFunctiontrueNegatives
(yTrue, yPred)
website-phishing/index.js:34
↓ 1 callersFunctionunique
(array)
intent-classifier/training/util.js:62
↓ 1 callersFunctionupdateDateTimeRangeSpan
(jenaWeatherData)
jena-weather/ui.js:80
↓ 1 callersMethodupdateDirection_
(action)
snake-dqn/snake_game.js:189
↓ 1 callersFunctionupdateFn
data-csv/index.js:50
↓ 1 callersFunctionupdateModelParameterControls
(lstmLayerSizes)
lstm-text-generation/ui.js:245
↓ 1 callersFunctionupdateScatterCheckbox
()
jena-weather/ui.js:90
↓ 1 callersFunctionupdateTextInputParameters
()
lstm-text-generation/ui.js:249
↓ 1 callersMethodwarmUpModel
* Warms up the model. Subsequent calls will be faster.
interactive-visualizers/src/app/app.component.ts:355
↓ 1 callersFunctionwarmup
()
intent-classifier/app/index.js:147
↓ 1 callersFunctionwarmup
()
intent-classifier/app/tagger.js:286
↓ 1 callersFunctionwriteCSV
(data, path)
intent-classifier/training/raw_to_csv.js:49
↓ 1 callersFunctionwriteConvLayerFilters
* 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 callersFunctionwriteNDJson
* Writes an array to an NDJSON file. * * @param {string} path * @param {array} collection
intent-classifier/training/raw_to_tagged_tokens.js:39
↓ 1 callersFunctionwrite_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
FunctionApp
()
react-native/pose-detection/App.tsx:50
FunctionApp
()
react-native/image-classification/expo/App.tsx:7
FunctionApp
()
react-native/image-classification/react-native-cli/App.tsx:7
Methodappend
* Append an item to the replay buffer. * * @param {any} item The item to append.
snake-dqn/replay_memory.js:47
Methodapply
(OkHttpClient.Builder builder)
react-native/image-classification/expo/android/app/src/debug/java/com/posenet/ReactNativeFlipper.java:39
Methodapply
(OkHttpClient.Builder builder)
react-native/image-classification/react-native-cli/android/app/src/debug/java/com/reactnativecli/ReactNativeFlipper.java:41
FunctionapplyColorMap
* 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
Functionbinarize
(y, threshold)
website-phishing/utils.js:175
Methodcall
* 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
Methodcall
(input)
date-conversion-attention/model.js:37
Methodcall
* 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
MethodcanvasOverlayLeft
When leaving a detector result or label hover.
interactive-visualizers/src/app/app.component.ts:1129
MethodclassName
()
fashion-mnist-vae/model.js:109
MethodclassName
()
date-conversion-attention/model.js:46
MethodclassName
* If a custom layer class is to support serialization, it must implement * the `className` static getter.
custom-layer/custom_layer.js:85
FunctionclassesFromLabel
(y)
mnist-core/model.js:102
FunctionclearEvaluateTable
()
iris-fitDataset/ui.js:23
FunctionclearEvaluateTable
()
iris/ui.js:23
FunctionclickHandler
* Removes text elements from DOM on a left click.
chrome-extension/src/content.js:160
FunctionclickMenuCallback
* 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
MethodcomputeOutputShape
(inputShape)
fashion-mnist-vae/model.js:80
MethodcomputeOutputShape
(inputShape)
date-conversion-attention/model.js:31
MethodcomputeOutputShape
* 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
Methodconstructor
()
mnist-core/data.js:41
Methodconstructor
()
jena-weather/data.js:43
Methodconstructor
()
mnist-node/data.js:124
Methodconstructor
(gl, texture, width, height)
gpu-pipeline/webgl/gl-class.js:20
Methodconstructor
(gl, framebuffer, texture, width, height)
gpu-pipeline/webgl/gl-class.js:34
Methodconstructor
(gl, program)
gpu-pipeline/webgl/gl-class.js:47
Methodconstructor
(gl)
gpu-pipeline/webgl/gl-class.js:70
Methodconstructor
(gl, shader)
gpu-pipeline/webgl/gl-class.js:102
Methodconstructor
(gl)
gpu-pipeline/webgl/gl-class.js:152
Methodconstructor
()
chrome-extension/src/service_worker.js:70
Methodconstructor
* Constructor of SnakeGame. * * @param {object} args Configurations for the game. Fields include: * - height {number} height of the board (
snake-dqn/snake_game.js:60
Methodconstructor
* Constructor of ReplayMemory. * * @param {number} maxLen Maximal buffer length.
snake-dqn/replay_memory.js:27
Methodconstructor
(bufferLength)
snake-dqn/train.js:32
Methodconstructor
* Constructor of SnakeGameAgent. * * @param {SnakeGame} game A game object. * @param {object} config The configuration object with the follow
snake-dqn/agent.js:42
Methodconstructor
()
mnist/data.js:39
Methodconstructor
* Constructor of CartPole.
cart-pole/cart_pole.js:43
Methodconstructor
* Constructor of PolicyNetwork. * * @param {number | number[] | tf.LayersModel} hiddenLayerSizes * Can be any of the following * - Siz
cart-pole/index.js:61
Methodconstructor
* Constructor of SaveablePolicyNetwork * * @param {number | number[]} hiddenLayerSizesOrModel
cart-pole/index.js:260
Methodconstructor
()
electron/image_classifier.js:34
Methodconstructor
()
quantization/data_mnist.js:160
Methodconstructor
* Constructor of NeuralNetworkTextGenerator. * * @param {TextData} textData An instance of `TextData`.
lstm-text-generation/index.js:50
Methodconstructor
* Constructor of NeuralNetworkTextGenerator. * * @param {TextData} textData An instance of `TextData`.
lstm-text-generation/index.js:142
Methodconstructor
* Constructor of TextData. * * @param {string} dataIdentifier An identifier for this instance of TextData. * @param {string} textString The t
lstm-text-generation/data.js:64
Methodconstructor
()
tsne-mnist-canvas/data.js:39
Methodconstructor
(numClasses)
webcam-transfer-learning/controller_dataset.js:24
Methodconstructor
* Constructor of ObjectDetectionImageSynthesizer. * * @param {} canvas An HTML canvas object or node-canvas object. * @param {*} tensorFlow A
simple-object-detection/synthetic_images.js:62
Methodconstructor
(config)
fashion-mnist-vae/model.js:76
Methodconstructor
(config)
date-conversion-attention/model.js:26
Methodconstructor
* Constructor of CharacterTable. * @param chars A string that contains the characters that can appear * in the input.
addition-rnn/index.js:34
Methodconstructor
(digits, trainingSize, rnnType, layers, hiddenSize)
addition-rnn/index.js:240
Methodconstructor
()
mnist-acgan/data.js:128
Methodconstructor
()
mnist-acgan/web-data.js:42
Methodconstructor
( private route: ActivatedRoute, private merchService: MerchService, private location: Location
angular-predictive-prefetching/client/src/app/merch-display/merch-display.component.ts:18
Methodconstructor
(private breakpointObserver: BreakpointObserver)
angular-predictive-prefetching/client/src/app/navigation/navigation.component.ts:28
Methodconstructor
()
custom-layer/custom_layer.js:35
Methodconstructor
()
boston-housing/data.js:70
Methodconstructor
(private sanitizer: DomSanitizer)
interactive-visualizers/projects/playground/src/app/app.component.ts:33
Methodconstructor
* Constructor of CharacterTable. * @param chars A string that contains the characters that can appear * in the input.
addition-rnn-webworker/worker.js:26
Methodconstructor
(digits, trainingSize, rnnType, layers, hiddenSize)
addition-rnn-webworker/worker.js:233
Methodconstructor
()
website-phishing/data.js:29
FunctionconvOutput2ClassOutput
(input)
visualize-convnet/cam.js:86
FunctionconvertDataToTensors
(data, numClasses)
mnist-transfer-cnn/util.js:83
MethodcopyEmbedUrl
* Copies the embed URL to the clipboard.
interactive-visualizers/src/app/app.component.ts:1168
FunctioncountRowsHandler
* 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
FunctioncreateModel
()
quantization/model_fashion_mnist.js:26
FunctioncreateModel
()
quantization/model_mnist.js:20
MethodcreateReactActivityDelegate
()
react-native/pose-detection/android/app/src/main/java/com/posenet/MainActivity.java:32
MethodcreateReactActivityDelegate
()
react-native/image-classification/expo/android/app/src/main/java/com/posenet/MainActivity.java:32
MethodcreateRootView
()
react-native/pose-detection/android/app/src/main/java/com/posenet/MainActivity.java:35
MethodcreateRootView
()
react-native/image-classification/expo/android/app/src/main/java/com/posenet/MainActivity.java:35
FunctioncsvTransform
({xs, ys})
baseball-node/pitch_type.js:49
FunctioncsvTransform
({xs, ys})
baseball-node/strike_zone.js:41
FunctioncustomLossFunction
* 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
FunctiondatasetToArrayHandler
* 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
FunctiondateTupleToDDDashMMDashYYYY
(dateTuple)
date-conversion-attention/date_format.js:149
FunctiondateTupleToDDDotMMDotYYYY
(dateTuple)
date-conversion-attention/date_format.js:161
FunctiondateTupleToDDMMMYYYY
(dateTuple)
date-conversion-attention/date_format.js:78
FunctiondateTupleToDDashMDashYYYY
(dateTuple)
date-conversion-attention/date_format.js:156
FunctiondateTupleToDDotMDotYYYY
(dateTuple)
date-conversion-attention/date_format.js:168
← previousnext →601–700 of 939, ranked by callers