Skip to content

Commit

Permalink
comment k_means
Browse files Browse the repository at this point in the history
  • Loading branch information
hucorz committed Oct 14, 2024
1 parent 3ac7354 commit d3e5b4d
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions python/xorbits/_mars/learn/cluster/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,32 @@
# See the License for the specific language governing permissions and
# limitations under the License.

try:
from ._kmeans import KMeans, k_means
# try:
# from ._kmeans import KMeans, k_means

def _install():
from ._k_means_common import KMeansInertia, KMeansRelocateEmptyClusters
from ._k_means_elkan_iter import (
KMeansElkanInitBounds,
KMeansElkanPostprocess,
KMeansElkanUpdate,
)
from ._k_means_init import KMeansPlusPlusInit
from ._k_means_lloyd_iter import KMeansLloydPostprocess, KMeansLloydUpdate
# def _install():
# from ._k_means_common import KMeansInertia, KMeansRelocateEmptyClusters
# from ._k_means_elkan_iter import (
# KMeansElkanInitBounds,
# KMeansElkanPostprocess,
# KMeansElkanUpdate,
# )
# from ._k_means_init import KMeansPlusPlusInit
# from ._k_means_lloyd_iter import KMeansLloydPostprocess, KMeansLloydUpdate

del (
KMeansInertia,
KMeansRelocateEmptyClusters,
KMeansElkanInitBounds,
KMeansElkanUpdate,
KMeansElkanPostprocess,
KMeansPlusPlusInit,
KMeansLloydUpdate,
KMeansLloydPostprocess,
)
# del (
# KMeansInertia,
# KMeansRelocateEmptyClusters,
# KMeansElkanInitBounds,
# KMeansElkanUpdate,
# KMeansElkanPostprocess,
# KMeansPlusPlusInit,
# KMeansLloydUpdate,
# KMeansLloydPostprocess,
# )

_install()
del _install
except ImportError:
KMeans = None
k_means = None
# _install()
# del _install
# except ImportError:
# KMeans = None
# k_means = None

0 comments on commit d3e5b4d

Please sign in to comment.