view raw
omtcyf0 omtcyf0 - 8 months ago 48
Python Question

Importing hidden function from Python module

I'd like to import

function from scikit-learn/sklearn/cluster/ However, it's not listed in scikit-learn/blob/master/sklearn/cluster/ Is there any "nice" way to do that?


"Hidden" functions are a recommendation in Python, you can import them.


from scikit-learn.sklearn.cluster.k_means_ import _init_centroids