omtcyf0 omtcyf0 - 1 year ago 114
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?

Answer Source

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


from scikit-learn.sklearn.cluster.k_means_ import _init_centroids
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download