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

  • SEARCH
  • Home
  • 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 8867627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:05:37+00:00 2026-06-14T17:05:37+00:00

I am using Weka’s SimpleKMeans function to cluster 96000 terms(as word). Weka takes the

  • 0

I am using Weka’s SimpleKMeans function to cluster 96000 terms(as word). Weka takes the number of desired cluster number as parameter. So, it gives 2 to num. of clusters default.
The dataset I have is 96000×641000 sparse dataset. At the beginning I gave thu cluster number 10000 but I think it is too much for recommendation process.
Is there an approach to calculate #of clusters respect to an algorithm or find the ideal #of clusters?

  • 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-14T17:05:38+00:00Added an answer on June 14, 2026 at 5:05 pm

    K-means is not really designed for sparse data. Plus, it is designed for euclidean distance, and you should be aware that this is not a good choice for high-dimensional data.

    Maybe the simplest argument is as follows: The mean of a subset will likely no longer be sparse, so it will be anomalous itself, and closer to the center than the actual data instances. This however means that the means of different clusters will likely be closer to each other than the actual instances to their means, which makes the result highly dubious.

    You should at least try k-medians instead (but it is a lot slower), or other measures to preserve sparsity for the means, too. Sure: k-means does cluster the data. The question is, how valid the result is.

    See also:

    k-means clustering in R on very large, sparse matrix?

    Clustering of sparse matrix in python and scipy

    Distance Metric for clustering elements in a sparse matrix

    clustering on very large sparse matrix?

    K-means clustering algorithm run time and complexity

    How to do K-means with normalized TF-IDF

    Mahout binary data clustering

    For a number of failure stories (= questions without a good answer) of running k-means on high-dimensional sparse / binary data.

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

Sidebar

Related Questions

I am currently writing a program using Weka that builds a model (using one
I am using an open source java library called Weka in an Eclipse Indigo
I'm generating a power model using Multilayer Perceptron on Weka which is a statistic
I am trying to open Weka from cmd line, using C#. This is the
Hi, I am using weka.classifier.meta. Vote. I am combining three classifiers, one of them
I'm using the explorer feature of Weka for classification. So I have my .arff
I am using Majority voting combination rule in weka. There are 4 classifiers in
I'm trying to do a document classification using Weka java API. Here is my
I'm trying to create a new string Attribute using Weka's Java API... Reading through
I'm trying to classify some data using SVM classification, implemented in weka library. My

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.