Skip to content

Commit 4cb2cb1

Browse files
authored
Update README.md (#821)
1 parent 8697bec commit 4cb2cb1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • samples/csharp/getting-started/Ranking_Web

samples/csharp/getting-started/Ranking_Web/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
|----------------|-------------------|-------------------------------|-------------|-----------|---------------------|---------------------------|-----------------------------|
55
| v1.4 | Dynamic API | Up-to-date | Console app | .csv file | Ranking search engine results | Ranking | LightGBM |
66

7-
This introductory sample shows how to use ML.NET to predict the the best order to display search engine results. In the world of machine learning, this type of prediction is known as ranking.
7+
This introductory sample shows how to use ML.NET to predict the best order to display search engine results. In the world of machine learning, this type of prediction is known as ranking.
88

99
## Problem
1010
The ability to perform ranking is a common problem faced by search engines since users expect query results to be ranked/sorted according to their relevance. This problem extends beyond the needs of search engines to include a variety of business scenarios where personalized sorting is key to the user experience. Here are a few specific examples:
@@ -107,7 +107,7 @@ IEstimator<ITransformer> dataPipeline = mlContext.Transforms.Concatenate(Feature
107107
.Append(mlContext.Transforms.Conversion.Hash(nameof(SearchResultData.GroupId), nameof(SearchResultData.GroupId), numberOfBits: 20));
108108

109109
// Set the LightGBM LambdaRank trainer.
110-
IEstimator<ITransformer> trainer = mlContext.Ranking.Trainers.LightGbm(labelColumnName: nameof(SearchResultData.Label), featureColumnName: FeaturesVectorName, rowGroupColumnName: nameof(SearchResultData.GroupId)); ;
110+
IEstimator<ITransformer> trainer = mlContext.Ranking.Trainers.LightGbm(labelColumnName: nameof(SearchResultData.Label), featureColumnName: FeaturesVectorName, rowGroupColumnName: nameof(SearchResultData.GroupId));
111111
IEstimator<ITransformer> trainerPipeline = dataPipeline.Append(trainer);
112112
`````
113113

0 commit comments

Comments
 (0)