parent
a1367ea1f8
commit
2d0cd2817e
@ -70,7 +70,7 @@ Please note that, as of writing, there's no learning-to-rank interface in scikit
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
df = pd.DataFrame(X, columns=[str(i) for i in range(X.shape[1]))
|
||||
df = pd.DataFrame(X, columns=[str(i) for i in range(X.shape[1])])
|
||||
df["qid"] = qid
|
||||
ranker.fit(df, y) # No need to pass qid as a separate argument
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user