Return-Path: X-Original-To: apmail-spark-reviews-archive@minotaur.apache.org Delivered-To: apmail-spark-reviews-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AD31419292 for ; Thu, 7 Apr 2016 07:01:47 +0000 (UTC) Received: (qmail 43779 invoked by uid 500); 7 Apr 2016 07:01:47 -0000 Delivered-To: apmail-spark-reviews-archive@spark.apache.org Received: (qmail 43752 invoked by uid 500); 7 Apr 2016 07:01:47 -0000 Mailing-List: contact reviews-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@spark.apache.org Received: (qmail 43737 invoked by uid 99); 7 Apr 2016 07:01:47 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Apr 2016 07:01:47 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 3A89AE050B; Thu, 7 Apr 2016 07:01:47 +0000 (UTC) From: MLnick To: reviews@spark.apache.org Reply-To: reviews@spark.apache.org References: In-Reply-To: Subject: [GitHub] spark pull request: [SPARK-14392][ML]CountVectorizer Estimator sho... Content-Type: text/plain Message-Id: <20160407070147.3A89AE050B@git1-us-west.apache.org> Date: Thu, 7 Apr 2016 07:01:47 +0000 (UTC) Github user MLnick commented on a diff in the pull request: https://github.com/apache/spark/pull/12200#discussion_r58826834 --- Diff: mllib/src/main/scala/org/apache/spark/ml/feature/CountVectorizer.scala --- @@ -127,6 +146,9 @@ class CountVectorizer(override val uid: String) /** @group setParam */ def setMinTF(value: Double): this.type = set(minTF, value) + /** @group setParam */ + def setBinary(value: Boolean): this.type = set(binary, value) + setDefault(vocabSize -> (1 << 18), minDF -> 1) --- End diff -- @wangmiao1981 please move the `setDefault` call here as per @BryanCutler's comment --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org For additional commands, e-mail: reviews-help@spark.apache.org