Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ml5js/ml5-library
/ functions
Functions
1,175 in github.com/ml5js/ml5-library
⨍
Functions
1,175
◇
Types & classes
88
↓ 2 callers
Function
addExample
(label)
examples/p5js/KNNClassification/KNNClassification_VideoSound/sketch.js:39
↓ 2 callers
Function
addExample
(label)
examples/javascript/KNNClassification/KNNClassification_PoseNet/sketch.js:57
↓ 2 callers
Function
addExample
(label)
examples/javascript/KNNClassification/KNNClassification_VideoSound/sketch.js:69
↓ 2 callers
Function
appendToSource
(_source, _arr)
scripts/update-examples-json.js:14
↓ 2 callers
Method
batchnorm
(inputBat, scale, offset)
src/Pix2pix/index.js:131
↓ 2 callers
Function
boxIntersection
(a, b)
src/ObjectDetector/YOLO/postprocess.js:19
↓ 2 callers
Method
classification
* 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 callers
Function
classify
()
examples/p5js/NeuralNetwork/NeuralNetwork_color_classifier/sketch.js:50
↓ 2 callers
Function
classify
()
examples/p5js/NeuralNetwork/NeuralNetwork_pose_classifier/sketch.js:69
↓ 2 callers
Function
classify
()
examples/p5js/NeuralNetwork/NeuralNetwork_load_saved_data/sketch.js:80
↓ 2 callers
Function
classify
()
examples/p5js/NeuralNetwork/NeuralNetwork_load_model/sketch.js:44
↓ 2 callers
Method
classify
* classify * @param {*} _input * @param {*} _cb
src/NeuralNetwork/index.js:841
↓ 2 callers
Method
classify
* Classifies the given input and takes a callback to handle the results * @param {HTMLImageElement | HTMLCanvasElement | object | function | number
src/ImageClassifier/index.js:197
↓ 2 callers
Method
classifyInternal
* classify * @param {*} _input * @param {*} _cb
src/NeuralNetwork/index.js:1044
↓ 2 callers
Function
classifyVideo
()
examples/p5js/TeachableMachine/ImageModel_TM/sketch.js:54
↓ 2 callers
Function
classifyVideo
()
examples/p5js/ImageClassification/ImageClassification_DoodleNet_Video/sketch.js:44
↓ 2 callers
Function
classifyVideo
()
examples/p5js/ImageClassification/ImageClassification_Video_Load/sketch.js:35
↓ 2 callers
Function
classifyVideo
()
examples/p5js/ImageClassification/ImageClassification_VideoSound/sketch.js:35
↓ 2 callers
Function
classifyVideo
()
examples/p5js/ImageClassification/ImageClassification_Video/sketch.js:31
↓ 2 callers
Function
classifyVideo
()
examples/p5js/ImageClassification/ImageClassification_VideoSoundTranslate/sketch.js:48
↓ 2 callers
Function
classifyVideo
()
examples/p5js/ImageClassification/ImageClassification_VideoScavengerHunt/sketch.js:61
↓ 2 callers
Function
classifyVideo
()
examples/javascript/ImageClassification/ImageClassification_DoodleNet_Video/sketch.js:45
↓ 2 callers
Function
classifyVideo
()
examples/javascript/ImageClassification/ImageClassification_VideoSound/sketch.js:58
↓ 2 callers
Function
clearLabel
(classLabel)
examples/p5js/KNNClassification/KNNClassification_PoseNet/sketch.js:141
↓ 2 callers
Function
clearLabel
(classLabel)
examples/javascript/KNNClassification/KNNClassification_PoseNet/sketch.js:153
↓ 2 callers
Method
closestCentroid
* 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 callers
Method
convTransposeLayer
(input, numFilters, strides, id)
src/StyleTransfer/index.js:97
↓ 2 callers
Function
convertCanvasToImage
src/StyleTransfer/index.js:22
↓ 2 callers
Method
copy
* copy
src/NeuralNetwork/index.js:148
↓ 2 callers
Method
createLabelsFromArrayValues
(incoming, prefix)
src/NeuralNetwork/NeuralNetworkUtils.js:94
↓ 2 callers
Method
createMetaData
* //////////////////////////////////////////////////////////// * Metadata prep * ////////////////////////////////////////////////////////////
src/NeuralNetwork/index.js:251
↓ 2 callers
Function
createProjectsInP5User
* STEP 6 * Remove existing projects, then fill the db * @param {*} filledProjectList * @param {*} user
scripts/batch-update-p5webeditor.js:316
↓ 2 callers
Method
dataURLtoBlob
(dataurl)
src/UNET/index.js:71
↓ 2 callers
Method
deconv2d
(inputDeconv, filterDeconv, biasDecon)
src/Pix2pix/index.js:151
↓ 2 callers
Function
dist
(x1, y1, x2, y2)
examples/javascript/PitchDetection/PitchDetection_Game/sketch.js:114
↓ 2 callers
Function
drawImage
()
examples/javascript/Pix2Pix/Pix2Pix_callback/sketch.js:121
↓ 2 callers
Method
encode
* Encodes a string based on the loaded tokenizer if the withTokenizer:true * @param {*} textString * @param {*} callback
src/UniversalSentenceEncoder/index.js:57
↓ 2 callers
Method
findEntries
* findEntries * recursively attempt to find the entries * or data array for the given json object * @param {*} _data
src/NeuralNetwork/NeuralNetworkData.js:939
↓ 2 callers
Method
formatDataAsObject
(incoming, labels)
src/NeuralNetwork/NeuralNetworkUtils.js:110
↓ 2 callers
Method
formatInputItem
(input)
src/NeuralNetwork/index.js:347
↓ 2 callers
Method
formatRawData
* // 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 callers
Function
formatSketchForStorageAll
* format all the sketches using the formatSketchForStorage()
scripts/batch-update-p5webeditor.js:258
↓ 2 callers
Function
gameReset
()
examples/p5js/PitchDetection/PitchDetection_Game/sketch.js:79
↓ 2 callers
Function
gameReset
()
examples/javascript/PitchDetection/PitchDetection_Game/sketch.js:118
↓ 2 callers
Function
generate
()
examples/p5js/DCGAN/DCGAN_LatentVector_RandomWalk/sketch.js:38
↓ 2 callers
Method
generate
* 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 callers
Method
getAllVariables
* @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 callers
Method
getCheckpointManifest
* @public * Lazy-load the contents of the manifest.json file. * * @return {Promise<Manifest>}
src/utils/checkpointLoader.js:77
↓ 2 callers
Method
getClosestCentroids
* Find closest centroids to each observation and store as attribute.
src/KMeans/index.js:112
↓ 2 callers
Method
getDataType
(val)
src/NeuralNetwork/NeuralNetworkUtils.js:132
↓ 2 callers
Function
getDirectories
scripts/update-examples-json.js:7
↓ 2 callers
Method
getEuclidianDistance
* Calculate the Euclidian distance between two tensors. * @param {tf.tensor} tensor1 * @param {tf.tensor} tensor2
src/KMeans/index.js:177
↓ 2 callers
Function
getImage
()
src/BodyPix/__tests__/BodyPix.test.js:17
↓ 2 callers
Function
getImageData
()
src/utils/testingUtils/index.js:12
↓ 2 callers
Method
getInput
(inputOr)
src/PoseNet/index.js:135
↓ 2 callers
Method
getInputMetaOneHot
* getOneHotMeta * @param {*} _inputsMeta * @param {*} _dataRaw * @param {*} xsOrYs
src/NeuralNetwork/NeuralNetworkData.js:522
↓ 2 callers
Method
getInputMetaStats
(dataRaw, inputOrOutputMeta, xsOrYs)
src/NeuralNetwork/NeuralNetworkData.js:126
↓ 2 callers
Method
getInputMetaUnits
(_dataRaw, _inputsMeta)
src/NeuralNetwork/NeuralNetworkData.js:182
↓ 2 callers
Function
getInputs
()
examples/p5js/NeuralNetwork/NeuralNetwork_musical_face/sketch.js:94
↓ 2 callers
Function
getInputs
()
examples/p5js/NeuralNetwork/NeuralNetwork_pose_classifier/sketch.js:84
↓ 2 callers
Function
getInputs
()
examples/p5js/NeuralNetwork/NeuralNetwork_lowres_pixels/sketch.js:67
↓ 2 callers
Method
getMax
(_array)
src/NeuralNetwork/NeuralNetworkUtils.js:45
↓ 2 callers
Method
getMin
(_array)
src/NeuralNetwork/NeuralNetworkUtils.js:33
↓ 2 callers
Method
getNeighboursIndices
* Find closest neighbours to each observation.
src/DBSCAN/index.js:151
↓ 2 callers
Function
getRobin
()
src/utils/testingUtils/index.js:2
↓ 2 callers
Function
getTopKClassesFromArray
(values, topK, CLASSES)
src/utils/gettopkclasses.js:6
↓ 2 callers
Function
getTopKClassesFromTensor
(logits, topK, CLASSES)
src/utils/gettopkclasses.js:33
↓ 2 callers
Method
instanceNorm
(input, id)
src/StyleTransfer/index.js:67
↓ 2 callers
Method
isJsonOrString
(str)
src/NeuralNetwork/NeuralNetworkUtils.js:57
↓ 2 callers
Method
isOneHotEncodedOrNormalized
(_input, _key, _meta)
src/NeuralNetwork/index.js:443
↓ 2 callers
Method
landmarkParts
* get parts from landmarks * @param {*} result
src/FaceApi/index.js:396
↓ 2 callers
Method
load
(url)
src/SoundClassifier/speechcommands.js:14
↓ 2 callers
Method
load
()
src/ImageClassifier/darknet.js:66
↓ 2 callers
Method
load
* Load dataset, and run model. * @param {string || array || object} dataset
src/DBSCAN/index.js:73
↓ 2 callers
Method
loadDataFromUrl
* loadData * @param {*} options * @param {*} callback
src/NeuralNetwork/index.js:224
↓ 2 callers
Method
loadVideo
(video)
src/FeatureExtractor/Mobilenet.js:167
↓ 2 callers
Function
make
* 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 callers
Function
make
(currentClusterCount)
examples/d3/KMeans/KMeans_GaussianClusterDemo/sketch.js:33
↓ 2 callers
Function
make
(eps)
examples/d3/DBSCAN/DBSCAN_Cluster/sketch.js:33
↓ 2 callers
Method
mapParts
(pose)
src/PoseNet/index.js:123
↓ 2 callers
Method
multiPose
* 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 callers
Function
neuralNetwork
(inputsOrOptions, outputsOrCallback, callback)
src/NeuralNetwork/index.js:1214
↓ 2 callers
Method
normalizeInputData
(dataRaw, inputOrOutputMeta, xsOrYs)
src/NeuralNetwork/NeuralNetworkData.js:338
↓ 2 callers
Method
normalizeValue
(value, min, max)
src/NeuralNetwork/NeuralNetworkUtils.js:13
↓ 2 callers
Function
pickOne
()
examples/p5js/NeuralNetwork/NeuroEvolution_FlappyBird/ga.js:36
↓ 2 callers
Method
pickOne
()
examples/p5js/NeuralNetwork/NeuroEvolution_Path/population.js:39
↓ 2 callers
Function
playNextWord
()
examples/p5js/ImageClassification/ImageClassification_VideoScavengerHunt/sketch.js:47
↓ 2 callers
Function
playNextWord
()
examples/javascript/ImageClassification/ImageClassification_VideoScavengerHunt/sketch.js:76
↓ 2 callers
Function
predict
()
examples/p5js/NeuralNetwork/NeuralNetwork_basics/sketch.js:113
↓ 2 callers
Function
predict
()
examples/p5js/NeuralNetwork/NeuralNetwork_musical_face/sketch.js:135
↓ 2 callers
Function
predict
()
examples/p5js/NeuralNetwork/NeuralNetwork_lowres_pixels/sketch.js:112
↓ 2 callers
Method
predict
* 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 callers
Method
predict
* @return {Promise<handposeCore.AnnotatedPrediction[]>} an array of predictions.
src/Handpose/index.js:63
↓ 2 callers
Method
predict
* predict * @param {*} _input * @param {*} _cb
src/NeuralNetwork/index.js:815
↓ 2 callers
Method
predict
* returns the prediction as an array * @param {*} _inputs
src/NeuralNetwork/NeuralNetwork.js:146
↓ 2 callers
Method
predict
* @return {Promise<facemeshCore.AnnotatedPrediction[]>} an array of predictions.
src/Facemesh/index.js:62
↓ 2 callers
Method
predictInternal
* predict * @param {*} _input * @param {*} _cb
src/NeuralNetwork/index.js:919
↓ 2 callers
Method
predictMultiple
* predictMultiple * @param {*} _input * @param {*} _cb
src/NeuralNetwork/index.js:824
↓ 2 callers
Method
predictSync
* synchronous predict * @param {*} _input
src/NeuralNetwork/index.js:806
↓ 2 callers
Function
randomFloat
(min = 0, max = 1)
src/utils/random.js:9
← previous
next →
101–200 of 1,175, ranked by callers