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
↓ 1 callers
Method
update
()
examples/p5js/NeuralNetwork/NeuroEvolution_Path/particle.js:56
↓ 1 callers
Function
updatePackageVersion
(fpath)
scripts/updatePackageVersion.js:21
↓ 1 callers
Function
walk
()
examples/p5js/DCGAN/DCGAN_LatentVector_RandomWalk/sketch.js:32
↓ 1 callers
Method
zipArrays
(arr1, arr2)
src/NeuralNetwork/NeuralNetworkUtils.js:72
Function
CVAE
(model, callback)
src/CVAE/index.js:118
Function
CocoSsd
(videoOr, optionsOr, cb)
src/ObjectDetector/CocoSsd/index.js:132
Function
DCGAN
(modelPath, optionsOrCb, cb)
src/DCGAN/index.js:153
Function
KNNClassifier
()
src/KNNClassifier/index.js:234
Function
YOLO
(videoOr, optionsOr, cb)
src/ObjectDetector/YOLO/index.js:239
Function
addData
()
examples/p5js/NeuralNetwork/NeuralNetwork_musical_mouse/sketch.js:30
Function
addData
()
examples/p5js/NeuralNetwork/NeuralNetwork_xy_classifier/sketch.js:25
Function
addData
()
examples/p5js/NeuralNetwork/NeuralNetwork_ImageClassifier_Video/sketch.js:53
Method
addData
* Add Data * @param {object} xInputObj, {key: value}, key must be the name of the property value must be a String, Number, or Array * @param {*}
src/NeuralNetwork/NeuralNetworkData.js:252
Function
addExample
()
examples/p5js/NeuralNetwork/NeuralNetwork_pose_classifier/sketch.js:95
Function
addExample
()
examples/p5js/NeuralNetwork/NeuralNetwork_lowres_pixels/sketch.js:82
Method
addLayer
* add layer to the model * if the model has 2 or more layers switch the isLayered flag * @param {*} _layerOptions
src/NeuralNetwork/NeuralNetwork.js:61
Method
applyForce
(force)
examples/p5js/NeuralNetwork/NeuroEvolution_Path/particle.js:36
Method
barchart
* creates a barchart from 1 input label and 1 output label * @param {*} inputLabel * @param {*} outputLabel * @param {*} data
src/NeuralNetwork/NeuralNetworkVis.js:86
Function
cartoon
(optionsOr, cb)
src/CartoonGAN/index.js:119
Method
cell
(DATA, C, H)
src/CharRNN/index.js:122
Function
changing
()
examples/p5js/CharRNN/CharRNN_Interactive/sketch.js:59
Function
checkGenerate
()
examples/p5js/CharRNN/CharRNN_Interactive/sketch.js:50
Method
classify
(topk = this.allLabels.length, cb)
src/SoundClassifier/speechcommands.js:25
Method
classify
(inputOrCallback, cb)
src/FeatureExtractor/Mobilenet.js:344
Method
classify
* classify is the same as .predict() * @param {*} _inputs
src/NeuralNetwork/NeuralNetwork.js:162
Method
classify
(img, topk = 10)
src/ImageClassifier/doodlenet.js:58
Method
classify
* Classify an new input. It returns an object with a top classIndex and label, confidences mapping all class indices to their confidence, and confiden
src/KNNClassifier/index.js:59
Function
classifyCanvas
()
examples/p5js/ImageClassification/ImageClassification_DoodleNet_Canvas/sketch.js:58
Method
classifyMultiple
* classifyMultiple * @param {*} _input * @param {*} _cb
src/NeuralNetwork/index.js:850
Method
classifySync
* classify is the same as .predict() * @param {*} _inputs
src/NeuralNetwork/NeuralNetwork.js:170
Function
clearAllLabels
()
examples/p5js/KNNClassification/KNNClassification_PoseNet/sketch.js:147
Function
clearAllLabels
()
examples/p5js/KNNClassification/KNNClassification_VideoSquare/sketch.js:174
Function
clearAllLabels
()
examples/p5js/KNNClassification/KNNClassification_VideoSound/sketch.js:122
Function
clearAllLabels
()
examples/p5js/KNNClassification/KNNClassification_Video/sketch.js:163
Function
clearAllLabels
()
examples/javascript/KNNClassification/KNNClassification_PoseNet/sketch.js:159
Function
clearAllLabels
()
examples/javascript/KNNClassification/KNNClassification_VideoSquare/sketch.js:182
Function
clearAllLabels
()
examples/javascript/KNNClassification/KNNClassification_VideoSound/sketch.js:152
Function
clearAllLabels
()
examples/javascript/KNNClassification/KNNClassification_Video/sketch.js:171
Function
clearCanvas
()
examples/p5js/ImageClassification/ImageClassification_DoodleNet_Canvas/sketch.js:43
Function
clearCanvas
()
examples/javascript/ImageClassification/ImageClassification_DoodleNet_Canvas/sketch.js:61
Function
clearDrawing
()
examples/p5js/SketchRNN/SketchRNN_interactive/sketch.js:48
Function
clearDrawing
()
examples/javascript/SketchRNN/SketchRNN_interactive/sketch.js:62
Function
clearLabel
(classLabel)
examples/p5js/KNNClassification/KNNClassification_VideoSquare/sketch.js:168
Function
clearLabel
(classLabel)
examples/javascript/KNNClassification/KNNClassification_VideoSquare/sketch.js:176
Function
cluster
()
examples/p5js/KMeans/KMeans_mouseClustering/sketch.js:48
Function
clustersCalculated
()
examples/p5js/KMeans/KMeans_mouseClustering/sketch.js:57
Function
collectData
()
examples/p5js/NeuralNetwork/NeuralNetwork_musical_face/sketch.js:108
Method
compile
* Compile the model * if the model is compiled, set the isCompiled flag to true * @param {*} _modelOptions
src/NeuralNetwork/NeuralNetwork.js:76
Method
constructor
(options)
src/SoundClassifier/speechcommands.js:10
Method
constructor
* Create an SoundClassifier. * @param {modelNameOrUrl} modelNameOrUrl - The name or the URL of the model to use. Current name options * are:
src/SoundClassifier/index.js:23
Method
constructor
* Create UNET class. * @param {HTMLVideoElement | HTMLImageElement} video - The video or image to be used for segmentation. * @param {Object} o
src/UNET/index.js:31
Method
constructor
* Create a CharRNN. * @param {String} modelPath - The path to the trained charRNN model. * @param {function} callback - Optional. A callback to
src/CharRNN/index.js:30
Method
constructor
* Create Sentiment model. Currently the supported model name is 'moviereviews'. ml5 may support different models in the future. * @param {String} m
src/Sentiment/index.js:47
Method
constructor
(options, callback)
src/FeatureExtractor/Mobilenet.js:51
Method
constructor
* @param {string} urlPath - the directory URL
src/utils/checkpointLoader.js:28
Method
constructor
()
src/utils/p5Utils.js:7
Method
constructor
* @param {HTMLVideoElement | p5.Video | null | undefined} [video] - Can pass a video * into the constructor of the model in order to run the model
src/utils/Video.js:21
Method
constructor
* @param {string} urlPath
src/utils/checkpointLoaderPix2pix.js:14
Method
constructor
(options, callback)
src/UniversalSentenceEncoder/index.js:10
Method
constructor
* Create FaceApi. * @param {HTMLVideoElement} video - An HTMLVideoElement. * @param {object} options - An object with options. * @param {func
src/FaceApi/index.js:46
Method
constructor
* Create Handpose. * @param {HTMLVideoElement} [video] - An HTMLVideoElement. * @param {object} [options] - An object with options. * @param
src/Handpose/index.js:23
Method
constructor
* Create SketchRNN. * @param {String} model - The name of the sketch model to be loaded. * The names can be found in the models.js file *
src/SketchRNN/index.js:39
Method
constructor
()
src/NeuralNetwork/NeuralNetworkVis.js:6
Method
constructor
(options, cb)
src/NeuralNetwork/index.js:23
Method
constructor
()
src/NeuralNetwork/NeuralNetworkData.js:7
Method
constructor
()
src/NeuralNetwork/NeuralNetwork.js:8
Method
constructor
(options)
src/NeuralNetwork/NeuralNetworkUtils.js:2
Method
constructor
* Create a PoseNet model. * @param {HTMLVideoElement || p5.Video} video - Optional. A HTML video element or a p5 video element. * @param {optio
src/PoseNet/index.js:57
Method
constructor
* Create a Pix2pix model. * @param {model} model - The path for a valid model. * @param {function} callback - Optional. A function to run once
src/Pix2pix/index.js:26
Method
constructor
(version)
src/ImageClassifier/darknet.js:52
Method
constructor
* Create an ImageClassifier. * @param {string} modelNameOrUrl - The name or the URL of the model to use. Current model name options * are: 'm
src/ImageClassifier/index.js:38
Method
constructor
()
src/ImageClassifier/doodlenet.js:45
Method
constructor
* Create a pitchDetection. * @param {Object} model - The path to the trained model. Only CREPE is available for now. Case insensitive. * @param
src/PitchDetection/index.js:23
Method
constructor
* Create a CartoonGan model. * @param {String} modelIdentifier - Required. The name of pre-inluded model or the url path to your model. * @p
src/CartoonGAN/index.js:34
Method
constructor
* Create Facemesh. * @param {HTMLVideoElement} [video] - An HTMLVideoElement. * @param {object} [options] - An object with options. * @param
src/Facemesh/index.js:23
Method
constructor
* Create BodyPix. * @param {HTMLVideoElement} video - An HTMLVideoElement. * @param {{ * multiplier: Number; * outputStride: Num
src/BodyPix/index.js:42
Method
constructor
* Create ObjectDetector model. Works on video and images. * @param {string} modelNameOrUrl - The name or the URL of the model to use. Current model
src/ObjectDetector/index.js:27
Method
constructor
* Create YOLO model. Works on video and images. * @param {HTMLVideoElement|HTMLImageElement|HTMLCanvasElement|ImageData} video - Optional. The vid
src/ObjectDetector/YOLO/index.js:55
Method
constructor
* Create CocoSsd model. Works on video and images. * @param {function} constructorCallback - Optional. A callback function that is called once the
src/ObjectDetector/CocoSsd/index.js:26
Method
constructor
* Create a new Style Transfer Instance。 * @param {model} model - The path to Style Transfer model. * @param {HTMLVideoElement || p5.Video} video
src/StyleTransfer/index.js:37
Method
constructor
* Create a KNNClassifier instance.
src/KNNClassifier/index.js:21
Method
constructor
* Create an DCGAN. * @param {modelName} modelName - The name of the model to use. * @param {function} readyCb - A callback to be called when
src/DCGAN/index.js:31
Method
constructor
* Create a K-Means. * @param {String || array || object} dataset - The dataset to cluster. * @param {options} options - An object describing a m
src/KMeans/index.js:64
Method
constructor
* Create a DBSCAN. * @param {String || array || object} dataset - The dataset to cluster. in x, y format => [{x:1,y:2}] * @param {options} optio
src/DBSCAN/index.js:59
Method
constructor
* Create a Conditional Variational Autoencoder (CVAE). * @param {String} modelPath - Required. The url path to your model. * @param {function} c
src/CVAE/index.js:23
Method
constructor
()
examples/p5js/NeuralNetwork/NeuroEvolution_FlappyBird/pipe.js:7
Method
constructor
(brain)
examples/p5js/NeuralNetwork/NeuroEvolution_FlappyBird/bird.js:7
Method
constructor
(total)
examples/p5js/NeuralNetwork/NeuroEvolution_Path/population.js:8
Method
constructor
(brain)
examples/p5js/NeuralNetwork/NeuroEvolution_Path/particle.js:6
Method
constructor
()
examples/javascript/ImageClassification/ImageClassification_VideoSound/sketch.js:19
Method
constructor
()
examples/javascript/ImageClassification/ImageClassification_VideoScavengerHunt/sketch.js:24
Method
constructor
()
examples/javascript/KNNClassification/KNNClassification_VideoSound/sketch.js:23
Function
createRGBPalette
()
examples/p5js/BodyPix/BodyPix_Webcam_Parts/sketch.js:78
Function
createSimplePalette
()
examples/p5js/BodyPix/BodyPix_Webcam_Parts/sketch.js:56
Method
crossover
* create a new neural network with crossover * @param {*} other
src/NeuralNetwork/NeuralNetwork.js:321
Function
customMutate
(val)
examples/p5js/NeuralNetwork/NeuroEvolution_testing/sketch.js:19
Function
deleteProject
* Delete a project
scripts/batch-update-p5webeditor.js:282
Function
displayImage
(err, result)
examples/p5js/DCGAN/DCGAN_LatentVector_Slider/sketch.js:51
Function
displayImage
(err, result)
examples/p5js/DCGAN/DCGAN_Random/sketch.js:35
Function
displayImage
(err, result)
examples/p5js/DCGAN/DCGAN_LatentVector_RandomWalk/sketch.js:43
← previous
next →
601–700 of 1,175, ranked by callers