lucene/solr/solr-ref-guide/src/regression.adoc

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

431 lines
12 KiB
Plaintext
Raw Normal View History

SOLR-11947: Squashed commit of the following ref guide changes: commit 61053f2fe373bff0b451f549e063550f08ecdac1 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:44:12 2018 -0400 SOLR-11947: Fix orphaned files commit 42302073bf61fde134caeff71b6db3978e113b4d Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:27:26 2018 -0400 SOLR-11947: small change commit b16b1453c2e7d5083f588b4b874c918d521e9fe5 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:23:17 2018 -0400 SOLR-11947: proofing commit 57265ce4659a427c179e206b79d8fe05b01a5f93 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 24 14:41:48 2018 -0400 SOLR-11947: monte carlo WIP commit 04e8381f6b5b329c5fa17c1f31c2d848fe9cec2a Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 16:24:10 2018 -0400 SOLR-11947: probabiity WIP commit 4298a6d514e7e431e322a4f62c22c336430a89f1 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 13:07:05 2018 -0400 SOLR-11947: time series WIP commit 1a7654f9225948cd4adb3056bc2192cc0d24b3ee Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 11:32:53 2018 -0400 SOLR-11947: machine learning WIP commit fae0c3aa46e6f26fecb59077207982b2f584ec86 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 22:14:15 2018 -0400 SOLR-11947: machine learning WIP commit fb6a96b2bdc4bbc4c2b5b62b6e69cd561ef9e31b Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 14:36:08 2018 -0400 SOLR-11947: numerical analysis WIP commit a648ba939c90caf5db2a5b88023bd580d4d1e8af Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 12:27:33 2018 -0400 SOLR-11947: numerical analysis WIP commit ce8f1b710d414d8e3ff3c8676f64fc3017316a15 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 21 19:56:10 2018 -0400 SOLR-11947: numerical analysis WIP commit 5e25a4884341cdd84988e13250f255eb23d7fd50 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 22:01:59 2018 -0400 SOLR-11947: Curve fitting WIP commit f381414dc44ecfa781988c5ca75bfb1c80de6674 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 21:49:39 2018 -0400 SOLR-11947: Curve fitting WIP commit 4be725132215ed44cc84587bb0d11be216360b74 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 19 19:55:10 2018 -0400 SOLR-11947: Monte Carlo WIP commit d330b412e46be0ebf8d75e99295e3fe9f978c02c Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 18 22:00:55 2018 -0400 SOLR-11947: Probability WIP commit e3d6160c1fa650e054b9694c57d34b3950c80175 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 17 21:18:43 2018 -0400 SOLR-11947: More WIP commit 8484b0283f79825dee8eaee82604120d04511de4 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 16 15:03:06 2018 -0400 SOLR-11947: machine learning WIP commit 77ecfdc71d79ca8eded0355669310c6025c70d96 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 21:33:09 2018 -0400 SOLR-11947: machine learning WIP commit 7488caf5e54436a0e5fe85c0dda4ea31d8357600 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 19:08:50 2018 -0400 SOLR-11947: machine learning WIP commit 102ee2e1857e7d7f45d7f3195a0a4e91eacb766d Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 15:18:31 2018 -0400 SOLR-11947: machine learning WIP commit 0d5cd2b4a4fd012fe6d640a86733280702cf8673 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 21:49:15 2018 -0400 SOLR-11947: numerical analysis WIP commit 31eec30576479a9023c7b0e6ccb2d9f685e128a1 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 14:41:06 2018 -0400 SOLR-11947: numerical analysis WIP commit c6e324ac56ca6e9f229d6acb39fdcf60c3356230 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 13 15:16:26 2018 -0400 SOLR-11947: term vectors WIP commit 8c843999eabdb82665641caa9c21f07e95b70a86 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 18:03:53 2018 -0400 SOLR-11947: Add curve fitting to TOC commit 09be026f6ad400d965fd373403d7a2eb2fae0c90 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 15:36:05 2018 -0400 SOLR-11947: Text analysis WIP commit e48b4d69abadb603a90c052aa1e36dd60ae7fd33 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 11 18:29:20 2018 -0400 SOLR-11947: TOC changes commit f71ebc079713e16492ba45cedafc3b9512f6bae2 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 17:54:04 2018 -0500 SOLR-11947: WIP term vectors commit ebc6b3943a27454adaf1a2309b6720bb2ba63c8c Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 13:34:19 2018 -0500 SOLR-11947: WIP regression commit 44752b2d34f46bc7f5693839e42ab3cef9edc47c Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 22:40:40 2018 -0500 SOLR-11947: WIP for vectorization.adoc commit 43254fcb05386264a6d591b1fa2c2573dcc2d2a3 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 19:42:26 2018 -0500 SOLR-11947: Test local links commit b60df2000978f70720eb0a36543752fd3bf07d2c Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:41:17 2018 -0500 SOLR-11947: Update math-expressions TOC commit de068c3af8557d60de37cb29f3ed7da3f5442772 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:24:46 2018 -0500 SOLR-11947: Continued work on math expressions documentation. commit fe445f2c997ea825d1ae9b9912406521249befc0 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 20:22:33 2018 -0500 SOLR-12054: ebeAdd and ebeSubtract should support matrix operations commit 1f3ae745cc26453a34a64a4327ceac7cc91d23f5 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 13:24:54 2018 -0500 SOLR-11947: Initial commit for new math expression docs WIP
2018-03-26 12:48:33 -04:00
= Linear Regression
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
The math expressions library supports simple and multivariate linear regression.
SOLR-11947: Squashed commit of the following ref guide changes: commit 61053f2fe373bff0b451f549e063550f08ecdac1 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:44:12 2018 -0400 SOLR-11947: Fix orphaned files commit 42302073bf61fde134caeff71b6db3978e113b4d Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:27:26 2018 -0400 SOLR-11947: small change commit b16b1453c2e7d5083f588b4b874c918d521e9fe5 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:23:17 2018 -0400 SOLR-11947: proofing commit 57265ce4659a427c179e206b79d8fe05b01a5f93 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 24 14:41:48 2018 -0400 SOLR-11947: monte carlo WIP commit 04e8381f6b5b329c5fa17c1f31c2d848fe9cec2a Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 16:24:10 2018 -0400 SOLR-11947: probabiity WIP commit 4298a6d514e7e431e322a4f62c22c336430a89f1 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 13:07:05 2018 -0400 SOLR-11947: time series WIP commit 1a7654f9225948cd4adb3056bc2192cc0d24b3ee Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 11:32:53 2018 -0400 SOLR-11947: machine learning WIP commit fae0c3aa46e6f26fecb59077207982b2f584ec86 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 22:14:15 2018 -0400 SOLR-11947: machine learning WIP commit fb6a96b2bdc4bbc4c2b5b62b6e69cd561ef9e31b Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 14:36:08 2018 -0400 SOLR-11947: numerical analysis WIP commit a648ba939c90caf5db2a5b88023bd580d4d1e8af Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 12:27:33 2018 -0400 SOLR-11947: numerical analysis WIP commit ce8f1b710d414d8e3ff3c8676f64fc3017316a15 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 21 19:56:10 2018 -0400 SOLR-11947: numerical analysis WIP commit 5e25a4884341cdd84988e13250f255eb23d7fd50 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 22:01:59 2018 -0400 SOLR-11947: Curve fitting WIP commit f381414dc44ecfa781988c5ca75bfb1c80de6674 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 21:49:39 2018 -0400 SOLR-11947: Curve fitting WIP commit 4be725132215ed44cc84587bb0d11be216360b74 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 19 19:55:10 2018 -0400 SOLR-11947: Monte Carlo WIP commit d330b412e46be0ebf8d75e99295e3fe9f978c02c Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 18 22:00:55 2018 -0400 SOLR-11947: Probability WIP commit e3d6160c1fa650e054b9694c57d34b3950c80175 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 17 21:18:43 2018 -0400 SOLR-11947: More WIP commit 8484b0283f79825dee8eaee82604120d04511de4 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 16 15:03:06 2018 -0400 SOLR-11947: machine learning WIP commit 77ecfdc71d79ca8eded0355669310c6025c70d96 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 21:33:09 2018 -0400 SOLR-11947: machine learning WIP commit 7488caf5e54436a0e5fe85c0dda4ea31d8357600 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 19:08:50 2018 -0400 SOLR-11947: machine learning WIP commit 102ee2e1857e7d7f45d7f3195a0a4e91eacb766d Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 15:18:31 2018 -0400 SOLR-11947: machine learning WIP commit 0d5cd2b4a4fd012fe6d640a86733280702cf8673 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 21:49:15 2018 -0400 SOLR-11947: numerical analysis WIP commit 31eec30576479a9023c7b0e6ccb2d9f685e128a1 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 14:41:06 2018 -0400 SOLR-11947: numerical analysis WIP commit c6e324ac56ca6e9f229d6acb39fdcf60c3356230 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 13 15:16:26 2018 -0400 SOLR-11947: term vectors WIP commit 8c843999eabdb82665641caa9c21f07e95b70a86 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 18:03:53 2018 -0400 SOLR-11947: Add curve fitting to TOC commit 09be026f6ad400d965fd373403d7a2eb2fae0c90 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 15:36:05 2018 -0400 SOLR-11947: Text analysis WIP commit e48b4d69abadb603a90c052aa1e36dd60ae7fd33 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 11 18:29:20 2018 -0400 SOLR-11947: TOC changes commit f71ebc079713e16492ba45cedafc3b9512f6bae2 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 17:54:04 2018 -0500 SOLR-11947: WIP term vectors commit ebc6b3943a27454adaf1a2309b6720bb2ba63c8c Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 13:34:19 2018 -0500 SOLR-11947: WIP regression commit 44752b2d34f46bc7f5693839e42ab3cef9edc47c Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 22:40:40 2018 -0500 SOLR-11947: WIP for vectorization.adoc commit 43254fcb05386264a6d591b1fa2c2573dcc2d2a3 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 19:42:26 2018 -0500 SOLR-11947: Test local links commit b60df2000978f70720eb0a36543752fd3bf07d2c Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:41:17 2018 -0500 SOLR-11947: Update math-expressions TOC commit de068c3af8557d60de37cb29f3ed7da3f5442772 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:24:46 2018 -0500 SOLR-11947: Continued work on math expressions documentation. commit fe445f2c997ea825d1ae9b9912406521249befc0 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 20:22:33 2018 -0500 SOLR-12054: ebeAdd and ebeSubtract should support matrix operations commit 1f3ae745cc26453a34a64a4327ceac7cc91d23f5 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 13:24:54 2018 -0500 SOLR-11947: Initial commit for new math expression docs WIP
2018-03-26 12:48:33 -04:00
== Simple Linear Regression
The `regress` function is used to build a linear regression model
between two random variables. Sample observations are provided with two
numeric arrays. The first numeric array is the independent variable and
the second array is the dependent variable.
SOLR-11947: Squashed commit of the following ref guide changes: commit 61053f2fe373bff0b451f549e063550f08ecdac1 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:44:12 2018 -0400 SOLR-11947: Fix orphaned files commit 42302073bf61fde134caeff71b6db3978e113b4d Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:27:26 2018 -0400 SOLR-11947: small change commit b16b1453c2e7d5083f588b4b874c918d521e9fe5 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:23:17 2018 -0400 SOLR-11947: proofing commit 57265ce4659a427c179e206b79d8fe05b01a5f93 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 24 14:41:48 2018 -0400 SOLR-11947: monte carlo WIP commit 04e8381f6b5b329c5fa17c1f31c2d848fe9cec2a Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 16:24:10 2018 -0400 SOLR-11947: probabiity WIP commit 4298a6d514e7e431e322a4f62c22c336430a89f1 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 13:07:05 2018 -0400 SOLR-11947: time series WIP commit 1a7654f9225948cd4adb3056bc2192cc0d24b3ee Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 11:32:53 2018 -0400 SOLR-11947: machine learning WIP commit fae0c3aa46e6f26fecb59077207982b2f584ec86 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 22:14:15 2018 -0400 SOLR-11947: machine learning WIP commit fb6a96b2bdc4bbc4c2b5b62b6e69cd561ef9e31b Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 14:36:08 2018 -0400 SOLR-11947: numerical analysis WIP commit a648ba939c90caf5db2a5b88023bd580d4d1e8af Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 12:27:33 2018 -0400 SOLR-11947: numerical analysis WIP commit ce8f1b710d414d8e3ff3c8676f64fc3017316a15 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 21 19:56:10 2018 -0400 SOLR-11947: numerical analysis WIP commit 5e25a4884341cdd84988e13250f255eb23d7fd50 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 22:01:59 2018 -0400 SOLR-11947: Curve fitting WIP commit f381414dc44ecfa781988c5ca75bfb1c80de6674 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 21:49:39 2018 -0400 SOLR-11947: Curve fitting WIP commit 4be725132215ed44cc84587bb0d11be216360b74 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 19 19:55:10 2018 -0400 SOLR-11947: Monte Carlo WIP commit d330b412e46be0ebf8d75e99295e3fe9f978c02c Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 18 22:00:55 2018 -0400 SOLR-11947: Probability WIP commit e3d6160c1fa650e054b9694c57d34b3950c80175 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 17 21:18:43 2018 -0400 SOLR-11947: More WIP commit 8484b0283f79825dee8eaee82604120d04511de4 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 16 15:03:06 2018 -0400 SOLR-11947: machine learning WIP commit 77ecfdc71d79ca8eded0355669310c6025c70d96 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 21:33:09 2018 -0400 SOLR-11947: machine learning WIP commit 7488caf5e54436a0e5fe85c0dda4ea31d8357600 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 19:08:50 2018 -0400 SOLR-11947: machine learning WIP commit 102ee2e1857e7d7f45d7f3195a0a4e91eacb766d Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 15:18:31 2018 -0400 SOLR-11947: machine learning WIP commit 0d5cd2b4a4fd012fe6d640a86733280702cf8673 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 21:49:15 2018 -0400 SOLR-11947: numerical analysis WIP commit 31eec30576479a9023c7b0e6ccb2d9f685e128a1 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 14:41:06 2018 -0400 SOLR-11947: numerical analysis WIP commit c6e324ac56ca6e9f229d6acb39fdcf60c3356230 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 13 15:16:26 2018 -0400 SOLR-11947: term vectors WIP commit 8c843999eabdb82665641caa9c21f07e95b70a86 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 18:03:53 2018 -0400 SOLR-11947: Add curve fitting to TOC commit 09be026f6ad400d965fd373403d7a2eb2fae0c90 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 15:36:05 2018 -0400 SOLR-11947: Text analysis WIP commit e48b4d69abadb603a90c052aa1e36dd60ae7fd33 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 11 18:29:20 2018 -0400 SOLR-11947: TOC changes commit f71ebc079713e16492ba45cedafc3b9512f6bae2 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 17:54:04 2018 -0500 SOLR-11947: WIP term vectors commit ebc6b3943a27454adaf1a2309b6720bb2ba63c8c Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 13:34:19 2018 -0500 SOLR-11947: WIP regression commit 44752b2d34f46bc7f5693839e42ab3cef9edc47c Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 22:40:40 2018 -0500 SOLR-11947: WIP for vectorization.adoc commit 43254fcb05386264a6d591b1fa2c2573dcc2d2a3 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 19:42:26 2018 -0500 SOLR-11947: Test local links commit b60df2000978f70720eb0a36543752fd3bf07d2c Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:41:17 2018 -0500 SOLR-11947: Update math-expressions TOC commit de068c3af8557d60de37cb29f3ed7da3f5442772 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:24:46 2018 -0500 SOLR-11947: Continued work on math expressions documentation. commit fe445f2c997ea825d1ae9b9912406521249befc0 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 20:22:33 2018 -0500 SOLR-12054: ebeAdd and ebeSubtract should support matrix operations commit 1f3ae745cc26453a34a64a4327ceac7cc91d23f5 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 13:24:54 2018 -0500 SOLR-11947: Initial commit for new math expression docs WIP
2018-03-26 12:48:33 -04:00
In the example below the `random` function selects 5000 random samples each containing
the fields `filesize_d` and `response_d`. The two fields are vectorized
and stored in variables *`b`* and *`c`*. Then the `regress` function performs a regression
SOLR-11947: Squashed commit of the following ref guide changes: commit 61053f2fe373bff0b451f549e063550f08ecdac1 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:44:12 2018 -0400 SOLR-11947: Fix orphaned files commit 42302073bf61fde134caeff71b6db3978e113b4d Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:27:26 2018 -0400 SOLR-11947: small change commit b16b1453c2e7d5083f588b4b874c918d521e9fe5 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:23:17 2018 -0400 SOLR-11947: proofing commit 57265ce4659a427c179e206b79d8fe05b01a5f93 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 24 14:41:48 2018 -0400 SOLR-11947: monte carlo WIP commit 04e8381f6b5b329c5fa17c1f31c2d848fe9cec2a Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 16:24:10 2018 -0400 SOLR-11947: probabiity WIP commit 4298a6d514e7e431e322a4f62c22c336430a89f1 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 13:07:05 2018 -0400 SOLR-11947: time series WIP commit 1a7654f9225948cd4adb3056bc2192cc0d24b3ee Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 11:32:53 2018 -0400 SOLR-11947: machine learning WIP commit fae0c3aa46e6f26fecb59077207982b2f584ec86 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 22:14:15 2018 -0400 SOLR-11947: machine learning WIP commit fb6a96b2bdc4bbc4c2b5b62b6e69cd561ef9e31b Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 14:36:08 2018 -0400 SOLR-11947: numerical analysis WIP commit a648ba939c90caf5db2a5b88023bd580d4d1e8af Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 12:27:33 2018 -0400 SOLR-11947: numerical analysis WIP commit ce8f1b710d414d8e3ff3c8676f64fc3017316a15 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 21 19:56:10 2018 -0400 SOLR-11947: numerical analysis WIP commit 5e25a4884341cdd84988e13250f255eb23d7fd50 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 22:01:59 2018 -0400 SOLR-11947: Curve fitting WIP commit f381414dc44ecfa781988c5ca75bfb1c80de6674 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 21:49:39 2018 -0400 SOLR-11947: Curve fitting WIP commit 4be725132215ed44cc84587bb0d11be216360b74 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 19 19:55:10 2018 -0400 SOLR-11947: Monte Carlo WIP commit d330b412e46be0ebf8d75e99295e3fe9f978c02c Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 18 22:00:55 2018 -0400 SOLR-11947: Probability WIP commit e3d6160c1fa650e054b9694c57d34b3950c80175 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 17 21:18:43 2018 -0400 SOLR-11947: More WIP commit 8484b0283f79825dee8eaee82604120d04511de4 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 16 15:03:06 2018 -0400 SOLR-11947: machine learning WIP commit 77ecfdc71d79ca8eded0355669310c6025c70d96 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 21:33:09 2018 -0400 SOLR-11947: machine learning WIP commit 7488caf5e54436a0e5fe85c0dda4ea31d8357600 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 19:08:50 2018 -0400 SOLR-11947: machine learning WIP commit 102ee2e1857e7d7f45d7f3195a0a4e91eacb766d Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 15:18:31 2018 -0400 SOLR-11947: machine learning WIP commit 0d5cd2b4a4fd012fe6d640a86733280702cf8673 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 21:49:15 2018 -0400 SOLR-11947: numerical analysis WIP commit 31eec30576479a9023c7b0e6ccb2d9f685e128a1 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 14:41:06 2018 -0400 SOLR-11947: numerical analysis WIP commit c6e324ac56ca6e9f229d6acb39fdcf60c3356230 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 13 15:16:26 2018 -0400 SOLR-11947: term vectors WIP commit 8c843999eabdb82665641caa9c21f07e95b70a86 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 18:03:53 2018 -0400 SOLR-11947: Add curve fitting to TOC commit 09be026f6ad400d965fd373403d7a2eb2fae0c90 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 15:36:05 2018 -0400 SOLR-11947: Text analysis WIP commit e48b4d69abadb603a90c052aa1e36dd60ae7fd33 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 11 18:29:20 2018 -0400 SOLR-11947: TOC changes commit f71ebc079713e16492ba45cedafc3b9512f6bae2 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 17:54:04 2018 -0500 SOLR-11947: WIP term vectors commit ebc6b3943a27454adaf1a2309b6720bb2ba63c8c Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 13:34:19 2018 -0500 SOLR-11947: WIP regression commit 44752b2d34f46bc7f5693839e42ab3cef9edc47c Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 22:40:40 2018 -0500 SOLR-11947: WIP for vectorization.adoc commit 43254fcb05386264a6d591b1fa2c2573dcc2d2a3 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 19:42:26 2018 -0500 SOLR-11947: Test local links commit b60df2000978f70720eb0a36543752fd3bf07d2c Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:41:17 2018 -0500 SOLR-11947: Update math-expressions TOC commit de068c3af8557d60de37cb29f3ed7da3f5442772 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:24:46 2018 -0500 SOLR-11947: Continued work on math expressions documentation. commit fe445f2c997ea825d1ae9b9912406521249befc0 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 20:22:33 2018 -0500 SOLR-12054: ebeAdd and ebeSubtract should support matrix operations commit 1f3ae745cc26453a34a64a4327ceac7cc91d23f5 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 13:24:54 2018 -0500 SOLR-11947: Initial commit for new math expression docs WIP
2018-03-26 12:48:33 -04:00
analysis on the two numeric arrays.
The `regress` function returns a single tuple with the results of the regression
analysis.
[source,text]
----
let(a=random(collection2, q="*:*", rows="5000", fl="filesize_d, response_d"),
b=col(a, filesize_d),
c=col(a, response_d),
d=regress(b, c))
----
Note that in this regression analysis the value of `RSquared` is `.75`. This means that changes in
`filesize_d` explain 75% of the variability of the `response_d` variable:
SOLR-11947: Squashed commit of the following ref guide changes: commit 61053f2fe373bff0b451f549e063550f08ecdac1 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:44:12 2018 -0400 SOLR-11947: Fix orphaned files commit 42302073bf61fde134caeff71b6db3978e113b4d Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:27:26 2018 -0400 SOLR-11947: small change commit b16b1453c2e7d5083f588b4b874c918d521e9fe5 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:23:17 2018 -0400 SOLR-11947: proofing commit 57265ce4659a427c179e206b79d8fe05b01a5f93 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 24 14:41:48 2018 -0400 SOLR-11947: monte carlo WIP commit 04e8381f6b5b329c5fa17c1f31c2d848fe9cec2a Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 16:24:10 2018 -0400 SOLR-11947: probabiity WIP commit 4298a6d514e7e431e322a4f62c22c336430a89f1 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 13:07:05 2018 -0400 SOLR-11947: time series WIP commit 1a7654f9225948cd4adb3056bc2192cc0d24b3ee Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 11:32:53 2018 -0400 SOLR-11947: machine learning WIP commit fae0c3aa46e6f26fecb59077207982b2f584ec86 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 22:14:15 2018 -0400 SOLR-11947: machine learning WIP commit fb6a96b2bdc4bbc4c2b5b62b6e69cd561ef9e31b Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 14:36:08 2018 -0400 SOLR-11947: numerical analysis WIP commit a648ba939c90caf5db2a5b88023bd580d4d1e8af Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 12:27:33 2018 -0400 SOLR-11947: numerical analysis WIP commit ce8f1b710d414d8e3ff3c8676f64fc3017316a15 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 21 19:56:10 2018 -0400 SOLR-11947: numerical analysis WIP commit 5e25a4884341cdd84988e13250f255eb23d7fd50 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 22:01:59 2018 -0400 SOLR-11947: Curve fitting WIP commit f381414dc44ecfa781988c5ca75bfb1c80de6674 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 21:49:39 2018 -0400 SOLR-11947: Curve fitting WIP commit 4be725132215ed44cc84587bb0d11be216360b74 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 19 19:55:10 2018 -0400 SOLR-11947: Monte Carlo WIP commit d330b412e46be0ebf8d75e99295e3fe9f978c02c Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 18 22:00:55 2018 -0400 SOLR-11947: Probability WIP commit e3d6160c1fa650e054b9694c57d34b3950c80175 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 17 21:18:43 2018 -0400 SOLR-11947: More WIP commit 8484b0283f79825dee8eaee82604120d04511de4 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 16 15:03:06 2018 -0400 SOLR-11947: machine learning WIP commit 77ecfdc71d79ca8eded0355669310c6025c70d96 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 21:33:09 2018 -0400 SOLR-11947: machine learning WIP commit 7488caf5e54436a0e5fe85c0dda4ea31d8357600 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 19:08:50 2018 -0400 SOLR-11947: machine learning WIP commit 102ee2e1857e7d7f45d7f3195a0a4e91eacb766d Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 15:18:31 2018 -0400 SOLR-11947: machine learning WIP commit 0d5cd2b4a4fd012fe6d640a86733280702cf8673 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 21:49:15 2018 -0400 SOLR-11947: numerical analysis WIP commit 31eec30576479a9023c7b0e6ccb2d9f685e128a1 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 14:41:06 2018 -0400 SOLR-11947: numerical analysis WIP commit c6e324ac56ca6e9f229d6acb39fdcf60c3356230 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 13 15:16:26 2018 -0400 SOLR-11947: term vectors WIP commit 8c843999eabdb82665641caa9c21f07e95b70a86 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 18:03:53 2018 -0400 SOLR-11947: Add curve fitting to TOC commit 09be026f6ad400d965fd373403d7a2eb2fae0c90 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 15:36:05 2018 -0400 SOLR-11947: Text analysis WIP commit e48b4d69abadb603a90c052aa1e36dd60ae7fd33 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 11 18:29:20 2018 -0400 SOLR-11947: TOC changes commit f71ebc079713e16492ba45cedafc3b9512f6bae2 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 17:54:04 2018 -0500 SOLR-11947: WIP term vectors commit ebc6b3943a27454adaf1a2309b6720bb2ba63c8c Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 13:34:19 2018 -0500 SOLR-11947: WIP regression commit 44752b2d34f46bc7f5693839e42ab3cef9edc47c Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 22:40:40 2018 -0500 SOLR-11947: WIP for vectorization.adoc commit 43254fcb05386264a6d591b1fa2c2573dcc2d2a3 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 19:42:26 2018 -0500 SOLR-11947: Test local links commit b60df2000978f70720eb0a36543752fd3bf07d2c Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:41:17 2018 -0500 SOLR-11947: Update math-expressions TOC commit de068c3af8557d60de37cb29f3ed7da3f5442772 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:24:46 2018 -0500 SOLR-11947: Continued work on math expressions documentation. commit fe445f2c997ea825d1ae9b9912406521249befc0 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 20:22:33 2018 -0500 SOLR-12054: ebeAdd and ebeSubtract should support matrix operations commit 1f3ae745cc26453a34a64a4327ceac7cc91d23f5 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 13:24:54 2018 -0500 SOLR-11947: Initial commit for new math expression docs WIP
2018-03-26 12:48:33 -04:00
[source,json]
----
{
"result-set": {
"docs": [
{
"d": {
"significance": 0,
"totalSumSquares": 10564812.895147054,
"R": 0.8674822407146515,
"RSquared": 0.7525254379553127,
"meanSquareError": 523.1137343558588,
"intercept": -49.528134913099095,
"slopeConfidenceInterval": 0.0003171801710329995,
"regressionSumSquares": 7950290.450836472,
"slope": 0.019945557923159506,
"interceptStdErr": 6.489732340389941,
"N": 5000
}
},
{
"EOF": true,
"RESPONSE_TIME": 98
}
]
}
}
----
=== Prediction
The `predict` function uses the regression model to make predictions.
Using the example above the regression model can be used to predict the value
of `response_d` given a value for `filesize_d`.
SOLR-11947: Squashed commit of the following ref guide changes: commit 61053f2fe373bff0b451f549e063550f08ecdac1 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:44:12 2018 -0400 SOLR-11947: Fix orphaned files commit 42302073bf61fde134caeff71b6db3978e113b4d Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:27:26 2018 -0400 SOLR-11947: small change commit b16b1453c2e7d5083f588b4b874c918d521e9fe5 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:23:17 2018 -0400 SOLR-11947: proofing commit 57265ce4659a427c179e206b79d8fe05b01a5f93 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 24 14:41:48 2018 -0400 SOLR-11947: monte carlo WIP commit 04e8381f6b5b329c5fa17c1f31c2d848fe9cec2a Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 16:24:10 2018 -0400 SOLR-11947: probabiity WIP commit 4298a6d514e7e431e322a4f62c22c336430a89f1 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 13:07:05 2018 -0400 SOLR-11947: time series WIP commit 1a7654f9225948cd4adb3056bc2192cc0d24b3ee Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 11:32:53 2018 -0400 SOLR-11947: machine learning WIP commit fae0c3aa46e6f26fecb59077207982b2f584ec86 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 22:14:15 2018 -0400 SOLR-11947: machine learning WIP commit fb6a96b2bdc4bbc4c2b5b62b6e69cd561ef9e31b Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 14:36:08 2018 -0400 SOLR-11947: numerical analysis WIP commit a648ba939c90caf5db2a5b88023bd580d4d1e8af Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 12:27:33 2018 -0400 SOLR-11947: numerical analysis WIP commit ce8f1b710d414d8e3ff3c8676f64fc3017316a15 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 21 19:56:10 2018 -0400 SOLR-11947: numerical analysis WIP commit 5e25a4884341cdd84988e13250f255eb23d7fd50 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 22:01:59 2018 -0400 SOLR-11947: Curve fitting WIP commit f381414dc44ecfa781988c5ca75bfb1c80de6674 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 21:49:39 2018 -0400 SOLR-11947: Curve fitting WIP commit 4be725132215ed44cc84587bb0d11be216360b74 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 19 19:55:10 2018 -0400 SOLR-11947: Monte Carlo WIP commit d330b412e46be0ebf8d75e99295e3fe9f978c02c Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 18 22:00:55 2018 -0400 SOLR-11947: Probability WIP commit e3d6160c1fa650e054b9694c57d34b3950c80175 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 17 21:18:43 2018 -0400 SOLR-11947: More WIP commit 8484b0283f79825dee8eaee82604120d04511de4 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 16 15:03:06 2018 -0400 SOLR-11947: machine learning WIP commit 77ecfdc71d79ca8eded0355669310c6025c70d96 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 21:33:09 2018 -0400 SOLR-11947: machine learning WIP commit 7488caf5e54436a0e5fe85c0dda4ea31d8357600 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 19:08:50 2018 -0400 SOLR-11947: machine learning WIP commit 102ee2e1857e7d7f45d7f3195a0a4e91eacb766d Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 15:18:31 2018 -0400 SOLR-11947: machine learning WIP commit 0d5cd2b4a4fd012fe6d640a86733280702cf8673 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 21:49:15 2018 -0400 SOLR-11947: numerical analysis WIP commit 31eec30576479a9023c7b0e6ccb2d9f685e128a1 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 14:41:06 2018 -0400 SOLR-11947: numerical analysis WIP commit c6e324ac56ca6e9f229d6acb39fdcf60c3356230 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 13 15:16:26 2018 -0400 SOLR-11947: term vectors WIP commit 8c843999eabdb82665641caa9c21f07e95b70a86 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 18:03:53 2018 -0400 SOLR-11947: Add curve fitting to TOC commit 09be026f6ad400d965fd373403d7a2eb2fae0c90 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 15:36:05 2018 -0400 SOLR-11947: Text analysis WIP commit e48b4d69abadb603a90c052aa1e36dd60ae7fd33 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 11 18:29:20 2018 -0400 SOLR-11947: TOC changes commit f71ebc079713e16492ba45cedafc3b9512f6bae2 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 17:54:04 2018 -0500 SOLR-11947: WIP term vectors commit ebc6b3943a27454adaf1a2309b6720bb2ba63c8c Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 13:34:19 2018 -0500 SOLR-11947: WIP regression commit 44752b2d34f46bc7f5693839e42ab3cef9edc47c Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 22:40:40 2018 -0500 SOLR-11947: WIP for vectorization.adoc commit 43254fcb05386264a6d591b1fa2c2573dcc2d2a3 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 19:42:26 2018 -0500 SOLR-11947: Test local links commit b60df2000978f70720eb0a36543752fd3bf07d2c Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:41:17 2018 -0500 SOLR-11947: Update math-expressions TOC commit de068c3af8557d60de37cb29f3ed7da3f5442772 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:24:46 2018 -0500 SOLR-11947: Continued work on math expressions documentation. commit fe445f2c997ea825d1ae9b9912406521249befc0 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 20:22:33 2018 -0500 SOLR-12054: ebeAdd and ebeSubtract should support matrix operations commit 1f3ae745cc26453a34a64a4327ceac7cc91d23f5 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 13:24:54 2018 -0500 SOLR-11947: Initial commit for new math expression docs WIP
2018-03-26 12:48:33 -04:00
In the example below the `predict` function uses the regression analysis to predict
the value of `response_d` for the `filesize_d` value of `40000`.
SOLR-11947: Squashed commit of the following ref guide changes: commit 61053f2fe373bff0b451f549e063550f08ecdac1 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:44:12 2018 -0400 SOLR-11947: Fix orphaned files commit 42302073bf61fde134caeff71b6db3978e113b4d Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:27:26 2018 -0400 SOLR-11947: small change commit b16b1453c2e7d5083f588b4b874c918d521e9fe5 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:23:17 2018 -0400 SOLR-11947: proofing commit 57265ce4659a427c179e206b79d8fe05b01a5f93 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 24 14:41:48 2018 -0400 SOLR-11947: monte carlo WIP commit 04e8381f6b5b329c5fa17c1f31c2d848fe9cec2a Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 16:24:10 2018 -0400 SOLR-11947: probabiity WIP commit 4298a6d514e7e431e322a4f62c22c336430a89f1 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 13:07:05 2018 -0400 SOLR-11947: time series WIP commit 1a7654f9225948cd4adb3056bc2192cc0d24b3ee Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 11:32:53 2018 -0400 SOLR-11947: machine learning WIP commit fae0c3aa46e6f26fecb59077207982b2f584ec86 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 22:14:15 2018 -0400 SOLR-11947: machine learning WIP commit fb6a96b2bdc4bbc4c2b5b62b6e69cd561ef9e31b Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 14:36:08 2018 -0400 SOLR-11947: numerical analysis WIP commit a648ba939c90caf5db2a5b88023bd580d4d1e8af Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 12:27:33 2018 -0400 SOLR-11947: numerical analysis WIP commit ce8f1b710d414d8e3ff3c8676f64fc3017316a15 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 21 19:56:10 2018 -0400 SOLR-11947: numerical analysis WIP commit 5e25a4884341cdd84988e13250f255eb23d7fd50 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 22:01:59 2018 -0400 SOLR-11947: Curve fitting WIP commit f381414dc44ecfa781988c5ca75bfb1c80de6674 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 21:49:39 2018 -0400 SOLR-11947: Curve fitting WIP commit 4be725132215ed44cc84587bb0d11be216360b74 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 19 19:55:10 2018 -0400 SOLR-11947: Monte Carlo WIP commit d330b412e46be0ebf8d75e99295e3fe9f978c02c Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 18 22:00:55 2018 -0400 SOLR-11947: Probability WIP commit e3d6160c1fa650e054b9694c57d34b3950c80175 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 17 21:18:43 2018 -0400 SOLR-11947: More WIP commit 8484b0283f79825dee8eaee82604120d04511de4 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 16 15:03:06 2018 -0400 SOLR-11947: machine learning WIP commit 77ecfdc71d79ca8eded0355669310c6025c70d96 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 21:33:09 2018 -0400 SOLR-11947: machine learning WIP commit 7488caf5e54436a0e5fe85c0dda4ea31d8357600 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 19:08:50 2018 -0400 SOLR-11947: machine learning WIP commit 102ee2e1857e7d7f45d7f3195a0a4e91eacb766d Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 15:18:31 2018 -0400 SOLR-11947: machine learning WIP commit 0d5cd2b4a4fd012fe6d640a86733280702cf8673 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 21:49:15 2018 -0400 SOLR-11947: numerical analysis WIP commit 31eec30576479a9023c7b0e6ccb2d9f685e128a1 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 14:41:06 2018 -0400 SOLR-11947: numerical analysis WIP commit c6e324ac56ca6e9f229d6acb39fdcf60c3356230 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 13 15:16:26 2018 -0400 SOLR-11947: term vectors WIP commit 8c843999eabdb82665641caa9c21f07e95b70a86 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 18:03:53 2018 -0400 SOLR-11947: Add curve fitting to TOC commit 09be026f6ad400d965fd373403d7a2eb2fae0c90 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 15:36:05 2018 -0400 SOLR-11947: Text analysis WIP commit e48b4d69abadb603a90c052aa1e36dd60ae7fd33 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 11 18:29:20 2018 -0400 SOLR-11947: TOC changes commit f71ebc079713e16492ba45cedafc3b9512f6bae2 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 17:54:04 2018 -0500 SOLR-11947: WIP term vectors commit ebc6b3943a27454adaf1a2309b6720bb2ba63c8c Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 13:34:19 2018 -0500 SOLR-11947: WIP regression commit 44752b2d34f46bc7f5693839e42ab3cef9edc47c Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 22:40:40 2018 -0500 SOLR-11947: WIP for vectorization.adoc commit 43254fcb05386264a6d591b1fa2c2573dcc2d2a3 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 19:42:26 2018 -0500 SOLR-11947: Test local links commit b60df2000978f70720eb0a36543752fd3bf07d2c Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:41:17 2018 -0500 SOLR-11947: Update math-expressions TOC commit de068c3af8557d60de37cb29f3ed7da3f5442772 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:24:46 2018 -0500 SOLR-11947: Continued work on math expressions documentation. commit fe445f2c997ea825d1ae9b9912406521249befc0 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 20:22:33 2018 -0500 SOLR-12054: ebeAdd and ebeSubtract should support matrix operations commit 1f3ae745cc26453a34a64a4327ceac7cc91d23f5 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 13:24:54 2018 -0500 SOLR-11947: Initial commit for new math expression docs WIP
2018-03-26 12:48:33 -04:00
[source,text]
----
let(a=random(collection2, q="*:*", rows="5000", fl="filesize_d, response_d"),
b=col(a, filesize_d),
c=col(a, response_d),
d=regress(b, c),
e=predict(d, 40000))
----
When this expression is sent to the `/stream` handler it responds with:
SOLR-11947: Squashed commit of the following ref guide changes: commit 61053f2fe373bff0b451f549e063550f08ecdac1 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:44:12 2018 -0400 SOLR-11947: Fix orphaned files commit 42302073bf61fde134caeff71b6db3978e113b4d Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:27:26 2018 -0400 SOLR-11947: small change commit b16b1453c2e7d5083f588b4b874c918d521e9fe5 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:23:17 2018 -0400 SOLR-11947: proofing commit 57265ce4659a427c179e206b79d8fe05b01a5f93 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 24 14:41:48 2018 -0400 SOLR-11947: monte carlo WIP commit 04e8381f6b5b329c5fa17c1f31c2d848fe9cec2a Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 16:24:10 2018 -0400 SOLR-11947: probabiity WIP commit 4298a6d514e7e431e322a4f62c22c336430a89f1 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 13:07:05 2018 -0400 SOLR-11947: time series WIP commit 1a7654f9225948cd4adb3056bc2192cc0d24b3ee Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 11:32:53 2018 -0400 SOLR-11947: machine learning WIP commit fae0c3aa46e6f26fecb59077207982b2f584ec86 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 22:14:15 2018 -0400 SOLR-11947: machine learning WIP commit fb6a96b2bdc4bbc4c2b5b62b6e69cd561ef9e31b Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 14:36:08 2018 -0400 SOLR-11947: numerical analysis WIP commit a648ba939c90caf5db2a5b88023bd580d4d1e8af Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 12:27:33 2018 -0400 SOLR-11947: numerical analysis WIP commit ce8f1b710d414d8e3ff3c8676f64fc3017316a15 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 21 19:56:10 2018 -0400 SOLR-11947: numerical analysis WIP commit 5e25a4884341cdd84988e13250f255eb23d7fd50 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 22:01:59 2018 -0400 SOLR-11947: Curve fitting WIP commit f381414dc44ecfa781988c5ca75bfb1c80de6674 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 21:49:39 2018 -0400 SOLR-11947: Curve fitting WIP commit 4be725132215ed44cc84587bb0d11be216360b74 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 19 19:55:10 2018 -0400 SOLR-11947: Monte Carlo WIP commit d330b412e46be0ebf8d75e99295e3fe9f978c02c Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 18 22:00:55 2018 -0400 SOLR-11947: Probability WIP commit e3d6160c1fa650e054b9694c57d34b3950c80175 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 17 21:18:43 2018 -0400 SOLR-11947: More WIP commit 8484b0283f79825dee8eaee82604120d04511de4 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 16 15:03:06 2018 -0400 SOLR-11947: machine learning WIP commit 77ecfdc71d79ca8eded0355669310c6025c70d96 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 21:33:09 2018 -0400 SOLR-11947: machine learning WIP commit 7488caf5e54436a0e5fe85c0dda4ea31d8357600 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 19:08:50 2018 -0400 SOLR-11947: machine learning WIP commit 102ee2e1857e7d7f45d7f3195a0a4e91eacb766d Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 15:18:31 2018 -0400 SOLR-11947: machine learning WIP commit 0d5cd2b4a4fd012fe6d640a86733280702cf8673 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 21:49:15 2018 -0400 SOLR-11947: numerical analysis WIP commit 31eec30576479a9023c7b0e6ccb2d9f685e128a1 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 14:41:06 2018 -0400 SOLR-11947: numerical analysis WIP commit c6e324ac56ca6e9f229d6acb39fdcf60c3356230 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 13 15:16:26 2018 -0400 SOLR-11947: term vectors WIP commit 8c843999eabdb82665641caa9c21f07e95b70a86 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 18:03:53 2018 -0400 SOLR-11947: Add curve fitting to TOC commit 09be026f6ad400d965fd373403d7a2eb2fae0c90 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 15:36:05 2018 -0400 SOLR-11947: Text analysis WIP commit e48b4d69abadb603a90c052aa1e36dd60ae7fd33 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 11 18:29:20 2018 -0400 SOLR-11947: TOC changes commit f71ebc079713e16492ba45cedafc3b9512f6bae2 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 17:54:04 2018 -0500 SOLR-11947: WIP term vectors commit ebc6b3943a27454adaf1a2309b6720bb2ba63c8c Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 13:34:19 2018 -0500 SOLR-11947: WIP regression commit 44752b2d34f46bc7f5693839e42ab3cef9edc47c Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 22:40:40 2018 -0500 SOLR-11947: WIP for vectorization.adoc commit 43254fcb05386264a6d591b1fa2c2573dcc2d2a3 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 19:42:26 2018 -0500 SOLR-11947: Test local links commit b60df2000978f70720eb0a36543752fd3bf07d2c Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:41:17 2018 -0500 SOLR-11947: Update math-expressions TOC commit de068c3af8557d60de37cb29f3ed7da3f5442772 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:24:46 2018 -0500 SOLR-11947: Continued work on math expressions documentation. commit fe445f2c997ea825d1ae9b9912406521249befc0 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 20:22:33 2018 -0500 SOLR-12054: ebeAdd and ebeSubtract should support matrix operations commit 1f3ae745cc26453a34a64a4327ceac7cc91d23f5 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 13:24:54 2018 -0500 SOLR-11947: Initial commit for new math expression docs WIP
2018-03-26 12:48:33 -04:00
[source,json]
----
{
"result-set": {
"docs": [
{
"e": 748.079241022975
},
{
"EOF": true,
"RESPONSE_TIME": 95
}
]
}
}
----
The `predict` function can also make predictions for an array of values. In this
case it returns an array of predictions.
In the example below the `predict` function uses the regression analysis to
predict values for each of the 5000 samples of `filesize_d` used to generate the model.
In this case 5000 predictions are returned.
[source,text]
----
let(a=random(collection2, q="*:*", rows="5000", fl="filesize_d, response_d"),
b=col(a, filesize_d),
c=col(a, response_d),
d=regress(b, c),
e=predict(d, b))
----
When this expression is sent to the `/stream` handler it responds with:
SOLR-11947: Squashed commit of the following ref guide changes: commit 61053f2fe373bff0b451f549e063550f08ecdac1 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:44:12 2018 -0400 SOLR-11947: Fix orphaned files commit 42302073bf61fde134caeff71b6db3978e113b4d Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:27:26 2018 -0400 SOLR-11947: small change commit b16b1453c2e7d5083f588b4b874c918d521e9fe5 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:23:17 2018 -0400 SOLR-11947: proofing commit 57265ce4659a427c179e206b79d8fe05b01a5f93 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 24 14:41:48 2018 -0400 SOLR-11947: monte carlo WIP commit 04e8381f6b5b329c5fa17c1f31c2d848fe9cec2a Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 16:24:10 2018 -0400 SOLR-11947: probabiity WIP commit 4298a6d514e7e431e322a4f62c22c336430a89f1 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 13:07:05 2018 -0400 SOLR-11947: time series WIP commit 1a7654f9225948cd4adb3056bc2192cc0d24b3ee Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 11:32:53 2018 -0400 SOLR-11947: machine learning WIP commit fae0c3aa46e6f26fecb59077207982b2f584ec86 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 22:14:15 2018 -0400 SOLR-11947: machine learning WIP commit fb6a96b2bdc4bbc4c2b5b62b6e69cd561ef9e31b Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 14:36:08 2018 -0400 SOLR-11947: numerical analysis WIP commit a648ba939c90caf5db2a5b88023bd580d4d1e8af Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 12:27:33 2018 -0400 SOLR-11947: numerical analysis WIP commit ce8f1b710d414d8e3ff3c8676f64fc3017316a15 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 21 19:56:10 2018 -0400 SOLR-11947: numerical analysis WIP commit 5e25a4884341cdd84988e13250f255eb23d7fd50 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 22:01:59 2018 -0400 SOLR-11947: Curve fitting WIP commit f381414dc44ecfa781988c5ca75bfb1c80de6674 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 21:49:39 2018 -0400 SOLR-11947: Curve fitting WIP commit 4be725132215ed44cc84587bb0d11be216360b74 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 19 19:55:10 2018 -0400 SOLR-11947: Monte Carlo WIP commit d330b412e46be0ebf8d75e99295e3fe9f978c02c Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 18 22:00:55 2018 -0400 SOLR-11947: Probability WIP commit e3d6160c1fa650e054b9694c57d34b3950c80175 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 17 21:18:43 2018 -0400 SOLR-11947: More WIP commit 8484b0283f79825dee8eaee82604120d04511de4 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 16 15:03:06 2018 -0400 SOLR-11947: machine learning WIP commit 77ecfdc71d79ca8eded0355669310c6025c70d96 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 21:33:09 2018 -0400 SOLR-11947: machine learning WIP commit 7488caf5e54436a0e5fe85c0dda4ea31d8357600 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 19:08:50 2018 -0400 SOLR-11947: machine learning WIP commit 102ee2e1857e7d7f45d7f3195a0a4e91eacb766d Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 15:18:31 2018 -0400 SOLR-11947: machine learning WIP commit 0d5cd2b4a4fd012fe6d640a86733280702cf8673 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 21:49:15 2018 -0400 SOLR-11947: numerical analysis WIP commit 31eec30576479a9023c7b0e6ccb2d9f685e128a1 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 14:41:06 2018 -0400 SOLR-11947: numerical analysis WIP commit c6e324ac56ca6e9f229d6acb39fdcf60c3356230 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 13 15:16:26 2018 -0400 SOLR-11947: term vectors WIP commit 8c843999eabdb82665641caa9c21f07e95b70a86 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 18:03:53 2018 -0400 SOLR-11947: Add curve fitting to TOC commit 09be026f6ad400d965fd373403d7a2eb2fae0c90 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 15:36:05 2018 -0400 SOLR-11947: Text analysis WIP commit e48b4d69abadb603a90c052aa1e36dd60ae7fd33 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 11 18:29:20 2018 -0400 SOLR-11947: TOC changes commit f71ebc079713e16492ba45cedafc3b9512f6bae2 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 17:54:04 2018 -0500 SOLR-11947: WIP term vectors commit ebc6b3943a27454adaf1a2309b6720bb2ba63c8c Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 13:34:19 2018 -0500 SOLR-11947: WIP regression commit 44752b2d34f46bc7f5693839e42ab3cef9edc47c Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 22:40:40 2018 -0500 SOLR-11947: WIP for vectorization.adoc commit 43254fcb05386264a6d591b1fa2c2573dcc2d2a3 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 19:42:26 2018 -0500 SOLR-11947: Test local links commit b60df2000978f70720eb0a36543752fd3bf07d2c Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:41:17 2018 -0500 SOLR-11947: Update math-expressions TOC commit de068c3af8557d60de37cb29f3ed7da3f5442772 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:24:46 2018 -0500 SOLR-11947: Continued work on math expressions documentation. commit fe445f2c997ea825d1ae9b9912406521249befc0 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 20:22:33 2018 -0500 SOLR-12054: ebeAdd and ebeSubtract should support matrix operations commit 1f3ae745cc26453a34a64a4327ceac7cc91d23f5 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 13:24:54 2018 -0500 SOLR-11947: Initial commit for new math expression docs WIP
2018-03-26 12:48:33 -04:00
[source,json]
----
{
"result-set": {
"docs": [
{
"e": [
742.2525322514165,
709.6972488729955,
687.8382568904871,
820.2511324266264,
720.4006432289061,
761.1578181053039,
759.1304101159126,
699.5597256337142,
742.4738911248204,
769.0342605881644,
746.6740473150268,
...
]
},
{
"EOF": true,
"RESPONSE_TIME": 113
}
]
}
}
----
=== Residuals
The difference between the observed value and the predicted value is known as the
residual. There isn't a specific function to calculate the residuals but vector
math can used to perform the calculation.
In the example below the predictions are stored in variable *`e`*. The `ebeSubtract`
SOLR-11947: Squashed commit of the following ref guide changes: commit 61053f2fe373bff0b451f549e063550f08ecdac1 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:44:12 2018 -0400 SOLR-11947: Fix orphaned files commit 42302073bf61fde134caeff71b6db3978e113b4d Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:27:26 2018 -0400 SOLR-11947: small change commit b16b1453c2e7d5083f588b4b874c918d521e9fe5 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:23:17 2018 -0400 SOLR-11947: proofing commit 57265ce4659a427c179e206b79d8fe05b01a5f93 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 24 14:41:48 2018 -0400 SOLR-11947: monte carlo WIP commit 04e8381f6b5b329c5fa17c1f31c2d848fe9cec2a Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 16:24:10 2018 -0400 SOLR-11947: probabiity WIP commit 4298a6d514e7e431e322a4f62c22c336430a89f1 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 13:07:05 2018 -0400 SOLR-11947: time series WIP commit 1a7654f9225948cd4adb3056bc2192cc0d24b3ee Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 11:32:53 2018 -0400 SOLR-11947: machine learning WIP commit fae0c3aa46e6f26fecb59077207982b2f584ec86 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 22:14:15 2018 -0400 SOLR-11947: machine learning WIP commit fb6a96b2bdc4bbc4c2b5b62b6e69cd561ef9e31b Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 14:36:08 2018 -0400 SOLR-11947: numerical analysis WIP commit a648ba939c90caf5db2a5b88023bd580d4d1e8af Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 12:27:33 2018 -0400 SOLR-11947: numerical analysis WIP commit ce8f1b710d414d8e3ff3c8676f64fc3017316a15 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 21 19:56:10 2018 -0400 SOLR-11947: numerical analysis WIP commit 5e25a4884341cdd84988e13250f255eb23d7fd50 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 22:01:59 2018 -0400 SOLR-11947: Curve fitting WIP commit f381414dc44ecfa781988c5ca75bfb1c80de6674 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 21:49:39 2018 -0400 SOLR-11947: Curve fitting WIP commit 4be725132215ed44cc84587bb0d11be216360b74 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 19 19:55:10 2018 -0400 SOLR-11947: Monte Carlo WIP commit d330b412e46be0ebf8d75e99295e3fe9f978c02c Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 18 22:00:55 2018 -0400 SOLR-11947: Probability WIP commit e3d6160c1fa650e054b9694c57d34b3950c80175 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 17 21:18:43 2018 -0400 SOLR-11947: More WIP commit 8484b0283f79825dee8eaee82604120d04511de4 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 16 15:03:06 2018 -0400 SOLR-11947: machine learning WIP commit 77ecfdc71d79ca8eded0355669310c6025c70d96 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 21:33:09 2018 -0400 SOLR-11947: machine learning WIP commit 7488caf5e54436a0e5fe85c0dda4ea31d8357600 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 19:08:50 2018 -0400 SOLR-11947: machine learning WIP commit 102ee2e1857e7d7f45d7f3195a0a4e91eacb766d Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 15:18:31 2018 -0400 SOLR-11947: machine learning WIP commit 0d5cd2b4a4fd012fe6d640a86733280702cf8673 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 21:49:15 2018 -0400 SOLR-11947: numerical analysis WIP commit 31eec30576479a9023c7b0e6ccb2d9f685e128a1 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 14:41:06 2018 -0400 SOLR-11947: numerical analysis WIP commit c6e324ac56ca6e9f229d6acb39fdcf60c3356230 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 13 15:16:26 2018 -0400 SOLR-11947: term vectors WIP commit 8c843999eabdb82665641caa9c21f07e95b70a86 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 18:03:53 2018 -0400 SOLR-11947: Add curve fitting to TOC commit 09be026f6ad400d965fd373403d7a2eb2fae0c90 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 15:36:05 2018 -0400 SOLR-11947: Text analysis WIP commit e48b4d69abadb603a90c052aa1e36dd60ae7fd33 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 11 18:29:20 2018 -0400 SOLR-11947: TOC changes commit f71ebc079713e16492ba45cedafc3b9512f6bae2 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 17:54:04 2018 -0500 SOLR-11947: WIP term vectors commit ebc6b3943a27454adaf1a2309b6720bb2ba63c8c Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 13:34:19 2018 -0500 SOLR-11947: WIP regression commit 44752b2d34f46bc7f5693839e42ab3cef9edc47c Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 22:40:40 2018 -0500 SOLR-11947: WIP for vectorization.adoc commit 43254fcb05386264a6d591b1fa2c2573dcc2d2a3 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 19:42:26 2018 -0500 SOLR-11947: Test local links commit b60df2000978f70720eb0a36543752fd3bf07d2c Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:41:17 2018 -0500 SOLR-11947: Update math-expressions TOC commit de068c3af8557d60de37cb29f3ed7da3f5442772 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:24:46 2018 -0500 SOLR-11947: Continued work on math expressions documentation. commit fe445f2c997ea825d1ae9b9912406521249befc0 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 20:22:33 2018 -0500 SOLR-12054: ebeAdd and ebeSubtract should support matrix operations commit 1f3ae745cc26453a34a64a4327ceac7cc91d23f5 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 13:24:54 2018 -0500 SOLR-11947: Initial commit for new math expression docs WIP
2018-03-26 12:48:33 -04:00
function is then used to subtract the predictions
from the actual `response_d` values stored in variable *`c`*. Variable *`f`* contains
SOLR-11947: Squashed commit of the following ref guide changes: commit 61053f2fe373bff0b451f549e063550f08ecdac1 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:44:12 2018 -0400 SOLR-11947: Fix orphaned files commit 42302073bf61fde134caeff71b6db3978e113b4d Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:27:26 2018 -0400 SOLR-11947: small change commit b16b1453c2e7d5083f588b4b874c918d521e9fe5 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:23:17 2018 -0400 SOLR-11947: proofing commit 57265ce4659a427c179e206b79d8fe05b01a5f93 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 24 14:41:48 2018 -0400 SOLR-11947: monte carlo WIP commit 04e8381f6b5b329c5fa17c1f31c2d848fe9cec2a Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 16:24:10 2018 -0400 SOLR-11947: probabiity WIP commit 4298a6d514e7e431e322a4f62c22c336430a89f1 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 13:07:05 2018 -0400 SOLR-11947: time series WIP commit 1a7654f9225948cd4adb3056bc2192cc0d24b3ee Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 11:32:53 2018 -0400 SOLR-11947: machine learning WIP commit fae0c3aa46e6f26fecb59077207982b2f584ec86 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 22:14:15 2018 -0400 SOLR-11947: machine learning WIP commit fb6a96b2bdc4bbc4c2b5b62b6e69cd561ef9e31b Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 14:36:08 2018 -0400 SOLR-11947: numerical analysis WIP commit a648ba939c90caf5db2a5b88023bd580d4d1e8af Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 12:27:33 2018 -0400 SOLR-11947: numerical analysis WIP commit ce8f1b710d414d8e3ff3c8676f64fc3017316a15 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 21 19:56:10 2018 -0400 SOLR-11947: numerical analysis WIP commit 5e25a4884341cdd84988e13250f255eb23d7fd50 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 22:01:59 2018 -0400 SOLR-11947: Curve fitting WIP commit f381414dc44ecfa781988c5ca75bfb1c80de6674 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 21:49:39 2018 -0400 SOLR-11947: Curve fitting WIP commit 4be725132215ed44cc84587bb0d11be216360b74 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 19 19:55:10 2018 -0400 SOLR-11947: Monte Carlo WIP commit d330b412e46be0ebf8d75e99295e3fe9f978c02c Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 18 22:00:55 2018 -0400 SOLR-11947: Probability WIP commit e3d6160c1fa650e054b9694c57d34b3950c80175 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 17 21:18:43 2018 -0400 SOLR-11947: More WIP commit 8484b0283f79825dee8eaee82604120d04511de4 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 16 15:03:06 2018 -0400 SOLR-11947: machine learning WIP commit 77ecfdc71d79ca8eded0355669310c6025c70d96 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 21:33:09 2018 -0400 SOLR-11947: machine learning WIP commit 7488caf5e54436a0e5fe85c0dda4ea31d8357600 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 19:08:50 2018 -0400 SOLR-11947: machine learning WIP commit 102ee2e1857e7d7f45d7f3195a0a4e91eacb766d Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 15:18:31 2018 -0400 SOLR-11947: machine learning WIP commit 0d5cd2b4a4fd012fe6d640a86733280702cf8673 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 21:49:15 2018 -0400 SOLR-11947: numerical analysis WIP commit 31eec30576479a9023c7b0e6ccb2d9f685e128a1 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 14:41:06 2018 -0400 SOLR-11947: numerical analysis WIP commit c6e324ac56ca6e9f229d6acb39fdcf60c3356230 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 13 15:16:26 2018 -0400 SOLR-11947: term vectors WIP commit 8c843999eabdb82665641caa9c21f07e95b70a86 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 18:03:53 2018 -0400 SOLR-11947: Add curve fitting to TOC commit 09be026f6ad400d965fd373403d7a2eb2fae0c90 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 15:36:05 2018 -0400 SOLR-11947: Text analysis WIP commit e48b4d69abadb603a90c052aa1e36dd60ae7fd33 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 11 18:29:20 2018 -0400 SOLR-11947: TOC changes commit f71ebc079713e16492ba45cedafc3b9512f6bae2 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 17:54:04 2018 -0500 SOLR-11947: WIP term vectors commit ebc6b3943a27454adaf1a2309b6720bb2ba63c8c Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 13:34:19 2018 -0500 SOLR-11947: WIP regression commit 44752b2d34f46bc7f5693839e42ab3cef9edc47c Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 22:40:40 2018 -0500 SOLR-11947: WIP for vectorization.adoc commit 43254fcb05386264a6d591b1fa2c2573dcc2d2a3 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 19:42:26 2018 -0500 SOLR-11947: Test local links commit b60df2000978f70720eb0a36543752fd3bf07d2c Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:41:17 2018 -0500 SOLR-11947: Update math-expressions TOC commit de068c3af8557d60de37cb29f3ed7da3f5442772 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:24:46 2018 -0500 SOLR-11947: Continued work on math expressions documentation. commit fe445f2c997ea825d1ae9b9912406521249befc0 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 20:22:33 2018 -0500 SOLR-12054: ebeAdd and ebeSubtract should support matrix operations commit 1f3ae745cc26453a34a64a4327ceac7cc91d23f5 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 13:24:54 2018 -0500 SOLR-11947: Initial commit for new math expression docs WIP
2018-03-26 12:48:33 -04:00
the array of residuals.
[source,text]
----
let(a=random(collection2, q="*:*", rows="5000", fl="filesize_d, response_d"),
b=col(a, filesize_d),
c=col(a, response_d),
d=regress(b, c),
e=predict(d, b),
f=ebeSubtract(c, e))
----
When this expression is sent to the `/stream` handler it responds with:
SOLR-11947: Squashed commit of the following ref guide changes: commit 61053f2fe373bff0b451f549e063550f08ecdac1 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:44:12 2018 -0400 SOLR-11947: Fix orphaned files commit 42302073bf61fde134caeff71b6db3978e113b4d Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:27:26 2018 -0400 SOLR-11947: small change commit b16b1453c2e7d5083f588b4b874c918d521e9fe5 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:23:17 2018 -0400 SOLR-11947: proofing commit 57265ce4659a427c179e206b79d8fe05b01a5f93 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 24 14:41:48 2018 -0400 SOLR-11947: monte carlo WIP commit 04e8381f6b5b329c5fa17c1f31c2d848fe9cec2a Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 16:24:10 2018 -0400 SOLR-11947: probabiity WIP commit 4298a6d514e7e431e322a4f62c22c336430a89f1 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 13:07:05 2018 -0400 SOLR-11947: time series WIP commit 1a7654f9225948cd4adb3056bc2192cc0d24b3ee Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 11:32:53 2018 -0400 SOLR-11947: machine learning WIP commit fae0c3aa46e6f26fecb59077207982b2f584ec86 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 22:14:15 2018 -0400 SOLR-11947: machine learning WIP commit fb6a96b2bdc4bbc4c2b5b62b6e69cd561ef9e31b Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 14:36:08 2018 -0400 SOLR-11947: numerical analysis WIP commit a648ba939c90caf5db2a5b88023bd580d4d1e8af Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 12:27:33 2018 -0400 SOLR-11947: numerical analysis WIP commit ce8f1b710d414d8e3ff3c8676f64fc3017316a15 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 21 19:56:10 2018 -0400 SOLR-11947: numerical analysis WIP commit 5e25a4884341cdd84988e13250f255eb23d7fd50 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 22:01:59 2018 -0400 SOLR-11947: Curve fitting WIP commit f381414dc44ecfa781988c5ca75bfb1c80de6674 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 21:49:39 2018 -0400 SOLR-11947: Curve fitting WIP commit 4be725132215ed44cc84587bb0d11be216360b74 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 19 19:55:10 2018 -0400 SOLR-11947: Monte Carlo WIP commit d330b412e46be0ebf8d75e99295e3fe9f978c02c Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 18 22:00:55 2018 -0400 SOLR-11947: Probability WIP commit e3d6160c1fa650e054b9694c57d34b3950c80175 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 17 21:18:43 2018 -0400 SOLR-11947: More WIP commit 8484b0283f79825dee8eaee82604120d04511de4 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 16 15:03:06 2018 -0400 SOLR-11947: machine learning WIP commit 77ecfdc71d79ca8eded0355669310c6025c70d96 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 21:33:09 2018 -0400 SOLR-11947: machine learning WIP commit 7488caf5e54436a0e5fe85c0dda4ea31d8357600 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 19:08:50 2018 -0400 SOLR-11947: machine learning WIP commit 102ee2e1857e7d7f45d7f3195a0a4e91eacb766d Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 15:18:31 2018 -0400 SOLR-11947: machine learning WIP commit 0d5cd2b4a4fd012fe6d640a86733280702cf8673 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 21:49:15 2018 -0400 SOLR-11947: numerical analysis WIP commit 31eec30576479a9023c7b0e6ccb2d9f685e128a1 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 14:41:06 2018 -0400 SOLR-11947: numerical analysis WIP commit c6e324ac56ca6e9f229d6acb39fdcf60c3356230 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 13 15:16:26 2018 -0400 SOLR-11947: term vectors WIP commit 8c843999eabdb82665641caa9c21f07e95b70a86 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 18:03:53 2018 -0400 SOLR-11947: Add curve fitting to TOC commit 09be026f6ad400d965fd373403d7a2eb2fae0c90 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 15:36:05 2018 -0400 SOLR-11947: Text analysis WIP commit e48b4d69abadb603a90c052aa1e36dd60ae7fd33 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 11 18:29:20 2018 -0400 SOLR-11947: TOC changes commit f71ebc079713e16492ba45cedafc3b9512f6bae2 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 17:54:04 2018 -0500 SOLR-11947: WIP term vectors commit ebc6b3943a27454adaf1a2309b6720bb2ba63c8c Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 13:34:19 2018 -0500 SOLR-11947: WIP regression commit 44752b2d34f46bc7f5693839e42ab3cef9edc47c Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 22:40:40 2018 -0500 SOLR-11947: WIP for vectorization.adoc commit 43254fcb05386264a6d591b1fa2c2573dcc2d2a3 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 19:42:26 2018 -0500 SOLR-11947: Test local links commit b60df2000978f70720eb0a36543752fd3bf07d2c Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:41:17 2018 -0500 SOLR-11947: Update math-expressions TOC commit de068c3af8557d60de37cb29f3ed7da3f5442772 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:24:46 2018 -0500 SOLR-11947: Continued work on math expressions documentation. commit fe445f2c997ea825d1ae9b9912406521249befc0 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 20:22:33 2018 -0500 SOLR-12054: ebeAdd and ebeSubtract should support matrix operations commit 1f3ae745cc26453a34a64a4327ceac7cc91d23f5 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 13:24:54 2018 -0500 SOLR-11947: Initial commit for new math expression docs WIP
2018-03-26 12:48:33 -04:00
[source,json]
----
{
"result-set": {
"docs": [
{
"e": [
31.30678554491226,
-30.292830927953446,
-30.49508862647258,
-30.499884780783532,
-9.696458959319784,
-30.521563961535094,
-30.28380938033081,
-9.890289849359306,
30.819723560583157,
-30.213178859683012,
-30.609943619066826,
10.527700442607625,
10.68046928406568,
...
]
},
{
"EOF": true,
"RESPONSE_TIME": 113
}
]
}
}
----
== Multivariate Linear Regression
The `olsRegress` function performs a multivariate linear regression analysis. Multivariate linear
regression models the linear relationship between two or more independent variables and a dependent variable.
SOLR-11947: Squashed commit of the following ref guide changes: commit 61053f2fe373bff0b451f549e063550f08ecdac1 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:44:12 2018 -0400 SOLR-11947: Fix orphaned files commit 42302073bf61fde134caeff71b6db3978e113b4d Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:27:26 2018 -0400 SOLR-11947: small change commit b16b1453c2e7d5083f588b4b874c918d521e9fe5 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:23:17 2018 -0400 SOLR-11947: proofing commit 57265ce4659a427c179e206b79d8fe05b01a5f93 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 24 14:41:48 2018 -0400 SOLR-11947: monte carlo WIP commit 04e8381f6b5b329c5fa17c1f31c2d848fe9cec2a Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 16:24:10 2018 -0400 SOLR-11947: probabiity WIP commit 4298a6d514e7e431e322a4f62c22c336430a89f1 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 13:07:05 2018 -0400 SOLR-11947: time series WIP commit 1a7654f9225948cd4adb3056bc2192cc0d24b3ee Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 11:32:53 2018 -0400 SOLR-11947: machine learning WIP commit fae0c3aa46e6f26fecb59077207982b2f584ec86 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 22:14:15 2018 -0400 SOLR-11947: machine learning WIP commit fb6a96b2bdc4bbc4c2b5b62b6e69cd561ef9e31b Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 14:36:08 2018 -0400 SOLR-11947: numerical analysis WIP commit a648ba939c90caf5db2a5b88023bd580d4d1e8af Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 12:27:33 2018 -0400 SOLR-11947: numerical analysis WIP commit ce8f1b710d414d8e3ff3c8676f64fc3017316a15 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 21 19:56:10 2018 -0400 SOLR-11947: numerical analysis WIP commit 5e25a4884341cdd84988e13250f255eb23d7fd50 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 22:01:59 2018 -0400 SOLR-11947: Curve fitting WIP commit f381414dc44ecfa781988c5ca75bfb1c80de6674 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 21:49:39 2018 -0400 SOLR-11947: Curve fitting WIP commit 4be725132215ed44cc84587bb0d11be216360b74 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 19 19:55:10 2018 -0400 SOLR-11947: Monte Carlo WIP commit d330b412e46be0ebf8d75e99295e3fe9f978c02c Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 18 22:00:55 2018 -0400 SOLR-11947: Probability WIP commit e3d6160c1fa650e054b9694c57d34b3950c80175 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 17 21:18:43 2018 -0400 SOLR-11947: More WIP commit 8484b0283f79825dee8eaee82604120d04511de4 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 16 15:03:06 2018 -0400 SOLR-11947: machine learning WIP commit 77ecfdc71d79ca8eded0355669310c6025c70d96 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 21:33:09 2018 -0400 SOLR-11947: machine learning WIP commit 7488caf5e54436a0e5fe85c0dda4ea31d8357600 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 19:08:50 2018 -0400 SOLR-11947: machine learning WIP commit 102ee2e1857e7d7f45d7f3195a0a4e91eacb766d Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 15:18:31 2018 -0400 SOLR-11947: machine learning WIP commit 0d5cd2b4a4fd012fe6d640a86733280702cf8673 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 21:49:15 2018 -0400 SOLR-11947: numerical analysis WIP commit 31eec30576479a9023c7b0e6ccb2d9f685e128a1 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 14:41:06 2018 -0400 SOLR-11947: numerical analysis WIP commit c6e324ac56ca6e9f229d6acb39fdcf60c3356230 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 13 15:16:26 2018 -0400 SOLR-11947: term vectors WIP commit 8c843999eabdb82665641caa9c21f07e95b70a86 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 18:03:53 2018 -0400 SOLR-11947: Add curve fitting to TOC commit 09be026f6ad400d965fd373403d7a2eb2fae0c90 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 15:36:05 2018 -0400 SOLR-11947: Text analysis WIP commit e48b4d69abadb603a90c052aa1e36dd60ae7fd33 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 11 18:29:20 2018 -0400 SOLR-11947: TOC changes commit f71ebc079713e16492ba45cedafc3b9512f6bae2 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 17:54:04 2018 -0500 SOLR-11947: WIP term vectors commit ebc6b3943a27454adaf1a2309b6720bb2ba63c8c Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 13:34:19 2018 -0500 SOLR-11947: WIP regression commit 44752b2d34f46bc7f5693839e42ab3cef9edc47c Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 22:40:40 2018 -0500 SOLR-11947: WIP for vectorization.adoc commit 43254fcb05386264a6d591b1fa2c2573dcc2d2a3 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 19:42:26 2018 -0500 SOLR-11947: Test local links commit b60df2000978f70720eb0a36543752fd3bf07d2c Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:41:17 2018 -0500 SOLR-11947: Update math-expressions TOC commit de068c3af8557d60de37cb29f3ed7da3f5442772 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:24:46 2018 -0500 SOLR-11947: Continued work on math expressions documentation. commit fe445f2c997ea825d1ae9b9912406521249befc0 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 20:22:33 2018 -0500 SOLR-12054: ebeAdd and ebeSubtract should support matrix operations commit 1f3ae745cc26453a34a64a4327ceac7cc91d23f5 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 13:24:54 2018 -0500 SOLR-11947: Initial commit for new math expression docs WIP
2018-03-26 12:48:33 -04:00
The example below extends the simple linear regression example by introducing a new independent variable
called `service_d`. The `service_d` variable is the service level of the request and it can range from 1 to 4
SOLR-11947: Squashed commit of the following ref guide changes: commit 61053f2fe373bff0b451f549e063550f08ecdac1 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:44:12 2018 -0400 SOLR-11947: Fix orphaned files commit 42302073bf61fde134caeff71b6db3978e113b4d Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:27:26 2018 -0400 SOLR-11947: small change commit b16b1453c2e7d5083f588b4b874c918d521e9fe5 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:23:17 2018 -0400 SOLR-11947: proofing commit 57265ce4659a427c179e206b79d8fe05b01a5f93 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 24 14:41:48 2018 -0400 SOLR-11947: monte carlo WIP commit 04e8381f6b5b329c5fa17c1f31c2d848fe9cec2a Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 16:24:10 2018 -0400 SOLR-11947: probabiity WIP commit 4298a6d514e7e431e322a4f62c22c336430a89f1 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 13:07:05 2018 -0400 SOLR-11947: time series WIP commit 1a7654f9225948cd4adb3056bc2192cc0d24b3ee Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 11:32:53 2018 -0400 SOLR-11947: machine learning WIP commit fae0c3aa46e6f26fecb59077207982b2f584ec86 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 22:14:15 2018 -0400 SOLR-11947: machine learning WIP commit fb6a96b2bdc4bbc4c2b5b62b6e69cd561ef9e31b Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 14:36:08 2018 -0400 SOLR-11947: numerical analysis WIP commit a648ba939c90caf5db2a5b88023bd580d4d1e8af Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 12:27:33 2018 -0400 SOLR-11947: numerical analysis WIP commit ce8f1b710d414d8e3ff3c8676f64fc3017316a15 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 21 19:56:10 2018 -0400 SOLR-11947: numerical analysis WIP commit 5e25a4884341cdd84988e13250f255eb23d7fd50 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 22:01:59 2018 -0400 SOLR-11947: Curve fitting WIP commit f381414dc44ecfa781988c5ca75bfb1c80de6674 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 21:49:39 2018 -0400 SOLR-11947: Curve fitting WIP commit 4be725132215ed44cc84587bb0d11be216360b74 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 19 19:55:10 2018 -0400 SOLR-11947: Monte Carlo WIP commit d330b412e46be0ebf8d75e99295e3fe9f978c02c Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 18 22:00:55 2018 -0400 SOLR-11947: Probability WIP commit e3d6160c1fa650e054b9694c57d34b3950c80175 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 17 21:18:43 2018 -0400 SOLR-11947: More WIP commit 8484b0283f79825dee8eaee82604120d04511de4 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 16 15:03:06 2018 -0400 SOLR-11947: machine learning WIP commit 77ecfdc71d79ca8eded0355669310c6025c70d96 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 21:33:09 2018 -0400 SOLR-11947: machine learning WIP commit 7488caf5e54436a0e5fe85c0dda4ea31d8357600 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 19:08:50 2018 -0400 SOLR-11947: machine learning WIP commit 102ee2e1857e7d7f45d7f3195a0a4e91eacb766d Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 15:18:31 2018 -0400 SOLR-11947: machine learning WIP commit 0d5cd2b4a4fd012fe6d640a86733280702cf8673 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 21:49:15 2018 -0400 SOLR-11947: numerical analysis WIP commit 31eec30576479a9023c7b0e6ccb2d9f685e128a1 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 14:41:06 2018 -0400 SOLR-11947: numerical analysis WIP commit c6e324ac56ca6e9f229d6acb39fdcf60c3356230 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 13 15:16:26 2018 -0400 SOLR-11947: term vectors WIP commit 8c843999eabdb82665641caa9c21f07e95b70a86 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 18:03:53 2018 -0400 SOLR-11947: Add curve fitting to TOC commit 09be026f6ad400d965fd373403d7a2eb2fae0c90 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 15:36:05 2018 -0400 SOLR-11947: Text analysis WIP commit e48b4d69abadb603a90c052aa1e36dd60ae7fd33 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 11 18:29:20 2018 -0400 SOLR-11947: TOC changes commit f71ebc079713e16492ba45cedafc3b9512f6bae2 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 17:54:04 2018 -0500 SOLR-11947: WIP term vectors commit ebc6b3943a27454adaf1a2309b6720bb2ba63c8c Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 13:34:19 2018 -0500 SOLR-11947: WIP regression commit 44752b2d34f46bc7f5693839e42ab3cef9edc47c Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 22:40:40 2018 -0500 SOLR-11947: WIP for vectorization.adoc commit 43254fcb05386264a6d591b1fa2c2573dcc2d2a3 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 19:42:26 2018 -0500 SOLR-11947: Test local links commit b60df2000978f70720eb0a36543752fd3bf07d2c Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:41:17 2018 -0500 SOLR-11947: Update math-expressions TOC commit de068c3af8557d60de37cb29f3ed7da3f5442772 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:24:46 2018 -0500 SOLR-11947: Continued work on math expressions documentation. commit fe445f2c997ea825d1ae9b9912406521249befc0 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 20:22:33 2018 -0500 SOLR-12054: ebeAdd and ebeSubtract should support matrix operations commit 1f3ae745cc26453a34a64a4327ceac7cc91d23f5 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 13:24:54 2018 -0500 SOLR-11947: Initial commit for new math expression docs WIP
2018-03-26 12:48:33 -04:00
in the data-set. The higher the service level, the higher the bandwidth available for the request.
Notice that the two independent variables `filesize_d` and `service_d` are vectorized and stored
in the variables *`b`* and *`c`*. The variables *`b`* and *`c`* are then added as rows to a `matrix`. The matrix is
then transposed so that each row in the matrix represents one observation with `filesize_d` and `service_d`.
SOLR-11947: Squashed commit of the following ref guide changes: commit 61053f2fe373bff0b451f549e063550f08ecdac1 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:44:12 2018 -0400 SOLR-11947: Fix orphaned files commit 42302073bf61fde134caeff71b6db3978e113b4d Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:27:26 2018 -0400 SOLR-11947: small change commit b16b1453c2e7d5083f588b4b874c918d521e9fe5 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:23:17 2018 -0400 SOLR-11947: proofing commit 57265ce4659a427c179e206b79d8fe05b01a5f93 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 24 14:41:48 2018 -0400 SOLR-11947: monte carlo WIP commit 04e8381f6b5b329c5fa17c1f31c2d848fe9cec2a Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 16:24:10 2018 -0400 SOLR-11947: probabiity WIP commit 4298a6d514e7e431e322a4f62c22c336430a89f1 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 13:07:05 2018 -0400 SOLR-11947: time series WIP commit 1a7654f9225948cd4adb3056bc2192cc0d24b3ee Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 11:32:53 2018 -0400 SOLR-11947: machine learning WIP commit fae0c3aa46e6f26fecb59077207982b2f584ec86 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 22:14:15 2018 -0400 SOLR-11947: machine learning WIP commit fb6a96b2bdc4bbc4c2b5b62b6e69cd561ef9e31b Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 14:36:08 2018 -0400 SOLR-11947: numerical analysis WIP commit a648ba939c90caf5db2a5b88023bd580d4d1e8af Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 12:27:33 2018 -0400 SOLR-11947: numerical analysis WIP commit ce8f1b710d414d8e3ff3c8676f64fc3017316a15 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 21 19:56:10 2018 -0400 SOLR-11947: numerical analysis WIP commit 5e25a4884341cdd84988e13250f255eb23d7fd50 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 22:01:59 2018 -0400 SOLR-11947: Curve fitting WIP commit f381414dc44ecfa781988c5ca75bfb1c80de6674 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 21:49:39 2018 -0400 SOLR-11947: Curve fitting WIP commit 4be725132215ed44cc84587bb0d11be216360b74 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 19 19:55:10 2018 -0400 SOLR-11947: Monte Carlo WIP commit d330b412e46be0ebf8d75e99295e3fe9f978c02c Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 18 22:00:55 2018 -0400 SOLR-11947: Probability WIP commit e3d6160c1fa650e054b9694c57d34b3950c80175 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 17 21:18:43 2018 -0400 SOLR-11947: More WIP commit 8484b0283f79825dee8eaee82604120d04511de4 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 16 15:03:06 2018 -0400 SOLR-11947: machine learning WIP commit 77ecfdc71d79ca8eded0355669310c6025c70d96 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 21:33:09 2018 -0400 SOLR-11947: machine learning WIP commit 7488caf5e54436a0e5fe85c0dda4ea31d8357600 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 19:08:50 2018 -0400 SOLR-11947: machine learning WIP commit 102ee2e1857e7d7f45d7f3195a0a4e91eacb766d Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 15:18:31 2018 -0400 SOLR-11947: machine learning WIP commit 0d5cd2b4a4fd012fe6d640a86733280702cf8673 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 21:49:15 2018 -0400 SOLR-11947: numerical analysis WIP commit 31eec30576479a9023c7b0e6ccb2d9f685e128a1 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 14:41:06 2018 -0400 SOLR-11947: numerical analysis WIP commit c6e324ac56ca6e9f229d6acb39fdcf60c3356230 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 13 15:16:26 2018 -0400 SOLR-11947: term vectors WIP commit 8c843999eabdb82665641caa9c21f07e95b70a86 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 18:03:53 2018 -0400 SOLR-11947: Add curve fitting to TOC commit 09be026f6ad400d965fd373403d7a2eb2fae0c90 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 15:36:05 2018 -0400 SOLR-11947: Text analysis WIP commit e48b4d69abadb603a90c052aa1e36dd60ae7fd33 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 11 18:29:20 2018 -0400 SOLR-11947: TOC changes commit f71ebc079713e16492ba45cedafc3b9512f6bae2 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 17:54:04 2018 -0500 SOLR-11947: WIP term vectors commit ebc6b3943a27454adaf1a2309b6720bb2ba63c8c Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 13:34:19 2018 -0500 SOLR-11947: WIP regression commit 44752b2d34f46bc7f5693839e42ab3cef9edc47c Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 22:40:40 2018 -0500 SOLR-11947: WIP for vectorization.adoc commit 43254fcb05386264a6d591b1fa2c2573dcc2d2a3 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 19:42:26 2018 -0500 SOLR-11947: Test local links commit b60df2000978f70720eb0a36543752fd3bf07d2c Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:41:17 2018 -0500 SOLR-11947: Update math-expressions TOC commit de068c3af8557d60de37cb29f3ed7da3f5442772 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:24:46 2018 -0500 SOLR-11947: Continued work on math expressions documentation. commit fe445f2c997ea825d1ae9b9912406521249befc0 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 20:22:33 2018 -0500 SOLR-12054: ebeAdd and ebeSubtract should support matrix operations commit 1f3ae745cc26453a34a64a4327ceac7cc91d23f5 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 13:24:54 2018 -0500 SOLR-11947: Initial commit for new math expression docs WIP
2018-03-26 12:48:33 -04:00
The `olsRegress` function then performs the multivariate regression analysis using the observation matrix as the
independent variables and the `response_d` values, stored in variable *`d`*, as the dependent variable.
SOLR-11947: Squashed commit of the following ref guide changes: commit 61053f2fe373bff0b451f549e063550f08ecdac1 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:44:12 2018 -0400 SOLR-11947: Fix orphaned files commit 42302073bf61fde134caeff71b6db3978e113b4d Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:27:26 2018 -0400 SOLR-11947: small change commit b16b1453c2e7d5083f588b4b874c918d521e9fe5 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:23:17 2018 -0400 SOLR-11947: proofing commit 57265ce4659a427c179e206b79d8fe05b01a5f93 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 24 14:41:48 2018 -0400 SOLR-11947: monte carlo WIP commit 04e8381f6b5b329c5fa17c1f31c2d848fe9cec2a Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 16:24:10 2018 -0400 SOLR-11947: probabiity WIP commit 4298a6d514e7e431e322a4f62c22c336430a89f1 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 13:07:05 2018 -0400 SOLR-11947: time series WIP commit 1a7654f9225948cd4adb3056bc2192cc0d24b3ee Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 11:32:53 2018 -0400 SOLR-11947: machine learning WIP commit fae0c3aa46e6f26fecb59077207982b2f584ec86 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 22:14:15 2018 -0400 SOLR-11947: machine learning WIP commit fb6a96b2bdc4bbc4c2b5b62b6e69cd561ef9e31b Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 14:36:08 2018 -0400 SOLR-11947: numerical analysis WIP commit a648ba939c90caf5db2a5b88023bd580d4d1e8af Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 12:27:33 2018 -0400 SOLR-11947: numerical analysis WIP commit ce8f1b710d414d8e3ff3c8676f64fc3017316a15 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 21 19:56:10 2018 -0400 SOLR-11947: numerical analysis WIP commit 5e25a4884341cdd84988e13250f255eb23d7fd50 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 22:01:59 2018 -0400 SOLR-11947: Curve fitting WIP commit f381414dc44ecfa781988c5ca75bfb1c80de6674 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 21:49:39 2018 -0400 SOLR-11947: Curve fitting WIP commit 4be725132215ed44cc84587bb0d11be216360b74 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 19 19:55:10 2018 -0400 SOLR-11947: Monte Carlo WIP commit d330b412e46be0ebf8d75e99295e3fe9f978c02c Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 18 22:00:55 2018 -0400 SOLR-11947: Probability WIP commit e3d6160c1fa650e054b9694c57d34b3950c80175 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 17 21:18:43 2018 -0400 SOLR-11947: More WIP commit 8484b0283f79825dee8eaee82604120d04511de4 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 16 15:03:06 2018 -0400 SOLR-11947: machine learning WIP commit 77ecfdc71d79ca8eded0355669310c6025c70d96 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 21:33:09 2018 -0400 SOLR-11947: machine learning WIP commit 7488caf5e54436a0e5fe85c0dda4ea31d8357600 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 19:08:50 2018 -0400 SOLR-11947: machine learning WIP commit 102ee2e1857e7d7f45d7f3195a0a4e91eacb766d Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 15:18:31 2018 -0400 SOLR-11947: machine learning WIP commit 0d5cd2b4a4fd012fe6d640a86733280702cf8673 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 21:49:15 2018 -0400 SOLR-11947: numerical analysis WIP commit 31eec30576479a9023c7b0e6ccb2d9f685e128a1 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 14:41:06 2018 -0400 SOLR-11947: numerical analysis WIP commit c6e324ac56ca6e9f229d6acb39fdcf60c3356230 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 13 15:16:26 2018 -0400 SOLR-11947: term vectors WIP commit 8c843999eabdb82665641caa9c21f07e95b70a86 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 18:03:53 2018 -0400 SOLR-11947: Add curve fitting to TOC commit 09be026f6ad400d965fd373403d7a2eb2fae0c90 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 15:36:05 2018 -0400 SOLR-11947: Text analysis WIP commit e48b4d69abadb603a90c052aa1e36dd60ae7fd33 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 11 18:29:20 2018 -0400 SOLR-11947: TOC changes commit f71ebc079713e16492ba45cedafc3b9512f6bae2 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 17:54:04 2018 -0500 SOLR-11947: WIP term vectors commit ebc6b3943a27454adaf1a2309b6720bb2ba63c8c Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 13:34:19 2018 -0500 SOLR-11947: WIP regression commit 44752b2d34f46bc7f5693839e42ab3cef9edc47c Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 22:40:40 2018 -0500 SOLR-11947: WIP for vectorization.adoc commit 43254fcb05386264a6d591b1fa2c2573dcc2d2a3 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 19:42:26 2018 -0500 SOLR-11947: Test local links commit b60df2000978f70720eb0a36543752fd3bf07d2c Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:41:17 2018 -0500 SOLR-11947: Update math-expressions TOC commit de068c3af8557d60de37cb29f3ed7da3f5442772 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:24:46 2018 -0500 SOLR-11947: Continued work on math expressions documentation. commit fe445f2c997ea825d1ae9b9912406521249befc0 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 20:22:33 2018 -0500 SOLR-12054: ebeAdd and ebeSubtract should support matrix operations commit 1f3ae745cc26453a34a64a4327ceac7cc91d23f5 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 13:24:54 2018 -0500 SOLR-11947: Initial commit for new math expression docs WIP
2018-03-26 12:48:33 -04:00
[source,text]
----
let(a=random(collection2, q="*:*", rows="30000", fl="filesize_d, service_d, response_d"),
b=col(a, filesize_d),
c=col(a, service_d),
d=col(a, response_d),
e=transpose(matrix(b, c)),
f=olsRegress(e, d))
----
Notice in the response that the RSquared of the regression analysis is 1. This means that linear relationship between
`filesize_d` and `service_d` describe 100% of the variability of the `response_d` variable:
SOLR-11947: Squashed commit of the following ref guide changes: commit 61053f2fe373bff0b451f549e063550f08ecdac1 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:44:12 2018 -0400 SOLR-11947: Fix orphaned files commit 42302073bf61fde134caeff71b6db3978e113b4d Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:27:26 2018 -0400 SOLR-11947: small change commit b16b1453c2e7d5083f588b4b874c918d521e9fe5 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:23:17 2018 -0400 SOLR-11947: proofing commit 57265ce4659a427c179e206b79d8fe05b01a5f93 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 24 14:41:48 2018 -0400 SOLR-11947: monte carlo WIP commit 04e8381f6b5b329c5fa17c1f31c2d848fe9cec2a Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 16:24:10 2018 -0400 SOLR-11947: probabiity WIP commit 4298a6d514e7e431e322a4f62c22c336430a89f1 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 13:07:05 2018 -0400 SOLR-11947: time series WIP commit 1a7654f9225948cd4adb3056bc2192cc0d24b3ee Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 11:32:53 2018 -0400 SOLR-11947: machine learning WIP commit fae0c3aa46e6f26fecb59077207982b2f584ec86 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 22:14:15 2018 -0400 SOLR-11947: machine learning WIP commit fb6a96b2bdc4bbc4c2b5b62b6e69cd561ef9e31b Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 14:36:08 2018 -0400 SOLR-11947: numerical analysis WIP commit a648ba939c90caf5db2a5b88023bd580d4d1e8af Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 12:27:33 2018 -0400 SOLR-11947: numerical analysis WIP commit ce8f1b710d414d8e3ff3c8676f64fc3017316a15 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 21 19:56:10 2018 -0400 SOLR-11947: numerical analysis WIP commit 5e25a4884341cdd84988e13250f255eb23d7fd50 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 22:01:59 2018 -0400 SOLR-11947: Curve fitting WIP commit f381414dc44ecfa781988c5ca75bfb1c80de6674 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 21:49:39 2018 -0400 SOLR-11947: Curve fitting WIP commit 4be725132215ed44cc84587bb0d11be216360b74 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 19 19:55:10 2018 -0400 SOLR-11947: Monte Carlo WIP commit d330b412e46be0ebf8d75e99295e3fe9f978c02c Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 18 22:00:55 2018 -0400 SOLR-11947: Probability WIP commit e3d6160c1fa650e054b9694c57d34b3950c80175 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 17 21:18:43 2018 -0400 SOLR-11947: More WIP commit 8484b0283f79825dee8eaee82604120d04511de4 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 16 15:03:06 2018 -0400 SOLR-11947: machine learning WIP commit 77ecfdc71d79ca8eded0355669310c6025c70d96 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 21:33:09 2018 -0400 SOLR-11947: machine learning WIP commit 7488caf5e54436a0e5fe85c0dda4ea31d8357600 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 19:08:50 2018 -0400 SOLR-11947: machine learning WIP commit 102ee2e1857e7d7f45d7f3195a0a4e91eacb766d Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 15:18:31 2018 -0400 SOLR-11947: machine learning WIP commit 0d5cd2b4a4fd012fe6d640a86733280702cf8673 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 21:49:15 2018 -0400 SOLR-11947: numerical analysis WIP commit 31eec30576479a9023c7b0e6ccb2d9f685e128a1 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 14:41:06 2018 -0400 SOLR-11947: numerical analysis WIP commit c6e324ac56ca6e9f229d6acb39fdcf60c3356230 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 13 15:16:26 2018 -0400 SOLR-11947: term vectors WIP commit 8c843999eabdb82665641caa9c21f07e95b70a86 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 18:03:53 2018 -0400 SOLR-11947: Add curve fitting to TOC commit 09be026f6ad400d965fd373403d7a2eb2fae0c90 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 15:36:05 2018 -0400 SOLR-11947: Text analysis WIP commit e48b4d69abadb603a90c052aa1e36dd60ae7fd33 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 11 18:29:20 2018 -0400 SOLR-11947: TOC changes commit f71ebc079713e16492ba45cedafc3b9512f6bae2 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 17:54:04 2018 -0500 SOLR-11947: WIP term vectors commit ebc6b3943a27454adaf1a2309b6720bb2ba63c8c Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 13:34:19 2018 -0500 SOLR-11947: WIP regression commit 44752b2d34f46bc7f5693839e42ab3cef9edc47c Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 22:40:40 2018 -0500 SOLR-11947: WIP for vectorization.adoc commit 43254fcb05386264a6d591b1fa2c2573dcc2d2a3 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 19:42:26 2018 -0500 SOLR-11947: Test local links commit b60df2000978f70720eb0a36543752fd3bf07d2c Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:41:17 2018 -0500 SOLR-11947: Update math-expressions TOC commit de068c3af8557d60de37cb29f3ed7da3f5442772 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:24:46 2018 -0500 SOLR-11947: Continued work on math expressions documentation. commit fe445f2c997ea825d1ae9b9912406521249befc0 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 20:22:33 2018 -0500 SOLR-12054: ebeAdd and ebeSubtract should support matrix operations commit 1f3ae745cc26453a34a64a4327ceac7cc91d23f5 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 13:24:54 2018 -0500 SOLR-11947: Initial commit for new math expression docs WIP
2018-03-26 12:48:33 -04:00
[source,json]
----
{
"result-set": {
"docs": [
{
"f": {
"regressionParametersStandardErrors": [
2.0660690430026933e-13,
5.1212982077663434e-18,
9.10920932555875e-15
],
"RSquared": 1,
"regressionParameters": [
6.553210695971329e-12,
0.019999999999999858,
-20.49999999999968
],
"regressandVariance": 2124.130825172683,
"regressionParametersVariance": [
[
0.013660174897582315,
-3.361258014840509e-7,
-0.00006893737578369605
],
[
-3.361258014840509e-7,
8.393183709503206e-12,
6.430253229589981e-11
],
[
-0.00006893737578369605,
6.430253229589981e-11,
0.000026553878455570856
]
],
"adjustedRSquared": 1,
"residualSumSquares": 9.373703759269822e-20
}
},
{
"EOF": true,
"RESPONSE_TIME": 690
}
]
}
}
----
=== Prediction
The `predict` function can also be used to make predictions for multivariate linear regression.
Below is an example of a single prediction using the multivariate linear regression model and a single observation.
The observation is an array that matches the structure of the observation matrix used to build the model. In this case
the first value represents a `filesize_d` of `40000` and the second value represents a `service_d` of `4`.
SOLR-11947: Squashed commit of the following ref guide changes: commit 61053f2fe373bff0b451f549e063550f08ecdac1 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:44:12 2018 -0400 SOLR-11947: Fix orphaned files commit 42302073bf61fde134caeff71b6db3978e113b4d Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:27:26 2018 -0400 SOLR-11947: small change commit b16b1453c2e7d5083f588b4b874c918d521e9fe5 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:23:17 2018 -0400 SOLR-11947: proofing commit 57265ce4659a427c179e206b79d8fe05b01a5f93 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 24 14:41:48 2018 -0400 SOLR-11947: monte carlo WIP commit 04e8381f6b5b329c5fa17c1f31c2d848fe9cec2a Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 16:24:10 2018 -0400 SOLR-11947: probabiity WIP commit 4298a6d514e7e431e322a4f62c22c336430a89f1 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 13:07:05 2018 -0400 SOLR-11947: time series WIP commit 1a7654f9225948cd4adb3056bc2192cc0d24b3ee Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 11:32:53 2018 -0400 SOLR-11947: machine learning WIP commit fae0c3aa46e6f26fecb59077207982b2f584ec86 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 22:14:15 2018 -0400 SOLR-11947: machine learning WIP commit fb6a96b2bdc4bbc4c2b5b62b6e69cd561ef9e31b Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 14:36:08 2018 -0400 SOLR-11947: numerical analysis WIP commit a648ba939c90caf5db2a5b88023bd580d4d1e8af Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 12:27:33 2018 -0400 SOLR-11947: numerical analysis WIP commit ce8f1b710d414d8e3ff3c8676f64fc3017316a15 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 21 19:56:10 2018 -0400 SOLR-11947: numerical analysis WIP commit 5e25a4884341cdd84988e13250f255eb23d7fd50 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 22:01:59 2018 -0400 SOLR-11947: Curve fitting WIP commit f381414dc44ecfa781988c5ca75bfb1c80de6674 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 21:49:39 2018 -0400 SOLR-11947: Curve fitting WIP commit 4be725132215ed44cc84587bb0d11be216360b74 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 19 19:55:10 2018 -0400 SOLR-11947: Monte Carlo WIP commit d330b412e46be0ebf8d75e99295e3fe9f978c02c Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 18 22:00:55 2018 -0400 SOLR-11947: Probability WIP commit e3d6160c1fa650e054b9694c57d34b3950c80175 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 17 21:18:43 2018 -0400 SOLR-11947: More WIP commit 8484b0283f79825dee8eaee82604120d04511de4 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 16 15:03:06 2018 -0400 SOLR-11947: machine learning WIP commit 77ecfdc71d79ca8eded0355669310c6025c70d96 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 21:33:09 2018 -0400 SOLR-11947: machine learning WIP commit 7488caf5e54436a0e5fe85c0dda4ea31d8357600 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 19:08:50 2018 -0400 SOLR-11947: machine learning WIP commit 102ee2e1857e7d7f45d7f3195a0a4e91eacb766d Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 15:18:31 2018 -0400 SOLR-11947: machine learning WIP commit 0d5cd2b4a4fd012fe6d640a86733280702cf8673 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 21:49:15 2018 -0400 SOLR-11947: numerical analysis WIP commit 31eec30576479a9023c7b0e6ccb2d9f685e128a1 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 14:41:06 2018 -0400 SOLR-11947: numerical analysis WIP commit c6e324ac56ca6e9f229d6acb39fdcf60c3356230 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 13 15:16:26 2018 -0400 SOLR-11947: term vectors WIP commit 8c843999eabdb82665641caa9c21f07e95b70a86 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 18:03:53 2018 -0400 SOLR-11947: Add curve fitting to TOC commit 09be026f6ad400d965fd373403d7a2eb2fae0c90 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 15:36:05 2018 -0400 SOLR-11947: Text analysis WIP commit e48b4d69abadb603a90c052aa1e36dd60ae7fd33 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 11 18:29:20 2018 -0400 SOLR-11947: TOC changes commit f71ebc079713e16492ba45cedafc3b9512f6bae2 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 17:54:04 2018 -0500 SOLR-11947: WIP term vectors commit ebc6b3943a27454adaf1a2309b6720bb2ba63c8c Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 13:34:19 2018 -0500 SOLR-11947: WIP regression commit 44752b2d34f46bc7f5693839e42ab3cef9edc47c Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 22:40:40 2018 -0500 SOLR-11947: WIP for vectorization.adoc commit 43254fcb05386264a6d591b1fa2c2573dcc2d2a3 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 19:42:26 2018 -0500 SOLR-11947: Test local links commit b60df2000978f70720eb0a36543752fd3bf07d2c Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:41:17 2018 -0500 SOLR-11947: Update math-expressions TOC commit de068c3af8557d60de37cb29f3ed7da3f5442772 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:24:46 2018 -0500 SOLR-11947: Continued work on math expressions documentation. commit fe445f2c997ea825d1ae9b9912406521249befc0 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 20:22:33 2018 -0500 SOLR-12054: ebeAdd and ebeSubtract should support matrix operations commit 1f3ae745cc26453a34a64a4327ceac7cc91d23f5 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 13:24:54 2018 -0500 SOLR-11947: Initial commit for new math expression docs WIP
2018-03-26 12:48:33 -04:00
[source,text]
----
let(a=random(collection2, q="*:*", rows="5000", fl="filesize_d, service_d, response_d"),
b=col(a, filesize_d),
c=col(a, service_d),
d=col(a, response_d),
e=transpose(matrix(b, c)),
f=olsRegress(e, d),
g=predict(f, array(40000, 4)))
----
When this expression is sent to the `/stream` handler it responds with:
SOLR-11947: Squashed commit of the following ref guide changes: commit 61053f2fe373bff0b451f549e063550f08ecdac1 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:44:12 2018 -0400 SOLR-11947: Fix orphaned files commit 42302073bf61fde134caeff71b6db3978e113b4d Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:27:26 2018 -0400 SOLR-11947: small change commit b16b1453c2e7d5083f588b4b874c918d521e9fe5 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:23:17 2018 -0400 SOLR-11947: proofing commit 57265ce4659a427c179e206b79d8fe05b01a5f93 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 24 14:41:48 2018 -0400 SOLR-11947: monte carlo WIP commit 04e8381f6b5b329c5fa17c1f31c2d848fe9cec2a Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 16:24:10 2018 -0400 SOLR-11947: probabiity WIP commit 4298a6d514e7e431e322a4f62c22c336430a89f1 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 13:07:05 2018 -0400 SOLR-11947: time series WIP commit 1a7654f9225948cd4adb3056bc2192cc0d24b3ee Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 11:32:53 2018 -0400 SOLR-11947: machine learning WIP commit fae0c3aa46e6f26fecb59077207982b2f584ec86 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 22:14:15 2018 -0400 SOLR-11947: machine learning WIP commit fb6a96b2bdc4bbc4c2b5b62b6e69cd561ef9e31b Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 14:36:08 2018 -0400 SOLR-11947: numerical analysis WIP commit a648ba939c90caf5db2a5b88023bd580d4d1e8af Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 12:27:33 2018 -0400 SOLR-11947: numerical analysis WIP commit ce8f1b710d414d8e3ff3c8676f64fc3017316a15 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 21 19:56:10 2018 -0400 SOLR-11947: numerical analysis WIP commit 5e25a4884341cdd84988e13250f255eb23d7fd50 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 22:01:59 2018 -0400 SOLR-11947: Curve fitting WIP commit f381414dc44ecfa781988c5ca75bfb1c80de6674 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 21:49:39 2018 -0400 SOLR-11947: Curve fitting WIP commit 4be725132215ed44cc84587bb0d11be216360b74 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 19 19:55:10 2018 -0400 SOLR-11947: Monte Carlo WIP commit d330b412e46be0ebf8d75e99295e3fe9f978c02c Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 18 22:00:55 2018 -0400 SOLR-11947: Probability WIP commit e3d6160c1fa650e054b9694c57d34b3950c80175 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 17 21:18:43 2018 -0400 SOLR-11947: More WIP commit 8484b0283f79825dee8eaee82604120d04511de4 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 16 15:03:06 2018 -0400 SOLR-11947: machine learning WIP commit 77ecfdc71d79ca8eded0355669310c6025c70d96 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 21:33:09 2018 -0400 SOLR-11947: machine learning WIP commit 7488caf5e54436a0e5fe85c0dda4ea31d8357600 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 19:08:50 2018 -0400 SOLR-11947: machine learning WIP commit 102ee2e1857e7d7f45d7f3195a0a4e91eacb766d Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 15:18:31 2018 -0400 SOLR-11947: machine learning WIP commit 0d5cd2b4a4fd012fe6d640a86733280702cf8673 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 21:49:15 2018 -0400 SOLR-11947: numerical analysis WIP commit 31eec30576479a9023c7b0e6ccb2d9f685e128a1 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 14:41:06 2018 -0400 SOLR-11947: numerical analysis WIP commit c6e324ac56ca6e9f229d6acb39fdcf60c3356230 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 13 15:16:26 2018 -0400 SOLR-11947: term vectors WIP commit 8c843999eabdb82665641caa9c21f07e95b70a86 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 18:03:53 2018 -0400 SOLR-11947: Add curve fitting to TOC commit 09be026f6ad400d965fd373403d7a2eb2fae0c90 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 15:36:05 2018 -0400 SOLR-11947: Text analysis WIP commit e48b4d69abadb603a90c052aa1e36dd60ae7fd33 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 11 18:29:20 2018 -0400 SOLR-11947: TOC changes commit f71ebc079713e16492ba45cedafc3b9512f6bae2 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 17:54:04 2018 -0500 SOLR-11947: WIP term vectors commit ebc6b3943a27454adaf1a2309b6720bb2ba63c8c Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 13:34:19 2018 -0500 SOLR-11947: WIP regression commit 44752b2d34f46bc7f5693839e42ab3cef9edc47c Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 22:40:40 2018 -0500 SOLR-11947: WIP for vectorization.adoc commit 43254fcb05386264a6d591b1fa2c2573dcc2d2a3 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 19:42:26 2018 -0500 SOLR-11947: Test local links commit b60df2000978f70720eb0a36543752fd3bf07d2c Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:41:17 2018 -0500 SOLR-11947: Update math-expressions TOC commit de068c3af8557d60de37cb29f3ed7da3f5442772 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:24:46 2018 -0500 SOLR-11947: Continued work on math expressions documentation. commit fe445f2c997ea825d1ae9b9912406521249befc0 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 20:22:33 2018 -0500 SOLR-12054: ebeAdd and ebeSubtract should support matrix operations commit 1f3ae745cc26453a34a64a4327ceac7cc91d23f5 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 13:24:54 2018 -0500 SOLR-11947: Initial commit for new math expression docs WIP
2018-03-26 12:48:33 -04:00
[source,json]
----
{
"result-set": {
"docs": [
{
"g": 718.0000000000005
},
{
"EOF": true,
"RESPONSE_TIME": 117
}
]
}
}
----
The `predict` function can also make predictions for more than one multivariate observation. In this scenario
an observation matrix used.
SOLR-11947: Squashed commit of the following ref guide changes: commit 61053f2fe373bff0b451f549e063550f08ecdac1 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:44:12 2018 -0400 SOLR-11947: Fix orphaned files commit 42302073bf61fde134caeff71b6db3978e113b4d Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:27:26 2018 -0400 SOLR-11947: small change commit b16b1453c2e7d5083f588b4b874c918d521e9fe5 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:23:17 2018 -0400 SOLR-11947: proofing commit 57265ce4659a427c179e206b79d8fe05b01a5f93 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 24 14:41:48 2018 -0400 SOLR-11947: monte carlo WIP commit 04e8381f6b5b329c5fa17c1f31c2d848fe9cec2a Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 16:24:10 2018 -0400 SOLR-11947: probabiity WIP commit 4298a6d514e7e431e322a4f62c22c336430a89f1 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 13:07:05 2018 -0400 SOLR-11947: time series WIP commit 1a7654f9225948cd4adb3056bc2192cc0d24b3ee Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 11:32:53 2018 -0400 SOLR-11947: machine learning WIP commit fae0c3aa46e6f26fecb59077207982b2f584ec86 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 22:14:15 2018 -0400 SOLR-11947: machine learning WIP commit fb6a96b2bdc4bbc4c2b5b62b6e69cd561ef9e31b Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 14:36:08 2018 -0400 SOLR-11947: numerical analysis WIP commit a648ba939c90caf5db2a5b88023bd580d4d1e8af Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 12:27:33 2018 -0400 SOLR-11947: numerical analysis WIP commit ce8f1b710d414d8e3ff3c8676f64fc3017316a15 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 21 19:56:10 2018 -0400 SOLR-11947: numerical analysis WIP commit 5e25a4884341cdd84988e13250f255eb23d7fd50 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 22:01:59 2018 -0400 SOLR-11947: Curve fitting WIP commit f381414dc44ecfa781988c5ca75bfb1c80de6674 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 21:49:39 2018 -0400 SOLR-11947: Curve fitting WIP commit 4be725132215ed44cc84587bb0d11be216360b74 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 19 19:55:10 2018 -0400 SOLR-11947: Monte Carlo WIP commit d330b412e46be0ebf8d75e99295e3fe9f978c02c Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 18 22:00:55 2018 -0400 SOLR-11947: Probability WIP commit e3d6160c1fa650e054b9694c57d34b3950c80175 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 17 21:18:43 2018 -0400 SOLR-11947: More WIP commit 8484b0283f79825dee8eaee82604120d04511de4 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 16 15:03:06 2018 -0400 SOLR-11947: machine learning WIP commit 77ecfdc71d79ca8eded0355669310c6025c70d96 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 21:33:09 2018 -0400 SOLR-11947: machine learning WIP commit 7488caf5e54436a0e5fe85c0dda4ea31d8357600 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 19:08:50 2018 -0400 SOLR-11947: machine learning WIP commit 102ee2e1857e7d7f45d7f3195a0a4e91eacb766d Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 15:18:31 2018 -0400 SOLR-11947: machine learning WIP commit 0d5cd2b4a4fd012fe6d640a86733280702cf8673 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 21:49:15 2018 -0400 SOLR-11947: numerical analysis WIP commit 31eec30576479a9023c7b0e6ccb2d9f685e128a1 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 14:41:06 2018 -0400 SOLR-11947: numerical analysis WIP commit c6e324ac56ca6e9f229d6acb39fdcf60c3356230 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 13 15:16:26 2018 -0400 SOLR-11947: term vectors WIP commit 8c843999eabdb82665641caa9c21f07e95b70a86 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 18:03:53 2018 -0400 SOLR-11947: Add curve fitting to TOC commit 09be026f6ad400d965fd373403d7a2eb2fae0c90 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 15:36:05 2018 -0400 SOLR-11947: Text analysis WIP commit e48b4d69abadb603a90c052aa1e36dd60ae7fd33 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 11 18:29:20 2018 -0400 SOLR-11947: TOC changes commit f71ebc079713e16492ba45cedafc3b9512f6bae2 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 17:54:04 2018 -0500 SOLR-11947: WIP term vectors commit ebc6b3943a27454adaf1a2309b6720bb2ba63c8c Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 13:34:19 2018 -0500 SOLR-11947: WIP regression commit 44752b2d34f46bc7f5693839e42ab3cef9edc47c Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 22:40:40 2018 -0500 SOLR-11947: WIP for vectorization.adoc commit 43254fcb05386264a6d591b1fa2c2573dcc2d2a3 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 19:42:26 2018 -0500 SOLR-11947: Test local links commit b60df2000978f70720eb0a36543752fd3bf07d2c Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:41:17 2018 -0500 SOLR-11947: Update math-expressions TOC commit de068c3af8557d60de37cb29f3ed7da3f5442772 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:24:46 2018 -0500 SOLR-11947: Continued work on math expressions documentation. commit fe445f2c997ea825d1ae9b9912406521249befc0 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 20:22:33 2018 -0500 SOLR-12054: ebeAdd and ebeSubtract should support matrix operations commit 1f3ae745cc26453a34a64a4327ceac7cc91d23f5 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 13:24:54 2018 -0500 SOLR-11947: Initial commit for new math expression docs WIP
2018-03-26 12:48:33 -04:00
In the example below the observation matrix used to build the multivariate regression model
is passed to the `predict` function and it returns an array of predictions.
SOLR-11947: Squashed commit of the following ref guide changes: commit 61053f2fe373bff0b451f549e063550f08ecdac1 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:44:12 2018 -0400 SOLR-11947: Fix orphaned files commit 42302073bf61fde134caeff71b6db3978e113b4d Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:27:26 2018 -0400 SOLR-11947: small change commit b16b1453c2e7d5083f588b4b874c918d521e9fe5 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:23:17 2018 -0400 SOLR-11947: proofing commit 57265ce4659a427c179e206b79d8fe05b01a5f93 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 24 14:41:48 2018 -0400 SOLR-11947: monte carlo WIP commit 04e8381f6b5b329c5fa17c1f31c2d848fe9cec2a Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 16:24:10 2018 -0400 SOLR-11947: probabiity WIP commit 4298a6d514e7e431e322a4f62c22c336430a89f1 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 13:07:05 2018 -0400 SOLR-11947: time series WIP commit 1a7654f9225948cd4adb3056bc2192cc0d24b3ee Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 11:32:53 2018 -0400 SOLR-11947: machine learning WIP commit fae0c3aa46e6f26fecb59077207982b2f584ec86 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 22:14:15 2018 -0400 SOLR-11947: machine learning WIP commit fb6a96b2bdc4bbc4c2b5b62b6e69cd561ef9e31b Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 14:36:08 2018 -0400 SOLR-11947: numerical analysis WIP commit a648ba939c90caf5db2a5b88023bd580d4d1e8af Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 12:27:33 2018 -0400 SOLR-11947: numerical analysis WIP commit ce8f1b710d414d8e3ff3c8676f64fc3017316a15 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 21 19:56:10 2018 -0400 SOLR-11947: numerical analysis WIP commit 5e25a4884341cdd84988e13250f255eb23d7fd50 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 22:01:59 2018 -0400 SOLR-11947: Curve fitting WIP commit f381414dc44ecfa781988c5ca75bfb1c80de6674 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 21:49:39 2018 -0400 SOLR-11947: Curve fitting WIP commit 4be725132215ed44cc84587bb0d11be216360b74 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 19 19:55:10 2018 -0400 SOLR-11947: Monte Carlo WIP commit d330b412e46be0ebf8d75e99295e3fe9f978c02c Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 18 22:00:55 2018 -0400 SOLR-11947: Probability WIP commit e3d6160c1fa650e054b9694c57d34b3950c80175 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 17 21:18:43 2018 -0400 SOLR-11947: More WIP commit 8484b0283f79825dee8eaee82604120d04511de4 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 16 15:03:06 2018 -0400 SOLR-11947: machine learning WIP commit 77ecfdc71d79ca8eded0355669310c6025c70d96 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 21:33:09 2018 -0400 SOLR-11947: machine learning WIP commit 7488caf5e54436a0e5fe85c0dda4ea31d8357600 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 19:08:50 2018 -0400 SOLR-11947: machine learning WIP commit 102ee2e1857e7d7f45d7f3195a0a4e91eacb766d Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 15:18:31 2018 -0400 SOLR-11947: machine learning WIP commit 0d5cd2b4a4fd012fe6d640a86733280702cf8673 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 21:49:15 2018 -0400 SOLR-11947: numerical analysis WIP commit 31eec30576479a9023c7b0e6ccb2d9f685e128a1 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 14:41:06 2018 -0400 SOLR-11947: numerical analysis WIP commit c6e324ac56ca6e9f229d6acb39fdcf60c3356230 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 13 15:16:26 2018 -0400 SOLR-11947: term vectors WIP commit 8c843999eabdb82665641caa9c21f07e95b70a86 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 18:03:53 2018 -0400 SOLR-11947: Add curve fitting to TOC commit 09be026f6ad400d965fd373403d7a2eb2fae0c90 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 15:36:05 2018 -0400 SOLR-11947: Text analysis WIP commit e48b4d69abadb603a90c052aa1e36dd60ae7fd33 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 11 18:29:20 2018 -0400 SOLR-11947: TOC changes commit f71ebc079713e16492ba45cedafc3b9512f6bae2 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 17:54:04 2018 -0500 SOLR-11947: WIP term vectors commit ebc6b3943a27454adaf1a2309b6720bb2ba63c8c Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 13:34:19 2018 -0500 SOLR-11947: WIP regression commit 44752b2d34f46bc7f5693839e42ab3cef9edc47c Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 22:40:40 2018 -0500 SOLR-11947: WIP for vectorization.adoc commit 43254fcb05386264a6d591b1fa2c2573dcc2d2a3 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 19:42:26 2018 -0500 SOLR-11947: Test local links commit b60df2000978f70720eb0a36543752fd3bf07d2c Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:41:17 2018 -0500 SOLR-11947: Update math-expressions TOC commit de068c3af8557d60de37cb29f3ed7da3f5442772 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:24:46 2018 -0500 SOLR-11947: Continued work on math expressions documentation. commit fe445f2c997ea825d1ae9b9912406521249befc0 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 20:22:33 2018 -0500 SOLR-12054: ebeAdd and ebeSubtract should support matrix operations commit 1f3ae745cc26453a34a64a4327ceac7cc91d23f5 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 13:24:54 2018 -0500 SOLR-11947: Initial commit for new math expression docs WIP
2018-03-26 12:48:33 -04:00
[source,text]
----
let(a=random(collection2, q="*:*", rows="5000", fl="filesize_d, service_d, response_d"),
b=col(a, filesize_d),
c=col(a, service_d),
d=col(a, response_d),
e=transpose(matrix(b, c)),
f=olsRegress(e, d),
g=predict(f, e))
----
When this expression is sent to the `/stream` handler it responds with:
SOLR-11947: Squashed commit of the following ref guide changes: commit 61053f2fe373bff0b451f549e063550f08ecdac1 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:44:12 2018 -0400 SOLR-11947: Fix orphaned files commit 42302073bf61fde134caeff71b6db3978e113b4d Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:27:26 2018 -0400 SOLR-11947: small change commit b16b1453c2e7d5083f588b4b874c918d521e9fe5 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:23:17 2018 -0400 SOLR-11947: proofing commit 57265ce4659a427c179e206b79d8fe05b01a5f93 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 24 14:41:48 2018 -0400 SOLR-11947: monte carlo WIP commit 04e8381f6b5b329c5fa17c1f31c2d848fe9cec2a Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 16:24:10 2018 -0400 SOLR-11947: probabiity WIP commit 4298a6d514e7e431e322a4f62c22c336430a89f1 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 13:07:05 2018 -0400 SOLR-11947: time series WIP commit 1a7654f9225948cd4adb3056bc2192cc0d24b3ee Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 11:32:53 2018 -0400 SOLR-11947: machine learning WIP commit fae0c3aa46e6f26fecb59077207982b2f584ec86 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 22:14:15 2018 -0400 SOLR-11947: machine learning WIP commit fb6a96b2bdc4bbc4c2b5b62b6e69cd561ef9e31b Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 14:36:08 2018 -0400 SOLR-11947: numerical analysis WIP commit a648ba939c90caf5db2a5b88023bd580d4d1e8af Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 12:27:33 2018 -0400 SOLR-11947: numerical analysis WIP commit ce8f1b710d414d8e3ff3c8676f64fc3017316a15 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 21 19:56:10 2018 -0400 SOLR-11947: numerical analysis WIP commit 5e25a4884341cdd84988e13250f255eb23d7fd50 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 22:01:59 2018 -0400 SOLR-11947: Curve fitting WIP commit f381414dc44ecfa781988c5ca75bfb1c80de6674 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 21:49:39 2018 -0400 SOLR-11947: Curve fitting WIP commit 4be725132215ed44cc84587bb0d11be216360b74 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 19 19:55:10 2018 -0400 SOLR-11947: Monte Carlo WIP commit d330b412e46be0ebf8d75e99295e3fe9f978c02c Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 18 22:00:55 2018 -0400 SOLR-11947: Probability WIP commit e3d6160c1fa650e054b9694c57d34b3950c80175 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 17 21:18:43 2018 -0400 SOLR-11947: More WIP commit 8484b0283f79825dee8eaee82604120d04511de4 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 16 15:03:06 2018 -0400 SOLR-11947: machine learning WIP commit 77ecfdc71d79ca8eded0355669310c6025c70d96 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 21:33:09 2018 -0400 SOLR-11947: machine learning WIP commit 7488caf5e54436a0e5fe85c0dda4ea31d8357600 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 19:08:50 2018 -0400 SOLR-11947: machine learning WIP commit 102ee2e1857e7d7f45d7f3195a0a4e91eacb766d Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 15:18:31 2018 -0400 SOLR-11947: machine learning WIP commit 0d5cd2b4a4fd012fe6d640a86733280702cf8673 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 21:49:15 2018 -0400 SOLR-11947: numerical analysis WIP commit 31eec30576479a9023c7b0e6ccb2d9f685e128a1 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 14:41:06 2018 -0400 SOLR-11947: numerical analysis WIP commit c6e324ac56ca6e9f229d6acb39fdcf60c3356230 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 13 15:16:26 2018 -0400 SOLR-11947: term vectors WIP commit 8c843999eabdb82665641caa9c21f07e95b70a86 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 18:03:53 2018 -0400 SOLR-11947: Add curve fitting to TOC commit 09be026f6ad400d965fd373403d7a2eb2fae0c90 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 15:36:05 2018 -0400 SOLR-11947: Text analysis WIP commit e48b4d69abadb603a90c052aa1e36dd60ae7fd33 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 11 18:29:20 2018 -0400 SOLR-11947: TOC changes commit f71ebc079713e16492ba45cedafc3b9512f6bae2 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 17:54:04 2018 -0500 SOLR-11947: WIP term vectors commit ebc6b3943a27454adaf1a2309b6720bb2ba63c8c Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 13:34:19 2018 -0500 SOLR-11947: WIP regression commit 44752b2d34f46bc7f5693839e42ab3cef9edc47c Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 22:40:40 2018 -0500 SOLR-11947: WIP for vectorization.adoc commit 43254fcb05386264a6d591b1fa2c2573dcc2d2a3 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 19:42:26 2018 -0500 SOLR-11947: Test local links commit b60df2000978f70720eb0a36543752fd3bf07d2c Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:41:17 2018 -0500 SOLR-11947: Update math-expressions TOC commit de068c3af8557d60de37cb29f3ed7da3f5442772 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:24:46 2018 -0500 SOLR-11947: Continued work on math expressions documentation. commit fe445f2c997ea825d1ae9b9912406521249befc0 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 20:22:33 2018 -0500 SOLR-12054: ebeAdd and ebeSubtract should support matrix operations commit 1f3ae745cc26453a34a64a4327ceac7cc91d23f5 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 13:24:54 2018 -0500 SOLR-11947: Initial commit for new math expression docs WIP
2018-03-26 12:48:33 -04:00
[source,json]
----
{
"result-set": {
"docs": [
{
"e": [
685.498283591961,
801.2175699959365,
776.7638245911025,
610.3559852681935,
751.0925865965207,
787.2914663381897,
744.3632053810668,
688.3729301599697,
765.367783417171,
724.9309687628346,
834.4350712384264,
...
]
},
{
"EOF": true,
"RESPONSE_TIME": 113
}
]
}
}
----
=== Residuals
Once the predictions are generated the residuals can be calculated using the same approach used with
simple linear regression.
Below is an example of the residuals calculation following a multivariate linear regression. In the example
the predictions stored variable *`g`* are subtracted from observed values stored in variable *`d`*.
SOLR-11947: Squashed commit of the following ref guide changes: commit 61053f2fe373bff0b451f549e063550f08ecdac1 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:44:12 2018 -0400 SOLR-11947: Fix orphaned files commit 42302073bf61fde134caeff71b6db3978e113b4d Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:27:26 2018 -0400 SOLR-11947: small change commit b16b1453c2e7d5083f588b4b874c918d521e9fe5 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:23:17 2018 -0400 SOLR-11947: proofing commit 57265ce4659a427c179e206b79d8fe05b01a5f93 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 24 14:41:48 2018 -0400 SOLR-11947: monte carlo WIP commit 04e8381f6b5b329c5fa17c1f31c2d848fe9cec2a Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 16:24:10 2018 -0400 SOLR-11947: probabiity WIP commit 4298a6d514e7e431e322a4f62c22c336430a89f1 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 13:07:05 2018 -0400 SOLR-11947: time series WIP commit 1a7654f9225948cd4adb3056bc2192cc0d24b3ee Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 11:32:53 2018 -0400 SOLR-11947: machine learning WIP commit fae0c3aa46e6f26fecb59077207982b2f584ec86 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 22:14:15 2018 -0400 SOLR-11947: machine learning WIP commit fb6a96b2bdc4bbc4c2b5b62b6e69cd561ef9e31b Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 14:36:08 2018 -0400 SOLR-11947: numerical analysis WIP commit a648ba939c90caf5db2a5b88023bd580d4d1e8af Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 12:27:33 2018 -0400 SOLR-11947: numerical analysis WIP commit ce8f1b710d414d8e3ff3c8676f64fc3017316a15 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 21 19:56:10 2018 -0400 SOLR-11947: numerical analysis WIP commit 5e25a4884341cdd84988e13250f255eb23d7fd50 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 22:01:59 2018 -0400 SOLR-11947: Curve fitting WIP commit f381414dc44ecfa781988c5ca75bfb1c80de6674 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 21:49:39 2018 -0400 SOLR-11947: Curve fitting WIP commit 4be725132215ed44cc84587bb0d11be216360b74 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 19 19:55:10 2018 -0400 SOLR-11947: Monte Carlo WIP commit d330b412e46be0ebf8d75e99295e3fe9f978c02c Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 18 22:00:55 2018 -0400 SOLR-11947: Probability WIP commit e3d6160c1fa650e054b9694c57d34b3950c80175 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 17 21:18:43 2018 -0400 SOLR-11947: More WIP commit 8484b0283f79825dee8eaee82604120d04511de4 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 16 15:03:06 2018 -0400 SOLR-11947: machine learning WIP commit 77ecfdc71d79ca8eded0355669310c6025c70d96 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 21:33:09 2018 -0400 SOLR-11947: machine learning WIP commit 7488caf5e54436a0e5fe85c0dda4ea31d8357600 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 19:08:50 2018 -0400 SOLR-11947: machine learning WIP commit 102ee2e1857e7d7f45d7f3195a0a4e91eacb766d Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 15:18:31 2018 -0400 SOLR-11947: machine learning WIP commit 0d5cd2b4a4fd012fe6d640a86733280702cf8673 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 21:49:15 2018 -0400 SOLR-11947: numerical analysis WIP commit 31eec30576479a9023c7b0e6ccb2d9f685e128a1 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 14:41:06 2018 -0400 SOLR-11947: numerical analysis WIP commit c6e324ac56ca6e9f229d6acb39fdcf60c3356230 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 13 15:16:26 2018 -0400 SOLR-11947: term vectors WIP commit 8c843999eabdb82665641caa9c21f07e95b70a86 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 18:03:53 2018 -0400 SOLR-11947: Add curve fitting to TOC commit 09be026f6ad400d965fd373403d7a2eb2fae0c90 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 15:36:05 2018 -0400 SOLR-11947: Text analysis WIP commit e48b4d69abadb603a90c052aa1e36dd60ae7fd33 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 11 18:29:20 2018 -0400 SOLR-11947: TOC changes commit f71ebc079713e16492ba45cedafc3b9512f6bae2 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 17:54:04 2018 -0500 SOLR-11947: WIP term vectors commit ebc6b3943a27454adaf1a2309b6720bb2ba63c8c Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 13:34:19 2018 -0500 SOLR-11947: WIP regression commit 44752b2d34f46bc7f5693839e42ab3cef9edc47c Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 22:40:40 2018 -0500 SOLR-11947: WIP for vectorization.adoc commit 43254fcb05386264a6d591b1fa2c2573dcc2d2a3 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 19:42:26 2018 -0500 SOLR-11947: Test local links commit b60df2000978f70720eb0a36543752fd3bf07d2c Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:41:17 2018 -0500 SOLR-11947: Update math-expressions TOC commit de068c3af8557d60de37cb29f3ed7da3f5442772 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:24:46 2018 -0500 SOLR-11947: Continued work on math expressions documentation. commit fe445f2c997ea825d1ae9b9912406521249befc0 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 20:22:33 2018 -0500 SOLR-12054: ebeAdd and ebeSubtract should support matrix operations commit 1f3ae745cc26453a34a64a4327ceac7cc91d23f5 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 13:24:54 2018 -0500 SOLR-11947: Initial commit for new math expression docs WIP
2018-03-26 12:48:33 -04:00
[source,text]
----
let(a=random(collection2, q="*:*", rows="5000", fl="filesize_d, service_d, response_d"),
b=col(a, filesize_d),
c=col(a, service_d),
d=col(a, response_d),
e=transpose(matrix(b, c)),
f=olsRegress(e, d),
g=predict(f, e),
h=ebeSubtract(d, g))
----
When this expression is sent to the `/stream` handler it responds with:
SOLR-11947: Squashed commit of the following ref guide changes: commit 61053f2fe373bff0b451f549e063550f08ecdac1 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:44:12 2018 -0400 SOLR-11947: Fix orphaned files commit 42302073bf61fde134caeff71b6db3978e113b4d Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:27:26 2018 -0400 SOLR-11947: small change commit b16b1453c2e7d5083f588b4b874c918d521e9fe5 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 26 12:23:17 2018 -0400 SOLR-11947: proofing commit 57265ce4659a427c179e206b79d8fe05b01a5f93 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 24 14:41:48 2018 -0400 SOLR-11947: monte carlo WIP commit 04e8381f6b5b329c5fa17c1f31c2d848fe9cec2a Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 16:24:10 2018 -0400 SOLR-11947: probabiity WIP commit 4298a6d514e7e431e322a4f62c22c336430a89f1 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 13:07:05 2018 -0400 SOLR-11947: time series WIP commit 1a7654f9225948cd4adb3056bc2192cc0d24b3ee Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 23 11:32:53 2018 -0400 SOLR-11947: machine learning WIP commit fae0c3aa46e6f26fecb59077207982b2f584ec86 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 22:14:15 2018 -0400 SOLR-11947: machine learning WIP commit fb6a96b2bdc4bbc4c2b5b62b6e69cd561ef9e31b Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 14:36:08 2018 -0400 SOLR-11947: numerical analysis WIP commit a648ba939c90caf5db2a5b88023bd580d4d1e8af Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 22 12:27:33 2018 -0400 SOLR-11947: numerical analysis WIP commit ce8f1b710d414d8e3ff3c8676f64fc3017316a15 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 21 19:56:10 2018 -0400 SOLR-11947: numerical analysis WIP commit 5e25a4884341cdd84988e13250f255eb23d7fd50 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 22:01:59 2018 -0400 SOLR-11947: Curve fitting WIP commit f381414dc44ecfa781988c5ca75bfb1c80de6674 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 20 21:49:39 2018 -0400 SOLR-11947: Curve fitting WIP commit 4be725132215ed44cc84587bb0d11be216360b74 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 19 19:55:10 2018 -0400 SOLR-11947: Monte Carlo WIP commit d330b412e46be0ebf8d75e99295e3fe9f978c02c Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 18 22:00:55 2018 -0400 SOLR-11947: Probability WIP commit e3d6160c1fa650e054b9694c57d34b3950c80175 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 17 21:18:43 2018 -0400 SOLR-11947: More WIP commit 8484b0283f79825dee8eaee82604120d04511de4 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 16 15:03:06 2018 -0400 SOLR-11947: machine learning WIP commit 77ecfdc71d79ca8eded0355669310c6025c70d96 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 21:33:09 2018 -0400 SOLR-11947: machine learning WIP commit 7488caf5e54436a0e5fe85c0dda4ea31d8357600 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 19:08:50 2018 -0400 SOLR-11947: machine learning WIP commit 102ee2e1857e7d7f45d7f3195a0a4e91eacb766d Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 15 15:18:31 2018 -0400 SOLR-11947: machine learning WIP commit 0d5cd2b4a4fd012fe6d640a86733280702cf8673 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 21:49:15 2018 -0400 SOLR-11947: numerical analysis WIP commit 31eec30576479a9023c7b0e6ccb2d9f685e128a1 Author: Joel Bernstein <jbernste@apache.org> Date: Wed Mar 14 14:41:06 2018 -0400 SOLR-11947: numerical analysis WIP commit c6e324ac56ca6e9f229d6acb39fdcf60c3356230 Author: Joel Bernstein <jbernste@apache.org> Date: Tue Mar 13 15:16:26 2018 -0400 SOLR-11947: term vectors WIP commit 8c843999eabdb82665641caa9c21f07e95b70a86 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 18:03:53 2018 -0400 SOLR-11947: Add curve fitting to TOC commit 09be026f6ad400d965fd373403d7a2eb2fae0c90 Author: Joel Bernstein <jbernste@apache.org> Date: Mon Mar 12 15:36:05 2018 -0400 SOLR-11947: Text analysis WIP commit e48b4d69abadb603a90c052aa1e36dd60ae7fd33 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 11 18:29:20 2018 -0400 SOLR-11947: TOC changes commit f71ebc079713e16492ba45cedafc3b9512f6bae2 Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 17:54:04 2018 -0500 SOLR-11947: WIP term vectors commit ebc6b3943a27454adaf1a2309b6720bb2ba63c8c Author: Joel Bernstein <jbernste@apache.org> Date: Sat Mar 10 13:34:19 2018 -0500 SOLR-11947: WIP regression commit 44752b2d34f46bc7f5693839e42ab3cef9edc47c Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 22:40:40 2018 -0500 SOLR-11947: WIP for vectorization.adoc commit 43254fcb05386264a6d591b1fa2c2573dcc2d2a3 Author: Joel Bernstein <jbernste@apache.org> Date: Fri Mar 9 19:42:26 2018 -0500 SOLR-11947: Test local links commit b60df2000978f70720eb0a36543752fd3bf07d2c Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:41:17 2018 -0500 SOLR-11947: Update math-expressions TOC commit de068c3af8557d60de37cb29f3ed7da3f5442772 Author: Joel Bernstein <jbernste@apache.org> Date: Thu Mar 8 21:24:46 2018 -0500 SOLR-11947: Continued work on math expressions documentation. commit fe445f2c997ea825d1ae9b9912406521249befc0 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 20:22:33 2018 -0500 SOLR-12054: ebeAdd and ebeSubtract should support matrix operations commit 1f3ae745cc26453a34a64a4327ceac7cc91d23f5 Author: Joel Bernstein <jbernste@apache.org> Date: Sun Mar 4 13:24:54 2018 -0500 SOLR-11947: Initial commit for new math expression docs WIP
2018-03-26 12:48:33 -04:00
[source,json]
----
{
"result-set": {
"docs": [
{
"e": [
1.1368683772161603e-13,
1.1368683772161603e-13,
0,
1.1368683772161603e-13,
0,
1.1368683772161603e-13,
0,
2.2737367544323206e-13,
1.1368683772161603e-13,
2.2737367544323206e-13,
1.1368683772161603e-13,
...
]
},
{
"EOF": true,
"RESPONSE_TIME": 113
}
]
}
}
----