ml_helper 0.0.1
ml_helper: ^0.0.1 copied to clipboard
A lightweight Dart library for machine learning, with linear regression, preprocessing, and metrics.
ML Helper #
ML Helper is a lightweight Dart library for machine learning. It provides tools for linear regression, metrics, and data preprocessing, fully offline and Flutter-friendly.
Features #
- Linear Regression
- Preprocessing: normalization, train/test split
- Metrics: accuracy, recall, F1-score, MSE
- Math utilities: mean, standard deviation, sigmoid, softmax
Example #
import 'package:ml_helper/ml_helper.dart';
void main() {
final model = LinearRegression();
model.fit([1,2,3], [2,4,6]);
print(model.predict(4)); // 8
}