Convert Records to Scaler Train and Test Datasets

Helper method for converting records into a scaler datasets that are split using sklearn.model_selection.train_test_split . This means all training and tests data is bounded between a range like: [-1, 1].

antinex_utils.build_scaler_train_and_test_datasets.build_scaler_train_and_test_datasets(label, train_features, test_feature, df, test_size, seed, scaler_cast_to_type='float32', min_feature_range=-1, max_feature_range=1)[source]
  • label – log label
  • train_features – features to train
  • test_feature – target feature name
  • df – dataframe to build scalers and test and train datasets
  • test_size – percent of test to train rows
  • min_feature_range – min scaler range
  • max_feature_range – max scaler range