Skip to content

veehz/torch

 
 

Repository files navigation

torch

machine-learning libraries for Source Academy

Getting Started

Install yarn:

corepack enable
# or
npm install -g yarn

Install dependencies:

yarn install

Demo Usage

First, build it:

yarn build

Node

See examples/basic_backpropagation.js.

node examples/basic_backpropagation.js

Browser

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

Contributing

For detailed information on the codebase and tests, see CONTRIBUTING.md.

About

machine-learning libraries for Source Academy

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 60.5%
  • Jinja 18.6%
  • JavaScript 17.9%
  • Python 1.9%
  • Other 1.1%