24 lines
498 B
Plaintext
24 lines
498 B
Plaintext
// This file is autogenerated, DO NOT EDIT
|
|
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
|
|
|
|
[source, js]
|
|
----
|
|
const response = await client.ml.putDataFrameAnalytics({
|
|
id: "loan_classification",
|
|
source: {
|
|
index: "loan-applicants",
|
|
},
|
|
dest: {
|
|
index: "loan-applicants-classified",
|
|
},
|
|
analysis: {
|
|
classification: {
|
|
dependent_variable: "label",
|
|
training_percent: 75,
|
|
num_top_classes: 2,
|
|
},
|
|
},
|
|
});
|
|
console.log(response);
|
|
----
|