MCPcopy Create free account

hub / github.com/ml5js/ml5-library / functions

Functions1,175 in github.com/ml5js/ml5-library

↓ 2 callersFunctionaddExample
(label)
examples/p5js/KNNClassification/KNNClassification_VideoSound/sketch.js:39
↓ 2 callersFunctionaddExample
(label)
examples/javascript/KNNClassification/KNNClassification_PoseNet/sketch.js:57
↓ 2 callersFunctionaddExample
(label)
examples/javascript/KNNClassification/KNNClassification_VideoSound/sketch.js:69
↓ 2 callersFunctionappendToSource
(_source, _arr)
scripts/update-examples-json.js:14
↓ 2 callersMethodbatchnorm
(inputBat, scale, offset)
src/Pix2pix/index.js:131
↓ 2 callersFunctionboxIntersection
(a, b)
src/ObjectDetector/YOLO/postprocess.js:19
↓ 2 callersMethodclassification
* Use the features of MobileNet as a classifier. * @param {HTMLVideoElement || p5.Video} video - Optional. * An HTML video element or a p5.j
src/FeatureExtractor/Mobilenet.js:129
↓ 2 callersFunctionclassify
()
examples/p5js/NeuralNetwork/NeuralNetwork_color_classifier/sketch.js:50
↓ 2 callersFunctionclassify
()
examples/p5js/NeuralNetwork/NeuralNetwork_pose_classifier/sketch.js:69
↓ 2 callersFunctionclassify
()
examples/p5js/NeuralNetwork/NeuralNetwork_load_saved_data/sketch.js:80
↓ 2 callersFunctionclassify
()
examples/p5js/NeuralNetwork/NeuralNetwork_load_model/sketch.js:44
↓ 2 callersMethodclassify
* classify * @param {*} _input * @param {*} _cb
src/NeuralNetwork/index.js:841
↓ 2 callersMethodclassify
* Classifies the given input and takes a callback to handle the results * @param {HTMLImageElement | HTMLCanvasElement | object | function | number
src/ImageClassifier/index.js:197
↓ 2 callersMethodclassifyInternal
* classify * @param {*} _input * @param {*} _cb
src/NeuralNetwork/index.js:1044
↓ 2 callersFunctionclassifyVideo
()
examples/p5js/TeachableMachine/ImageModel_TM/sketch.js:54
↓ 2 callersFunctionclassifyVideo
()
examples/p5js/ImageClassification/ImageClassification_DoodleNet_Video/sketch.js:44
↓ 2 callersFunctionclassifyVideo
()
examples/p5js/ImageClassification/ImageClassification_Video_Load/sketch.js:35
↓ 2 callersFunctionclassifyVideo
()
examples/p5js/ImageClassification/ImageClassification_VideoSound/sketch.js:35
↓ 2 callersFunctionclassifyVideo
()
examples/p5js/ImageClassification/ImageClassification_Video/sketch.js:31
↓ 2 callersFunctionclassifyVideo
()
examples/p5js/ImageClassification/ImageClassification_VideoSoundTranslate/sketch.js:48
↓ 2 callersFunctionclassifyVideo
()
examples/p5js/ImageClassification/ImageClassification_VideoScavengerHunt/sketch.js:61
↓ 2 callersFunctionclassifyVideo
()
examples/javascript/ImageClassification/ImageClassification_DoodleNet_Video/sketch.js:45
↓ 2 callersFunctionclassifyVideo
()
examples/javascript/ImageClassification/ImageClassification_VideoSound/sketch.js:58
↓ 2 callersFunctionclearLabel
(classLabel)
examples/p5js/KNNClassification/KNNClassification_PoseNet/sketch.js:141
↓ 2 callersFunctionclearLabel
(classLabel)
examples/javascript/KNNClassification/KNNClassification_PoseNet/sketch.js:153
↓ 2 callersMethodclosestCentroid
* Load and flatten an array of arrays, an array of objects, or a string * path to a csv. * @param {string || array || object} inputData
src/KMeans/index.js:125
↓ 2 callersMethodconvTransposeLayer
(input, numFilters, strides, id)
src/StyleTransfer/index.js:97
↓ 2 callersFunctionconvertCanvasToImage
src/StyleTransfer/index.js:22
↓ 2 callersMethodcopy
* copy
src/NeuralNetwork/index.js:148
↓ 2 callersMethodcreateLabelsFromArrayValues
(incoming, prefix)
src/NeuralNetwork/NeuralNetworkUtils.js:94
↓ 2 callersMethodcreateMetaData
* //////////////////////////////////////////////////////////// * Metadata prep * ////////////////////////////////////////////////////////////
src/NeuralNetwork/index.js:251
↓ 2 callersFunctioncreateProjectsInP5User
* STEP 6 * Remove existing projects, then fill the db * @param {*} filledProjectList * @param {*} user
scripts/batch-update-p5webeditor.js:316
↓ 2 callersMethoddataURLtoBlob
(dataurl)
src/UNET/index.js:71
↓ 2 callersMethoddeconv2d
(inputDeconv, filterDeconv, biasDecon)
src/Pix2pix/index.js:151
↓ 2 callersFunctiondist
(x1, y1, x2, y2)
examples/javascript/PitchDetection/PitchDetection_Game/sketch.js:114
↓ 2 callersFunctiondrawImage
()
examples/javascript/Pix2Pix/Pix2Pix_callback/sketch.js:121
↓ 2 callersMethodencode
* Encodes a string based on the loaded tokenizer if the withTokenizer:true * @param {*} textString * @param {*} callback
src/UniversalSentenceEncoder/index.js:57
↓ 2 callersMethodfindEntries
* findEntries * recursively attempt to find the entries * or data array for the given json object * @param {*} _data
src/NeuralNetwork/NeuralNetworkData.js:939
↓ 2 callersMethodformatDataAsObject
(incoming, labels)
src/NeuralNetwork/NeuralNetworkUtils.js:110
↓ 2 callersMethodformatInputItem
(input)
src/NeuralNetwork/index.js:347
↓ 2 callersMethodformatRawData
* // TODO: convert ys into strings, if the task is classification // if (this.config.architecture.task === "classification" && typeof output.ys[pr
src/NeuralNetwork/NeuralNetworkData.js:857
↓ 2 callersFunctionformatSketchForStorageAll
* format all the sketches using the formatSketchForStorage()
scripts/batch-update-p5webeditor.js:258
↓ 2 callersFunctiongameReset
()
examples/p5js/PitchDetection/PitchDetection_Game/sketch.js:79
↓ 2 callersFunctiongameReset
()
examples/javascript/PitchDetection/PitchDetection_Game/sketch.js:118
↓ 2 callersFunctiongenerate
()
examples/p5js/DCGAN/DCGAN_LatentVector_RandomWalk/sketch.js:38
↓ 2 callersMethodgenerate
* Generates content in a stateless manner, based on some initial text * (known as a "seed"). Returns a string. * @param {options} options - A
src/CharRNN/index.js:234
↓ 2 callersMethodgetAllVariables
* @public * Get a dictionary with the tensors for all variables in the manifest. * * @return {Promise<Record<string, tf.Tensor>>}
src/utils/checkpointLoader.js:101
↓ 2 callersMethodgetCheckpointManifest
* @public * Lazy-load the contents of the manifest.json file. * * @return {Promise<Manifest>}
src/utils/checkpointLoader.js:77
↓ 2 callersMethodgetClosestCentroids
* Find closest centroids to each observation and store as attribute.
src/KMeans/index.js:112
↓ 2 callersMethodgetDataType
(val)
src/NeuralNetwork/NeuralNetworkUtils.js:132
↓ 2 callersFunctiongetDirectories
scripts/update-examples-json.js:7
↓ 2 callersMethodgetEuclidianDistance
* Calculate the Euclidian distance between two tensors. * @param {tf.tensor} tensor1 * @param {tf.tensor} tensor2
src/KMeans/index.js:177
↓ 2 callersFunctiongetImage
()
src/BodyPix/__tests__/BodyPix.test.js:17
↓ 2 callersFunctiongetImageData
()
src/utils/testingUtils/index.js:12
↓ 2 callersMethodgetInput
(inputOr)
src/PoseNet/index.js:135
↓ 2 callersMethodgetInputMetaOneHot
* getOneHotMeta * @param {*} _inputsMeta * @param {*} _dataRaw * @param {*} xsOrYs
src/NeuralNetwork/NeuralNetworkData.js:522
↓ 2 callersMethodgetInputMetaStats
(dataRaw, inputOrOutputMeta, xsOrYs)
src/NeuralNetwork/NeuralNetworkData.js:126
↓ 2 callersMethodgetInputMetaUnits
(_dataRaw, _inputsMeta)
src/NeuralNetwork/NeuralNetworkData.js:182
↓ 2 callersFunctiongetInputs
()
examples/p5js/NeuralNetwork/NeuralNetwork_musical_face/sketch.js:94
↓ 2 callersFunctiongetInputs
()
examples/p5js/NeuralNetwork/NeuralNetwork_pose_classifier/sketch.js:84
↓ 2 callersFunctiongetInputs
()
examples/p5js/NeuralNetwork/NeuralNetwork_lowres_pixels/sketch.js:67
↓ 2 callersMethodgetMax
(_array)
src/NeuralNetwork/NeuralNetworkUtils.js:45
↓ 2 callersMethodgetMin
(_array)
src/NeuralNetwork/NeuralNetworkUtils.js:33
↓ 2 callersMethodgetNeighboursIndices
* Find closest neighbours to each observation.
src/DBSCAN/index.js:151
↓ 2 callersFunctiongetRobin
()
src/utils/testingUtils/index.js:2
↓ 2 callersFunctiongetTopKClassesFromArray
(values, topK, CLASSES)
src/utils/gettopkclasses.js:6
↓ 2 callersFunctiongetTopKClassesFromTensor
(logits, topK, CLASSES)
src/utils/gettopkclasses.js:33
↓ 2 callersMethodinstanceNorm
(input, id)
src/StyleTransfer/index.js:67
↓ 2 callersMethodisJsonOrString
(str)
src/NeuralNetwork/NeuralNetworkUtils.js:57
↓ 2 callersMethodisOneHotEncodedOrNormalized
(_input, _key, _meta)
src/NeuralNetwork/index.js:443
↓ 2 callersMethodlandmarkParts
* get parts from landmarks * @param {*} result
src/FaceApi/index.js:396
↓ 2 callersMethodload
(url)
src/SoundClassifier/speechcommands.js:14
↓ 2 callersMethodload
()
src/ImageClassifier/darknet.js:66
↓ 2 callersMethodload
* Load dataset, and run model. * @param {string || array || object} dataset
src/DBSCAN/index.js:73
↓ 2 callersMethodloadDataFromUrl
* loadData * @param {*} options * @param {*} callback
src/NeuralNetwork/index.js:224
↓ 2 callersMethodloadVideo
(video)
src/FeatureExtractor/Mobilenet.js:167
↓ 2 callersFunctionmake
* MAKE * Get all the sketches from the ml5-examples repo * Get the p5 examples * Dive down into each sketch and get all the files * Format the ske
scripts/batch-update-p5webeditor.js:359
↓ 2 callersFunctionmake
(currentClusterCount)
examples/d3/KMeans/KMeans_GaussianClusterDemo/sketch.js:33
↓ 2 callersFunctionmake
(eps)
examples/d3/DBSCAN/DBSCAN_Cluster/sketch.js:33
↓ 2 callersMethodmapParts
(pose)
src/PoseNet/index.js:123
↓ 2 callersMethodmultiPose
* Given an image or video, returns an array of objects containing pose * estimations using single or multi-pose detection. * @param {HTMLVid
src/PoseNet/index.js:187
↓ 2 callersFunctionneuralNetwork
(inputsOrOptions, outputsOrCallback, callback)
src/NeuralNetwork/index.js:1214
↓ 2 callersMethodnormalizeInputData
(dataRaw, inputOrOutputMeta, xsOrYs)
src/NeuralNetwork/NeuralNetworkData.js:338
↓ 2 callersMethodnormalizeValue
(value, min, max)
src/NeuralNetwork/NeuralNetworkUtils.js:13
↓ 2 callersFunctionpickOne
()
examples/p5js/NeuralNetwork/NeuroEvolution_FlappyBird/ga.js:36
↓ 2 callersMethodpickOne
()
examples/p5js/NeuralNetwork/NeuroEvolution_Path/population.js:39
↓ 2 callersFunctionplayNextWord
()
examples/p5js/ImageClassification/ImageClassification_VideoScavengerHunt/sketch.js:47
↓ 2 callersFunctionplayNextWord
()
examples/javascript/ImageClassification/ImageClassification_VideoScavengerHunt/sketch.js:76
↓ 2 callersFunctionpredict
()
examples/p5js/NeuralNetwork/NeuralNetwork_basics/sketch.js:113
↓ 2 callersFunctionpredict
()
examples/p5js/NeuralNetwork/NeuralNetwork_musical_face/sketch.js:135
↓ 2 callersFunctionpredict
()
examples/p5js/NeuralNetwork/NeuralNetwork_lowres_pixels/sketch.js:112
↓ 2 callersMethodpredict
* Scores the sentiment of given text with a value between 0 ("negative") and 1 ("positive"). * @param {String} text - string of text to predict.
src/Sentiment/index.js:107
↓ 2 callersMethodpredict
* @return {Promise<handposeCore.AnnotatedPrediction[]>} an array of predictions.
src/Handpose/index.js:63
↓ 2 callersMethodpredict
* predict * @param {*} _input * @param {*} _cb
src/NeuralNetwork/index.js:815
↓ 2 callersMethodpredict
* returns the prediction as an array * @param {*} _inputs
src/NeuralNetwork/NeuralNetwork.js:146
↓ 2 callersMethodpredict
* @return {Promise<facemeshCore.AnnotatedPrediction[]>} an array of predictions.
src/Facemesh/index.js:62
↓ 2 callersMethodpredictInternal
* predict * @param {*} _input * @param {*} _cb
src/NeuralNetwork/index.js:919
↓ 2 callersMethodpredictMultiple
* predictMultiple * @param {*} _input * @param {*} _cb
src/NeuralNetwork/index.js:824
↓ 2 callersMethodpredictSync
* synchronous predict * @param {*} _input
src/NeuralNetwork/index.js:806
↓ 2 callersFunctionrandomFloat
(min = 0, max = 1)
src/utils/random.js:9
← previousnext →101–200 of 1,175, ranked by callers