Files
elasticsearch-js/docs/doc_examples/4fb0629146ca78b85e823edd405497bb.asciidoc
2024-07-29 17:10:05 -05:00

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);
----