boston_housing.evaluating_model_performance.shuffle_split_data

boston_housing.evaluating_model_performance.shuffle_split_data(X, y, test_size=0.3, random_state=0)[source]

Shuffles and splits data into training and testing subsets

Param:
  • X: feature array
  • y: target array
  • test_size: fraction of data to use for testing
  • random_state: seed for the random number generator
Returns:

x-train, y-train, x-test, y-test