autodiff_dart 1.0.1
autodiff_dart: ^1.0.1 copied to clipboard
automatic differentiation library for Dart inspired by micrograd
autodiff_dart #
automatic differentiation library for Dart!
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");
}