Stay organized with collections
Save and categorize content based on your preferences.
Creates a reducer that computes a linear least squares regression with numX independent variables and numY dependent variables.
Each input tuple will have values for the independent variables followed by the dependent variables.
The first output is a coefficients array with dimensions (numX, numY); each column contains the coefficients for the corresponding dependent variable. The second output is a vector of the root mean square of the residuals of each dependent variable. Both outputs are null if the system is underdetermined, e.g., the number of inputs is less than or equal to numX.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-13 UTC."],[[["Computes a linear least squares regression with user-defined independent and dependent variables."],["Each input to the reducer should contain values for independent variables followed by dependent variables."],["Outputs a coefficients array and a root mean square error vector, or null if the system is underdetermined."],["The coefficients array provides coefficients for each dependent variable, organized in columns."],["The root mean square error vector quantifies the residual error for each dependent variable."]]],[]]