DataPreparation Versions Save

Data preparation for data science projects.

v0.4.3

4 years ago

V 0.4.3

  • Fix :
    • In sameShape: there was a future bug due to change in class "matrix". Fixed it by implementing 2 functions to check class

V 0.4.2

  • Fix test :
    • Case in build_encoding: min_frequency allows to drop rare values" was not built correctly.

v0.4.1

4 years ago
  • New features:
    • New functions:
      • Functions target_encode and build_target_encoding have been implemented to provide target encoding which is the process of replacing a categorical value with the aggregation of the target variable.
      • Function remove_sd_outlier helps to remove rows that have numerical values to extrem.
      • Function remove_percentile_outlier helps to remove rows that have numerical values to extrem (based on percentile analysis).
      • Function remove_rare_categorical helps to remove rows that have categorial values to rare.
    • New features in existing functions :
      • Function prepareSet integrate target_encode function. It is called by providing target_col and target_encoding_functions.

v0.4.0

5 years ago

V 0.4.0

  • New features:

    • New features in existing functions :
      • To avoid issues based on column names, we will check and rename columns that have same names.
      • In aggregateByKey generated column names are changed to be more explicit.
      • In aggregateByKey generated from character column with more than \code{thresh} values is now count of unique instead of count.
      • Added missing auto default values on cols
  • Bug fixes:

    • whichAreBijection and whichAreInDouble are using bi_col_test which was not working with 2 column data set. It is fixed.
    • prepareSet optinal argumennt factor_date_type was not working. It is fixed.
  • Other changes:

    • Changed whichAreIncluded example since it was to slow for CRAN. Also it might be a little bit more explicit now.
    • Changed aggregateByKey example since it was to slow for CRAN.
  • Integration:

    • Rewrite all tests to make them more readable
    • Code coverage is improved, depencies on messy_adult set is lowered

WARNING:

  • In aggregateByKey generated column names are changed.
  • In aggregateByKey generated column for character is different.

v0.3.9

5 years ago
  • Integration:
    • Matching new devtools requierments
    • Starting to rewrite unittest to make it more readable

v0.3.8

5 years ago

V 0.3.8

  • New features:
    • New features in existing functions:
      • Identification of bijection through internal function fastIsBijection is way faster (up to 40 times faster in case of bijection). So whichArebijection and fastFiltervariables are also improved.
      • Remove remaining gc to save time.
      • In one_hot_encoder added parameter type to make choise between logical or numerical results.

v0.3.7

5 years ago
  • New features:

    • New functions:
      • Function as.POSIXct_fast is now available. It helps to transform to POSIXct way faster (if the same date value is present multiple times in the column).
    • New features in existing functions:
      • In dates identifications, we make it faster by computing search of format only on unique values.
      • In date transformation, we made it faster by using as.POSIXct_fast when it is necessary.
      • Functions findAndTransFormDates, findAndTransformNumerics and unFactor now accept argument cols to limitate search.
  • Bug fixes:

    • Control that over-allocate option is activated on every data.table to avoid issues with set. Package should be more robust.
    • In bijection search (internal function fastIsBijection) there was a bug on some rare cases. Fixed but slower.

-Code quality: - Improving code quality using lintr - Suppressing some useless code - Meeting new covr standard - Improve log of setColAsXXX

v0.3.6

6 years ago
  • Bug fixes:

    • identifyDates had a weird bug. Solved
  • Integration:

    • Making dataPreparation compatible with testthat 2.0.0

v0.3.5

6 years ago

New features:

  • New features in existing functions:

    • findAndTransFormDates now as an ambiguities parameter, IGNORE to work as before, WARN to check for ambiguities and print them, SOLVE to try to solve ambiguities on more lines.
    • one_hot_encoder now uses a build_encoding functions to be able to build same encoding on train and on test.
    • aggregateByKey is now way faster on numerics. But it changed the way it gets input functions.
    • fastScale now as a way parameter which allow you to either scale or unscale. Unscaling numeric values can be very usefull for most post-model analysis.
    • setColAsDate now accept multiple formats in a single call.
  • New functions:

    • build_encoding build a list of encoding to be used by one_hot_encoder, it also has a parameter min_frequency to control that rare values doesn't result in new columns.
    • Previously private function identifyDates is now exported. To be able to perform same transformation on train and on test.
    • Adding dataPrepNews function to open NEWS file (inspired from rfNews() of randomForest package)

Bug fixes:

  • findAndTransFormDates: bug fixed: user formats weren't used.
  • identifyDates: some formats where tested but would never work. They have been removed.

Refactoring:

  • Unit test partly reviewed to be more readable and more efficient. Unit test time as been divided by 3.
  • Improving input control for more robust functions

WARNING:

  • one_hot_encoder now requires you to run build_encoding first.
  • aggregateByKey now require functions to be passed by character name

This version is making (as much as possible) transformation reproducible on train and test set. This is to prepare future pipeline feature.

v0.3.4

6 years ago

Improvement of function:

  • whichAreBijection: It is 2 to 15 time faster than previous version.
  • whichAreIncluded: It is a bit faster.

Bug fixes:

  • generateFactorFromDate: default value was missing. Fixed.

New features:

  • New features in existing functions:
    • fastFilterVariables has a new parameter (level) to choose which types of filtering to perform
    • findAndTransFormDates now recognize date character even if there are multiple separator in date (ex: "2016, Jan-26").
    • findAndTransFormDates now recognize date character even if there are leading and tailing white spaces.

WARNING:

  • whichAreIncluded: in case of bijection (col1 is a bijection of col2), they are both included in the other, but the choice of the one to drop might have changed in this version.
  • date3 column in messy_adult data set has changed in order to illustrate the recognition of date character even if there are leading and/or trailing white spaces.
  • date4 column in messy_adult data set has changed in order to illustrate the recognition of date character even if there are multiple separator.

v0.3.2

6 years ago

New features:

  • New features in existing functions:

    • findAndTransFormDates now recognize date character even if "0" are not present in month or day part and month as lower strings.
    • findAndTransFormDates and setColAsDate now work with factors.
  • New functions:

    • fastDiscretization: to perform equal freq or equal width discretization on a data set using data.table power.
    • fastScale: to perform scaling on a data set using data.table power.
    • one_hot_encoder: to perform one_hot encoding on a data set using data.table power.
  • New documentation:

    • A new vignette to illustrate how to build a correct train and test set unising data preparation
    • Minor changes in log (in particular regarding progress bars and typos)
    • Due to dependencies issues with tcltk, we stop using it and start using progress

Refactoring:

  • Private function real_cols take more importance to control that columns have the correct types and handling "auto" value.
  • Making code faster: some functions are up to 30% faster
  • Review unit testing to be faster
  • Unit test evolution to be more readable

WARNING:

  • date1 column in messy_adult data set has changed in order to illustrate the recognition of date character even if "0" are not present in month or day part.