ageron / ageron/handson-ml

ml2 end to end machine learining

未關閉
#591 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Jupyter Notebook
星號
25.6k
分支
12.7k
PR 合併指標
PR 指標待擷取

描述

Hello there,

I could not understand this piece of code.

def indices_of_top_k(arr, k):
return np.sort(np.argpartition(np.array(arr), -k)[-k:])

Can't we just use argsort() instead?

Thanks for your help.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。