machine-learning libraries for Source Academy
Install yarn:
corepack enable
# or
npm install -g yarnInstall dependencies:
yarn installFirst, build it:
yarn buildSee examples/basic_backpropagation.js.
node examples/basic_backpropagation.jsYou 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 testsFor detailed information on the codebase and tests, see CONTRIBUTING.md.