autodiff_dart 1.0.0 copy "autodiff_dart: ^1.0.0" to clipboard
autodiff_dart: ^1.0.0 copied to clipboard

automatic differentiation library for Dart inspired by micrograd

autodiff_dart #

automatic differentiation library for Dart!

GitHub commit activity GitHub Actions Workflow Status Pub Points

inspired by Karpathy's micrograd, I thought that building this would be a good experience for me to learn dart, and deepen my understanding of backpropagation.

This package would be useful as a flutter package in a calculator application where you want the ability to calculate derivatives of functions that users write.

Simple Example #

import 'package:autodiff_dart/scalar.dart';

void main() {
    // y = mx + b
    var m = Scalar(3);
    var x = Scalar(4);
    var b = Scalar(5);
    var y = m * x + b;

    // compute dy/dx
    y.backward();
    print("$y = $m * $x + $b");
}
0
likes
0
points
29
downloads

Publisher

unverified uploader

Weekly Downloads

automatic differentiation library for Dart inspired by micrograd

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on autodiff_dart