Skip to content

Commit

Permalink
Merge 74e7fc3 into 49bf936
Browse files Browse the repository at this point in the history
  • Loading branch information
gyrdym committed Oct 6, 2019
2 parents 49bf936 + 74e7fc3 commit 5307e1b
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,8 @@
# Changelog

## 5.0.4
- Default values for parameters `headerPrefix` and `headerPostfix` added where it applicable

## 5.0.3
- `README` corrected (ml_dataframe version corrected)

Expand Down
4 changes: 2 additions & 2 deletions lib/src/encoder/encode_as_integer_labels.dart
Expand Up @@ -7,8 +7,8 @@ import 'package:ml_preprocessing/src/pipeline/pipeable.dart';
PipeableOperatorFn encodeAsIntegerLabels({
Iterable<int> features,
Iterable<String> featureNames,
String headerPrefix,
String headerPostfix,
String headerPrefix = '',
String headerPostfix = '',
}) => (data) => EncoderImpl(
data,
EncoderType.label,
Expand Down
4 changes: 2 additions & 2 deletions lib/src/encoder/encode_as_one_hot_labels.dart
Expand Up @@ -7,8 +7,8 @@ import 'package:ml_preprocessing/src/pipeline/pipeable.dart';
PipeableOperatorFn encodeAsOneHotLabels({
Iterable<int> features,
Iterable<String> featureNames,
String headerPrefix,
String headerPostfix,
String headerPrefix = '',
String headerPostfix = '',
}) => (data) => EncoderImpl(
data,
EncoderType.oneHot,
Expand Down
4 changes: 2 additions & 2 deletions lib/src/encoder/encoder_impl.dart
Expand Up @@ -12,8 +12,8 @@ class EncoderImpl implements Encoder {
SeriesEncoderFactory seriesEncoderFactory, {
Iterable<int> featureIds,
Iterable<String> featureNames,
String encodedHeaderPrefix,
String encodedHeaderPostfix,
String encodedHeaderPrefix = '',
String encodedHeaderPostfix = '',
}) :
_encoderBySeries = createEncoderToSeriesMapping(
fittingData, featureNames, featureIds,
Expand Down
Expand Up @@ -8,8 +8,8 @@ import 'package:ml_preprocessing/src/encoder/series_encoder/series_encoder_facto
class SeriesEncoderFactoryImpl implements SeriesEncoderFactory {
@override
SeriesEncoder createByType(EncoderType type, Series fittingData, {
String headerPrefix,
String headerPostfix,
String headerPrefix = '',
String headerPostfix = '',
}) {
switch (type) {
case EncoderType.label:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
@@ -1,6 +1,6 @@
name: ml_preprocessing
description: Popular algorithms of data preprocessing for machine learning
version: 5.0.3
version: 5.0.4
author: Ilia Gyrdymov <ilgyrd@gmail.com>
homepage: https://github.com/gyrdym/ml_preprocessing

Expand Down

0 comments on commit 5307e1b

Please sign in to comment.