📜  获取 y_hat,或基于 x_values 的 y 预测值 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:01.583000             🧑  作者: Mango

代码示例1
//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