📅  最后修改于: 2022-03-11 15:00:01.583000             🧑  作者: Mango
//Get y_hat, or predicted values of y based on x_values
//Loop through x_values, and run the elements through the lr equation to get predictions
var y_hat = [];
for(i=0; i