Skip to content

Commit ee5ddb5

Browse files
authored
[7.8][DOCS] Adds Deploying the model section to regression and classification conceptual. (#1312)
1 parent b46d824 commit ee5ddb5

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

docs/en/stack/ml/df-analytics/dfa-classification.asciidoc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ can optionally include or exclude fields from the analysis. For more information
2727
about field selection, see the
2828
{ref}/explain-dfanalytics.html[explain data frame analytics API].
2929

30+
3031
[[dfa-classification-supervised]]
3132
== Training the {classification} model
3233

@@ -63,6 +64,7 @@ that is approximately balanced. That is to say, ideally your data set should
6364
have a similar number of data points for each class.
6465
////
6566

67+
6668
[[dfa-classification-algorithm]]
6769
=== {classification-cap} algorithms
6870

@@ -76,6 +78,17 @@ is an iteration of the last one, hence it improves the decision made by the
7678
previous tree.
7779
//end::classification-algorithms[]
7880

81+
82+
[[dfa-classification-deploy]]
83+
=== Deploying the model
84+
85+
The model that you created is stored as {es} documents in internal indices. In
86+
other words, the characteristics of your trained model are saved and ready to be
87+
deployed and used as functions. The <<ml-inference,{infer}>> feature enables you
88+
to use your model in a preprocessor of an ingest pipeline to make predictions
89+
about your data.
90+
91+
7992
[[dfa-classification-performance]]
8093
== {classification-cap} performance
8194

@@ -97,12 +110,14 @@ prepare your input data such that it has less classes. You can also remove the
97110
fields that are not relevant from the analysis by specifying `excludes` patterns
98111
in the `analyzed_fields` object when configuring the {dfanalytics-job}.
99112

113+
100114
[[dfa-classification-interpret]]
101115
== Interpreting {classification} results
102116

103117
The following sections help you understand and interpret the results of a
104118
{classanalysis}.
105119

120+
106121
[[dfa-classification-class-probability]]
107122
=== `class_probability`
108123

@@ -114,6 +129,7 @@ in your destination index. See the
114129
{ml-docs}/flightdata-classification.html#flightdata-classification-results[Viewing {classification} results]
115130
section in the {classification} example.
116131

132+
117133
[[dfa-classification-class-score]]
118134
=== `class_score`
119135

@@ -141,13 +157,15 @@ recall for `class 1`. Instead of this behavior, the default scheme of the
141157
actual `class 0` predicted `class 1` errors, or in other words, a slight
142158
degradation of the overall accuracy.
143159

160+
144161
[[dfa-classification-feature-importance]]
145162
=== {feat-imp-cap}
146163

147164
{feat-imp-cap} provides further information about the results of an analysis and
148165
helps to interpret the results in a more subtle way. If you want to learn more
149166
about {feat-imp}, <<ml-feature-importance,click here>>.
150167

168+
151169
[[dfa-classification-evaluation]]
152170
== Measuring model performance
153171

docs/en/stack/ml/df-analytics/dfa-regression.asciidoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ which floor it is, and whether the apartment has a riverside view or not, and so
3131
on. All of these factors can be considered _features_; they are measurable
3232
properties or characteristics of the phenomenon we're studying.
3333

34+
3435
[[dfa-regression-features]]
3536
== {feature-vars-cap}
3637

@@ -51,6 +52,7 @@ algorithm:
5152
apartment either has a riverside view or doesn't have one.
5253
Arrays are not supported.
5354

55+
5456
[[dfa-regression-supervised]]
5557
== Training the {regression} model
5658

@@ -72,6 +74,7 @@ predictions are combined.
7274
{regression-cap} works as a batch analysis. If new data comes into your index,
7375
you must restart the {dfanalytics-job}.
7476

77+
7578
[[dfa-regression-algorithm]]
7679
=== {regression-cap} algorithms
7780

@@ -81,6 +84,17 @@ called extreme gradient boost (XGboost) which combines decision trees with
8184
gradient boosting methodologies.
8285
//end::regression-algorithms[]
8386

87+
88+
[[dfa-regression-deploy]]
89+
=== Deploying the model
90+
91+
The model that you created is stored as {es} documents in internal indices. In
92+
other words, the characteristics of your trained model are saved and ready to be
93+
deployed and used as functions. The <<ml-inference,{infer}>> feature enables you
94+
to use your model in a preprocessor of an ingest pipeline to make predictions
95+
about your data.
96+
97+
8498
[[dfa-regression-lossfunction]]
8599
=== Loss functions for {regression} analyses
86100

0 commit comments

Comments
 (0)