Skip to content

wooliet/ml5-examples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ml5 Examples

Description

This repository contains a collection of examples using ml5.js. The examples are meant to serve as an introduction to the library and machine learning concepts.

Examples are organized into folders according to their integration with other JavaScript libraries.

For example, the /p5js folder holds examples of using ml5.js with p5.js. All examples are self-contained and can be run independently. Libraries are loaded through a Content Delivery Network (CDN) and certain examples (indicated in code comments) download a machine learning model from a "cloud" url.

If you need to run the examples offline you can download the p5.js libraries here and ml5 library here.

Usage

Download or clone this repository:

git clone https://github.com/ml5js/ml5-examples.git

Change directory into the new folder and start a server. An easy way to start a server is with python. If you are have python 2:

cd ml5-examples
python -m SimpleHTTPServer

If you are have python 3:

cd ml5-examples
python -m http.server

If you don't know how to start a server, check this guide.

p5.js web editor examples

The p5.js examples can also be run using the p5.js web editor. We are in the process of porting and would welcome any contributions!

Contributing

See CONTRIBUTING.MD

About

A collection of ml5.js examples

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 64.9%
  • HTML 33.5%
  • Other 1.6%