machine-learning libraries for Source Academy
Install yarn:
corepack enable
# or
npm install -g yarn
Install dependencies:
yarn install
First, build it:
yarn build
See examples/basic_backpropagation.js.
node examples/basic_backpropagation.js
You can run http-server and load examples/browser/index.html to see how it works.
yarn serve
# and navigate to http://localhost:8080/examples/browser/index.html to run torch in js
# or http://localhost:8080/examples/pyodide/index.html to run in python
# or http://localhost:8080/test/ to run the tests
For detailed information on the codebase and tests, see CONTRIBUTING.md.