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

automatic differentiation library for Dart inspired by micrograd

autodiff_dart #

automatic differentiation library for Dart!

Static Badge Pub Points

GitHub commit activity GitHub Actions Workflow Status

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/value.dart';

void main() {
    // y = mx + b
    var m = Value(3);
    var x = Value(4);
    var b = Value(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