You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by er...@apache.org on 2020/03/25 16:10:57 UTC

[commons-math] branch master updated (6b03958 -> 7ae8c7a)

This is an automated email from the ASF dual-hosted git repository.

erans pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git.


    from 6b03958  Class can be "static" (improves encapsulation).
     new 0122733  MATH-1509: Add missing documentation to class ImprovementEvaluator
     new ea87327  Javadoc.
     new 8dda8d8  MATH-1524: Add package-info.java file in package initialization.
     new 7ae8c7a  Javadoc.

The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../commons/math4/ml/clustering/MiniBatchKMeansClusterer.java | 11 ++++++++---
 .../{evaluation => initialization}/package-info.java          |  8 ++++----
 2 files changed, 12 insertions(+), 7 deletions(-)
 copy src/main/java/org/apache/commons/math4/ml/clustering/{evaluation => initialization}/package-info.java (76%)


[commons-math] 01/04: MATH-1509: Add missing documentation to class ImprovementEvaluator

Posted by er...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

erans pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit 01227337f8d6645550a9559bef1a57297feab7b6
Author: CT <ch...@qq.com>
AuthorDate: Wed Mar 25 22:43:06 2020 +0800

    MATH-1509: Add missing documentation to class ImprovementEvaluator
---
 .../commons/math4/ml/clustering/MiniBatchKMeansClusterer.java    | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/commons/math4/ml/clustering/MiniBatchKMeansClusterer.java b/src/main/java/org/apache/commons/math4/ml/clustering/MiniBatchKMeansClusterer.java
index 701392b..81ce54a 100644
--- a/src/main/java/org/apache/commons/math4/ml/clustering/MiniBatchKMeansClusterer.java
+++ b/src/main/java/org/apache/commons/math4/ml/clustering/MiniBatchKMeansClusterer.java
@@ -244,11 +244,14 @@ public class MiniBatchKMeansClusterer<T extends Clusterable>
         private final int batchSize;
         /** Maximum number of iterations during which no improvement is occuring. */
         private final int maxNoImprovementTimes;
-        /** Missing doc. */
+        /** Exponentially Weighted Average of the squared
+         * diff to monitor the convergence while discarding
+         * minibatch-local stochastic variability:
+         * <a href="https://en.wikipedia.org/wiki/Moving_average">Moving_average</a>. */
         private double ewaInertia = Double.NaN;
-        /** Missing doc. */
+        /** Minimum value of ewaInertia during previous evaluators. */
         private double ewaInertiaMin = Double.POSITIVE_INFINITY;
-        /** Missing doc. */
+        /** Continuous ewaInertia has no improvement times. */
         private int noImprovementTimes = 0;
 
         /**


[commons-math] 02/04: Javadoc.

Posted by er...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

erans pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit ea873277c1c3e38b3ab6411b460616cd1700317a
Author: Gilles Sadowski <gi...@gmail.com>
AuthorDate: Wed Mar 25 16:58:15 2020 +0100

    Javadoc.
---
 .../math4/ml/clustering/MiniBatchKMeansClusterer.java        | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/main/java/org/apache/commons/math4/ml/clustering/MiniBatchKMeansClusterer.java b/src/main/java/org/apache/commons/math4/ml/clustering/MiniBatchKMeansClusterer.java
index 81ce54a..e131e0a 100644
--- a/src/main/java/org/apache/commons/math4/ml/clustering/MiniBatchKMeansClusterer.java
+++ b/src/main/java/org/apache/commons/math4/ml/clustering/MiniBatchKMeansClusterer.java
@@ -244,14 +244,16 @@ public class MiniBatchKMeansClusterer<T extends Clusterable>
         private final int batchSize;
         /** Maximum number of iterations during which no improvement is occuring. */
         private final int maxNoImprovementTimes;
-        /** Exponentially Weighted Average of the squared
+        /**
+         * <a href="https://en.wikipedia.org/wiki/Moving_average">
+         * Exponentially Weighted Average</a> of the squared
          * diff to monitor the convergence while discarding
-         * minibatch-local stochastic variability:
-         * <a href="https://en.wikipedia.org/wiki/Moving_average">Moving_average</a>. */
+         * minibatch-local stochastic variability.
+         */
         private double ewaInertia = Double.NaN;
-        /** Minimum value of ewaInertia during previous evaluators. */
+        /** Minimum value of {@link #ewaInertia} during iteration. */
         private double ewaInertiaMin = Double.POSITIVE_INFINITY;
-        /** Continuous ewaInertia has no improvement times. */
+        /** Number of iteration during which {@link #ewaInertia} did not improve. */
         private int noImprovementTimes = 0;
 
         /**


[commons-math] 03/04: MATH-1524: Add package-info.java file in package initialization.

Posted by er...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

erans pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit 8dda8d86797de6730e37c089cb36201bab70139b
Author: CT <ch...@qq.com>
AuthorDate: Wed Mar 25 22:26:43 2020 +0800

    MATH-1524: Add package-info.java file in package initialization.
---
 .../ml/clustering/initialization/package-info.java | 24 ++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/src/main/java/org/apache/commons/math4/ml/clustering/initialization/package-info.java b/src/main/java/org/apache/commons/math4/ml/clustering/initialization/package-info.java
new file mode 100644
index 0000000..4920946
--- /dev/null
+++ b/src/main/java/org/apache/commons/math4/ml/clustering/initialization/package-info.java
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+/**
+ * Clusters Initialize methods.
+ *
+ * All centroid cluster initializer should implement the
+ * {@link org.apache.commons.math4.ml.clustering.initialization.CentroidInitializer}
+ * interface.
+ */
+package org.apache.commons.math4.ml.clustering.initialization;


[commons-math] 04/04: Javadoc.

Posted by er...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

erans pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git

commit 7ae8c7ac46f979891af3cca3d1c52ca984125002
Author: Gilles Sadowski <gi...@gmail.com>
AuthorDate: Wed Mar 25 17:07:24 2020 +0100

    Javadoc.
---
 .../commons/math4/ml/clustering/initialization/package-info.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/commons/math4/ml/clustering/initialization/package-info.java b/src/main/java/org/apache/commons/math4/ml/clustering/initialization/package-info.java
index 4920946..3c335ae 100644
--- a/src/main/java/org/apache/commons/math4/ml/clustering/initialization/package-info.java
+++ b/src/main/java/org/apache/commons/math4/ml/clustering/initialization/package-info.java
@@ -15,10 +15,10 @@
  * limitations under the License.
  */
 /**
- * Clusters Initialize methods.
+ * Clusters initialization methods.
  *
- * All centroid cluster initializer should implement the
- * {@link org.apache.commons.math4.ml.clustering.initialization.CentroidInitializer}
+ * Centroid cluster initializers should implement the
+ * {@link org.apache.commons.math4.ml.clustering.initialization.CentroidInitializer CentroidInitializer}
  * interface.
  */
 package org.apache.commons.math4.ml.clustering.initialization;