From issues-return-69110-archive-asf-public=cust-asf.ponee.io@commons.apache.org Fri Aug 10 20:40:04 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 2A69718077A for ; Fri, 10 Aug 2018 20:40:04 +0200 (CEST) Received: (qmail 16154 invoked by uid 500); 10 Aug 2018 18:40:03 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 16024 invoked by uid 99); 10 Aug 2018 18:40:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Aug 2018 18:40:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id DB893D05B0 for ; Fri, 10 Aug 2018 18:40:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 9xGrZOZHwii8 for ; Fri, 10 Aug 2018 18:40:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 2130E5F382 for ; Fri, 10 Aug 2018 18:40:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 66E43E2618 for ; Fri, 10 Aug 2018 18:40:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 9BF5923FA7 for ; Fri, 10 Aug 2018 18:40:00 +0000 (UTC) Date: Fri, 10 Aug 2018 18:40:00 +0000 (UTC) From: "Gilles (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MATH-1465) Increase the initial sampling speed of KMeansPlusPlusClusterer for large k MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MATH-1465?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16576= 710#comment-16576710 ]=20 Gilles commented on MATH-1465: ------------------------------ If you intend to implement this, don't forget to use the [development versi= on of the code (git "master" branch)|https://git1-us-west.apache.org/repos/= asf?p=3Dcommons-math.git;a=3Dtree]. > Increase the initial sampling speed of KMeansPlusPlusClusterer for large = k > -------------------------------------------------------------------------= - > > Key: MATH-1465 > URL: https://issues.apache.org/jira/browse/MATH-1465 > Project: Commons Math > Issue Type: Improvement > Affects Versions: 3.6.1 > Reporter: yu zhang > Priority: Minor > Labels: performance > Original Estimate: 1,440h > Remaining Estimate: 1,440h > > As the major difference of KMeans++ to classic Kmeans, an initial distanc= e square sampling process is executed, the function is named "chooseInitial= Centers" in the current implementation. The time complexity is O(dkn), wher= e d is the dimension, k is the cluster number and n is the number of points= . > In paper "_Ackermann, Lammersen, M=C3=A4rtens, Raupach, Sohler, Swierkot.= StreamKM++: A Clustering Algorithm for Data Streams. In Proceedings of the= 12th Workshop on Algorithm Engineering and Experiments (ALENEX 2010)_", th= e authors introduced a data structure named "coreset tree" which can reduce= the complexity of the initial sampling to O(dn log k). This is useful in t= he scenario when value of k is large, say 1000, then the run speed of the a= lgorithm will be much faster. -- This message was sent by Atlassian JIRA (v7.6.3#76005)