Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 scikit 的新手。 我在 Scikit KMeans 中找不到使用预先计算的距离矩阵的示例。 现在有人可以阐明这一点,举个例子更好吗?
Scikit-learn 不允许您传入自定义(预先计算的)距离矩阵。它可以预先计算欧几里得距离矩阵以加快处理速度,但如果不破解源代码,就无法使用自己的距离矩阵。