-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[ML][Inference] Adding classification_weights to ensemble models #50874
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
53bb9ba
d735cad
b1ac999
2b1ed38
fdc40c7
7ee51d4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,21 +6,14 @@ | |
| package org.elasticsearch.xpack.core.ml.inference.trainedmodel; | ||
|
|
||
| import org.apache.lucene.util.Accountable; | ||
| import org.elasticsearch.common.Nullable; | ||
| import org.elasticsearch.common.io.stream.NamedWriteable; | ||
| import org.elasticsearch.xpack.core.ml.inference.results.InferenceResults; | ||
| import org.elasticsearch.xpack.core.ml.utils.NamedXContentObject; | ||
|
|
||
| import java.util.List; | ||
| import java.util.Map; | ||
|
|
||
| public interface TrainedModel extends NamedXContentObject, NamedWriteable, Accountable { | ||
|
|
||
| /** | ||
| * @return List of featureNames expected by the model. In the order that they are expected | ||
| */ | ||
| List<String> getFeatureNames(); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Both these methods are just not called anywhere? Is that why they are removed? If so 👍
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I am cleaning up the interface. I added a bunch of stuff that I thought "all" models would need, and it turns out that that is not the case. |
||
|
|
||
| /** | ||
| * Infer against the provided fields | ||
| * | ||
|
|
@@ -36,12 +29,6 @@ public interface TrainedModel extends NamedXContentObject, NamedWriteable, Accou | |
| */ | ||
| TargetType targetType(); | ||
|
|
||
| /** | ||
| * @return Ordinal encoded list of classification labels. | ||
| */ | ||
| @Nullable | ||
| List<String> classificationLabels(); | ||
|
|
||
| /** | ||
| * Runs validations against the model. | ||
| * | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.