ml_preprocessing 4.0.0 copy "ml_preprocessing: ^4.0.0" to clipboard
ml_preprocessing: ^4.0.0 copied to clipboard

outdated

Implementaion of popular algorithms of data preprocessing for machine learning

example/main.dart

import 'dart:async';

import 'package:ml_dataframe/ml_dataframe.dart';
import 'package:ml_preprocessing/ml_preprocessing.dart';
import 'package:ml_preprocessing/src/encoder/pipeable/label_encode.dart';
import 'package:ml_preprocessing/src/encoder/pipeable/one_hot_encode.dart';
import 'package:ml_preprocessing/src/pipeline/pipeline.dart';

Future main() async {
  final dataFrame = await fromCsv('example/dataset.csv',
      columns: [0, 1, 2, 3]);

  final pipeline = Pipeline(dataFrame, [
    encodeAsOneHotLabels(
      columnNames: ['position'],
      headerPostfix: '_position',
    ),
    encodeAsIntegerLabels(
      columnNames: ['country'],
    ),
  ]);

  print(pipeline.process(dataFrame).toMatrix());
}
16
likes
40
pub points
66%
popularity

Publisher

verified publisherml-algo.com

Implementaion of popular algorithms of data preprocessing for machine learning

Repository (GitHub)
View/report issues

License

BSD-2-Clause (LICENSE)

Dependencies

ml_dataframe, ml_linalg, quiver, tuple, xrange

More

Packages that depend on ml_preprocessing