@@ -97,6 +97,9 @@ The `linreg_stats` aggregation computes statistics for the estimated linear regr
9797`rss`:: Residual sum of squares as a measure of the discrepancy between the data and the estimated model.
9898 The lower the `rss` number, the smaller the error of the prediction, and the better the model.
9999`mse`:: Mean squared error or rather `rss` divided by the number of documents consumed for model estimation.
100+ `r2`:: Coefficient of determination, denoted R², as a statistical measure of how well the regression model
101+ approximates the real data points. R² ranges from 0 to 1, where 1 indicates that the estimated hypothesis function perfectly fits the data.
102+ (Available since 5.5.1.2)
100103`coefficients`:: Estimated coefficients
101104 image:http://latex.codecogs.com/gif.latex?\theta_0,%20\theta_1,%20\theta_2,%20\theta_3,.%20.%20.,%20\theta_C%20[]
102105 of the linear linear hypothesis function ``h(x)``.
@@ -128,13 +131,14 @@ and the last for the response variable. The above request returns the following
128131 ...
129132 "aggregations": {
130133 "house_prices": {
131- "rss": 49523788338938.734,
132- "mse": 63410740510.80504,
134+ "rss": 49523788338938.75,
135+ "mse": 63410740510.80505,
136+ "r2": 0.4788369924642064,
133137 "coefficients": [
134- 47553.18737564783 ,
135- -100544.0725894584 ,
136- 45981.15827544966 ,
137- 309.6013051477475
138+ 47553.1873756476 ,
139+ -100544.07258945837 ,
140+ 45981.15827544975 ,
141+ 309.6013051477474
138142 ]
139143 }
140144 }
@@ -167,7 +171,7 @@ matrix which matches your Elasticsearch version and use the download link for th
167171
168172[source]
169173----
170- ./bin/elasticsearch-plugin install https://github.com/scaleborn/elasticsearch-linear-regression/releases/download/5.5.1.1 /elasticsearch-linear-regression-5.5.1.1 .zip
174+ ./bin/elasticsearch-plugin install https://github.com/scaleborn/elasticsearch-linear-regression/releases/download/5.5.1.2 /elasticsearch-linear-regression-5.5.1.2 .zip
171175----
172176The plugin will be installed under the name "linear-regression".
173177Do not forget to restart the node after installing.
@@ -176,6 +180,7 @@ Do not forget to restart the node after installing.
176180[frame="all"]
177181|===
178182| Plugin version | Elasticsearch version | Release date
183+ | https://github.com/scaleborn/elasticsearch-linear-regression/releases/download/5.5.1.2/elasticsearch-linear-regression-5.5.1.2.zip[5.5.1.2] | 5.5.1 | Aug 29, 2017
179184| https://github.com/scaleborn/elasticsearch-linear-regression/releases/download/5.5.1.1/elasticsearch-linear-regression-5.5.1.1.zip[5.5.1.1] | 5.5.1 | Jul 27, 2017
180185| https://github.com/scaleborn/elasticsearch-linear-regression/releases/download/5.5.0.1/elasticsearch-linear-regression-5.5.0.1.zip[5.5.0.1] | 5.5.0 | Jul 18, 2017
181186| https://github.com/scaleborn/elasticsearch-linear-regression/releases/download/5.3.0.2/elasticsearch-linear-regression-5.3.0.2.zip[5.3.0.2] | 5.3.0 | Jul 16, 2017
0 commit comments