regression_data_split = {
var cars_data = cars_filtered.map((row) =>
[[row.Cylinders, row.Displacement, row.Horsepower, row.Weight_in_lbs], [row.Miles_per_Gallon], row.Name]);
var cars_shuffled = shuffleArray(cars_data);
const train_count = 0.8*cars_shuffled.length;
var X_train = cars_shuffled.slice(0, train_count).map(x => x[0]);
var X_test = cars_shuffled.slice(train_count).map(x => x[0]);
var Y_train = cars_shuffled.slice(0, train_count).map(x => x[1]);
var Y_test = cars_shuffled.slice(train_count).map(x => x[1]);
var names_train = cars_shuffled.slice(0, train_count).map(x => x[2]);
var names_test = cars_shuffled.slice(train_count).map(x => x[2]);
return [X_train, X_test, Y_train, Y_test, names_train, names_test];
}