Skip to content

Commit 9014b2a

Browse files
authored
[ML][6.6] Deemphasizing X-Pack (#313)
ML is now a feature of the Elastic Stack Backports #312
1 parent 1cab0c0 commit 9014b2a

File tree

7 files changed

+22
-21
lines changed

7 files changed

+22
-21
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contributing to X-Pack Machine Learning Core
1+
# Contributing to Elasticsearch Machine Learning Core
22

33
We love to receive contributions from our community — you! There are many ways to contribute, from writing tutorials or blog posts, improving the documentation, submitting bug reports and feature requests or writing code which can be incorporated into the Elastic Stack itself.
44

README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# Machine Learning for the Elastic Stack
22

3-
<https://www.elastic.co/products/x-pack>
3+
<https://www.elastic.co/products/stack/machine-learning>
44

5-
The ml-cpp repo is a part of Machine Learning for X-Pack and is available with
6-
either a trial or platinum license for the
5+
The ml-cpp repo is a part of Machine Learning for the Elastic Stack, which is
6+
available with either a trial or platinum license for the
77
[Elastic Stack](https://www.elastic.co/products).
88

99
This repo only contains the the C++ code that implements the core analytics for
1010
machine learning.
1111

12-
Code for integrating into the Elastic Stack and source for its documentation can
13-
be found in the main
12+
Code for integrating into Elasticsearch and source for its documentation can be
13+
found in the main
1414
[elasticsearch repo](https://github.com/elastic/elasticsearch).
1515

1616
## Elastic License Functionality
@@ -23,24 +23,25 @@ subject to the Elastic License are in the [3rd_party](3rd_party) and
2323

2424
## Getting Started
2525

26-
Before starting with Machine Learning for X-Pack, it's a good idea to get some
27-
experience with the
26+
Before starting with Machine Learning, it's a good idea to get some experience
27+
with the rest of the
2828
[Elastic Stack](https://www.elastic.co/guide/en/elastic-stack/current/index.html)
2929
first.
3030

3131
To get started with Machine Learning please have a look at
32-
<https://www.elastic.co/guide/en/x-pack/current/ml-getting-started.html>.
32+
<https://www.elastic.co/guide/en/elastic-stack-overview/current/ml-getting-started.html>.
3333

3434
Full documentation of Machine Learning can be found at
35-
<https://www.elastic.co/guide/en/x-pack/current/xpack-ml.html>.
35+
<https://www.elastic.co/guide/en/elastic-stack-overview/current/xpack-ml.html>.
3636

3737
## Questions/Bug Reports/Help
3838

3939
We are happy to help and to make sure your questions can be answered by the
4040
right people, please follow the guidelines below:
4141

4242
* If you have a general question about functionality please use our
43-
[discuss](https://discuss.elastic.co/c/x-pack) forums.
43+
[discuss](https://discuss.elastic.co/tags/c/elasticsearch/machine-learning)
44+
forums.
4445
* If you have a support contract please use your dedicated support channel.
4546
* For questions regarding subscriptions please
4647
[contact](https://www.elastic.co/subscriptions#request-info) us.

bin/autodetect/Main.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ int main(int argc, char** argv) {
167167
&ioMgr]() -> ml::core::CDataSearcher* {
168168
if (ioMgr.restoreStream()) {
169169
// Check whether state is restored from a file, if so we assume that this is a debugging case
170-
// and therefore does not originate from X-Pack.
170+
// and therefore does not originate from the ML Java code.
171171
if (!isRestoreFileNamedPipe) {
172172
// apply a filter to overcome differences in the way persistence vs. restore works
173173
auto strm = std::make_shared<boost::iostreams::filtering_istream>();

bin/categorize/Main.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ int main(int argc, char** argv) {
122122
&ioMgr]() -> ml::core::CDataSearcher* {
123123
if (ioMgr.restoreStream()) {
124124
// Check whether state is restored from a file, if so we assume that this is a debugging case
125-
// and therefore does not originate from X-Pack.
125+
// and therefore does not originate from the ML Java code.
126126
if (!isRestoreFileNamedPipe) {
127127
// apply a filter to overcome differences in the way persistence vs. restore works
128128
auto strm = std::make_shared<boost::iostreams::filtering_istream>();

include/api/CForecastRunner.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ class API_EXPORT CForecastRunner final : private core::CNonCopyable {
7676
//! max memory allowed to use for forecast models persisting to disk
7777
static const size_t MAX_FORECAST_MODEL_PERSISTANCE_MEMORY = 524288000ull; // 500MB
7878

79-
//! Note: This value is lower than on X-pack side to prevent side-effects,
80-
//! if you change this value also change the limit on X-pack side.
81-
//! The purpose of this value is to guard the rest of the system regarding
82-
//! an out of disk space
79+
//! Note: This value is lower than in the ML Java code to prevent side-effects.
80+
//! If you change this value also change the limit in the ML Java code.
81+
//! The purpose of this value is to guard the rest of the system against
82+
//! running out of disk space.
8383
//! minimum disk space required for disk persistence
8484
static const size_t MIN_FORECAST_AVAILABLE_DISK_SPACE = 4294967296ull; // 4GB
8585

lib/api/CForecastRunner.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ void CForecastRunner::forecastWorker() {
225225
boost::system::error_code errorCode;
226226
boost::filesystem::remove_all(temporaryFolder, errorCode);
227227
if (errorCode) {
228-
// not an error: there is also cleanup code on X-pack side
228+
// not an error: there is also cleanup code on the Java side
229229
LOG_WARN(<< "Failed to cleanup temporary data from: "
230230
<< forecastJob.s_TemporaryFolder << " error "
231231
<< errorCode.message());
@@ -424,7 +424,7 @@ bool CForecastRunner::parseAndValidateForecastRequest(const std::string& control
424424
// use -1 as default to allow 0 as 'never expires'
425425
expiresIn = properties.get<core_t::TTime>("expires_in", -1l);
426426

427-
// note: this is not exposed on x-pack side
427+
// note: this is not exposed on the Java side
428428
forecastJob.s_BoundsPercentile = properties.get<double>("boundspercentile", 95.0);
429429
} catch (const std::exception& e) {
430430
LOG_ERROR(<< ERROR_FORECAST_REQUEST_FAILED_TO_PARSE << e.what());

mk/make_rc_defines.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if git -c core.fileMode=false diff-index --quiet HEAD -- ; then
1313
ML_FILEFLAGS=0
1414
else
1515
ML_FILEFLAGS=VS_FF_PRIVATEBUILD
16-
fi
16+
fi
1717
echo $1 | grep '\.dll$' > /dev/null
1818
if [ $? -eq 0 ] ; then
1919
ML_FILETYPE=VFT_DLL
@@ -36,6 +36,6 @@ echo -DML_USER=\'\"$ML_USER\"\' \
3636
-DML_NAME=\'\"$ML_NAME\"\' \
3737
-DML_YEAR=\'\"$ML_YEAR\"\' \
3838
-DML_ICON=\'\"$ML_ICON\"\' \
39-
-DRIGHT_CLICK_PRODUCT_NAME=\'\"Elastic X-Pack\"\' \
39+
-DRIGHT_CLICK_PRODUCT_NAME=\'\"Elasticsearch machine learning\"\' \
4040
-N
4141

0 commit comments

Comments
 (0)