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

outdated

Popular algorithms of data preprocessing for machine learning

example/main.dart

import 'package:ml_dataframe/ml_dataframe.dart';
import 'package:ml_preprocessing/ml_preprocessing.dart';
import 'package:ml_preprocessing/src/encoder/encode_as_integer_labels.dart';
import 'package:ml_preprocessing/src/encoder/encode_as_one_hot_labels.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(
      featureNames: ['position'],
      headerPostfix: '_position',
    ),
    encodeAsIntegerLabels(
      featureNames: ['country'],
    ),
  ]);

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

Publisher

verified publisherml-algo.com

Popular algorithms of data preprocessing for machine learning

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

ml_dataframe, ml_linalg, quiver

More

Packages that depend on ml_preprocessing