Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8819643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:24:46+00:00 2026-06-14T05:24:46+00:00

I write a Java code to cluster a huge dataset which has about 100000rowsx100000columns(sparse

  • 0

I write a Java code to cluster a huge dataset which has about 100000rowsx100000columns(sparse rows). But dataset is created with sparse instances, so it has the structure of a sparse matrix.

I can use 3 clustering functions in my code:

JavaML: Kmeans, Weka: SimpleKmeans, Weka: Xmeans

I have run Weka’s SimpleKmeans function but it is working about 9 hours and clustering process in not over yet. What is the estimated running time of these functions and which one is the most suitable for this dataset best?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T05:24:47+00:00Added an answer on June 14, 2026 at 5:24 am

    K-means is not appropriate for sparse data.

    The reason is that the means will not be sparse, and as such, the means will actually be anomalous for your data set. Even worse: the distance between the means will likely be smaller than the distances from the instances to the means.

    You will get some result at some point – Weka is horribly slow, you might want to look for something faster; for this data set size you might want to go for Mahout which is distributed (but judging from the questions here, has other issues). IIRC it also has an acceleration trick for sparse vectors, by precomputing the euclidean length – but nevertheless, the result will likely be not meaningful.

    The problem is that K-means looks for an optimal Voronoi cell partitioning. But your data set, when sparse, will likely not have a natural Voronoi cell structure. So you spend a lot of time of finding an optimal structure that your data cannot have.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to write some plugin to analysis Java source code. Which part of
How Can i write a java code which scan a document from scanner and
I want to write a Java code, which will send a simple text file
I want to write Java code to work with a database, no matter which
I use Eclipse to write Java code and use DropBox to sync my code
I want to know if it is possible to write java code in android
I want to write a java code that executes some Linux command: String cmd
I have a problem; I want to write a java code for sending an
I'm trying to write a simple code in Java to connect to a memcache
I want to write a server side code in Java to access DB. A

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.