Skip to content

Commit

Permalink
Remove unused LearnToRankConfigUpdate class.
Browse files Browse the repository at this point in the history
  • Loading branch information
afoucret committed Nov 24, 2023
1 parent 086bd67 commit 6d1bf00
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 390 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
import org.elasticsearch.plugins.spi.NamedXContentProvider;
import org.elasticsearch.xcontent.NamedXContentRegistry;
import org.elasticsearch.xpack.core.ml.inference.trainedmodel.InferenceConfig;
import org.elasticsearch.xpack.core.ml.inference.trainedmodel.InferenceConfigUpdate;
import org.elasticsearch.xpack.core.ml.inference.trainedmodel.LearnToRankConfig;
import org.elasticsearch.xpack.core.ml.inference.trainedmodel.LearnToRankConfigUpdate;
import org.elasticsearch.xpack.core.ml.inference.trainedmodel.LenientlyParsedInferenceConfig;
import org.elasticsearch.xpack.core.ml.inference.trainedmodel.StrictlyParsedInferenceConfig;
import org.elasticsearch.xpack.core.ml.inference.trainedmodel.ltr.LearnToRankFeatureExtractorBuilder;
Expand Down Expand Up @@ -46,14 +44,6 @@ public List<NamedXContentRegistry.Entry> getNamedXContentParsers() {
LearnToRankConfig::fromXContentStrict
)
);
// Inference Config Update
namedXContent.add(
new NamedXContentRegistry.Entry(
InferenceConfigUpdate.class,
LearnToRankConfigUpdate.NAME,
LearnToRankConfigUpdate::fromXContentStrict
)
);
// LTR extractors
namedXContent.add(
new NamedXContentRegistry.Entry(
Expand All @@ -71,14 +61,6 @@ public List<NamedWriteableRegistry.Entry> getNamedWriteables() {
namedWriteables.add(
new NamedWriteableRegistry.Entry(InferenceConfig.class, LearnToRankConfig.NAME.getPreferredName(), LearnToRankConfig::new)
);
// Inference config update
namedWriteables.add(
new NamedWriteableRegistry.Entry(
InferenceConfigUpdate.class,
LearnToRankConfigUpdate.NAME.getPreferredName(),
LearnToRankConfigUpdate::new
)
);
// LTR Extractors
namedWriteables.add(
new NamedWriteableRegistry.Entry(
Expand Down
Loading

0 comments on commit 6d1bf00

Please sign in to comment.