|
Medial Code Documentation
|
Public Member Functions | |
| None | __init__ (self, float eta) |
| npt.NDArray[np.int32] | sample_clicks_for_query (self, npt.NDArray[np.int32] labels, npt.NDArray[np.int64] position) |
Data Fields | |
| click_prob | |
| exam_prob | |
Simulate click data with position bias model. There are other models available in `ULTRA <https://github.com/ULTR-Community/ULTRA.git>`_ like the cascading model. References ---------- Unbiased LambdaMART: An Unbiased Pairwise Learning-to-Rank Algorithm
| npt.NDArray[np.int32] xgboost.testing.data.PBM.sample_clicks_for_query | ( | self, | |
| npt.NDArray[np.int32] | labels, | ||
| npt.NDArray[np.int64] | position | ||
| ) |
Sample clicks for one query based on input relevance degree and position.
Parameters
----------
labels :
relevance_degree