Skip to content

Scala.js bindings for TensorFlow.js. Train and deploy ML models in your browser with Scala.

License

Notifications You must be signed in to change notification settings

sbrunk/scalajs-tfjs

Repository files navigation

Scala.js-TensorFlow.js

This projects aims to provide Scala.js facades for TensorFlow.js, enabling you to create neural networks with Scala that run and can be trained with GPU acceleration in your browser.

This is WIP and still at an early stage. The tfjs-core bindings are almost done. You can create tensors and run operations on them.

You can now also use tfjs-layers build a simple sequential model.

See examples/mobilenet for a working example (live demo).

TODO

  • Add remaining core APIs
  • Fix many types that have been set to Any by the initial import
  • Make configuration objects used throughout the API usable from Scala code
  • Better integration with Scala core types like Seq
  • Port more examples from upstream
  • Add/port documentation

Contribution policy

Contributions via GitHub pull requests are gladly accepted from their original author. Along with any pull requests, please state that the contribution is your original work and that you license the work to the project under the project's open source license. Whether or not you state this explicitly, by submitting any copyrighted material via pull request, email, or other means you agree to license the material under the project's open source license and warrant that you have the legal authority to do so.

License

This code is open source software licensed under the Apache-2.0 license.

About

Scala.js bindings for TensorFlow.js. Train and deploy ML models in your browser with Scala.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published