ml_algo 4.3.3 copy "ml_algo: ^4.3.3" to clipboard
ml_algo: ^4.3.3 copied to clipboard

outdated

Machine learning algorithms written in native dart (without bindings to any popular ML libraries, pure Dart implementation)

example/main.dart

import 'dart:async';

import 'gradient_descent_regression.dart';
import 'lasso_regression.dart';
import 'logistic_regression.dart';

Future main() async {
  print('Learning in process, wait a bit...');
  print('\n');

  final sgdQuality = await gradientDescentRegression();
  print('========================================================================================================');
  print('|| Stochastic gradient descent regression, K-fold cross validation with MAPE metric (error in percents):');
  print('|| ${sgdQuality.toStringAsFixed(2)}%');
  print('========================================================================================================');

  print('\n');

  final lassoQuality = await lassoRegression();
  print('========================================================================================================');
  print('|| Lasso regression, K-fold cross validation with MAPE metric (error in percent):');
  print('|| ${lassoQuality.toStringAsFixed(2)}%');
  print('=========================================================================================================');

  print('\n');
  print('Learning of logistic regressor in progress, wait a bit... (best possible parameters are being fitted)');
  print('\n');

  final logisticRegressionError = await logisticRegression();
  print('=========================================================================================================');
  print('|| Logistic regression, error on cross validation: ');
  print('|| ${(logisticRegressionError * 100).toStringAsFixed(2)}%,');
  print('=========================================================================================================');
}
103
likes
0
pub points
82%
popularity

Publisher

verified publisherml-algo.com

Machine learning algorithms written in native dart (without bindings to any popular ML libraries, pure Dart implementation)

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

csv, ml_linalg

More

Packages that depend on ml_algo