[03/50] [abbrv] ignite git commit: IGNITE-8292: Broken yardstick compilation.

2018-04-23 Thread agoncharuk
IGNITE-8292: Broken yardstick compilation.

this closes #3840


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/3cebf912
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/3cebf912
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/3cebf912

Branch: refs/heads/ignite-6083
Commit: 3cebf9123ed1161822ece503169b361f49293358
Parents: 8c80dce
Author: YuriBabak 
Authored: Tue Apr 17 11:54:41 2018 +0300
Committer: Yury Babak 
Committed: Tue Apr 17 11:54:41 2018 +0300

--
 ...niteKMeansDistributedClustererBenchmark.java | 75 
 .../IgniteKMeansLocalClustererBenchmark.java| 50 -
 .../yardstick/ml/clustering/package-info.java   | 22 --
 3 files changed, 147 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/ignite/blob/3cebf912/modules/yardstick/src/main/java/org/apache/ignite/yardstick/ml/clustering/IgniteKMeansDistributedClustererBenchmark.java
--
diff --git 
a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/ml/clustering/IgniteKMeansDistributedClustererBenchmark.java
 
b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/ml/clustering/IgniteKMeansDistributedClustererBenchmark.java
deleted file mode 100644
index de928e8..000
--- 
a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/ml/clustering/IgniteKMeansDistributedClustererBenchmark.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * 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.
- */
-
-package org.apache.ignite.yardstick.ml.clustering;
-
-import java.util.Map;
-import org.apache.ignite.Ignite;
-import org.apache.ignite.ml.clustering.KMeansDistributedClusterer;
-import org.apache.ignite.ml.math.StorageConstants;
-import org.apache.ignite.ml.math.distances.EuclideanDistance;
-import org.apache.ignite.ml.math.impls.matrix.SparseDistributedMatrix;
-import org.apache.ignite.resources.IgniteInstanceResource;
-import org.apache.ignite.thread.IgniteThread;
-import org.apache.ignite.yardstick.IgniteAbstractBenchmark;
-import org.apache.ignite.yardstick.ml.DataChanger;
-
-/**
- * Ignite benchmark that performs ML Grid operations.
- */
-@SuppressWarnings("unused")
-public class IgniteKMeansDistributedClustererBenchmark extends 
IgniteAbstractBenchmark {
-/** */
-@IgniteInstanceResource
-private Ignite ignite;
-
-/** {@inheritDoc} */
-@Override public boolean test(Map ctx) throws Exception {
-final DataChanger.Scale scale = new DataChanger.Scale();
-
-// Create IgniteThread, we must work with SparseDistributedMatrix 
inside IgniteThread
-// because we create ignite cache internally.
-IgniteThread igniteThread = new 
IgniteThread(ignite.configuration().getIgniteInstanceName(),
-this.getClass().getSimpleName(), new Runnable() {
-/** {@inheritDoc} */
-@Override public void run() {
-// IMPL NOTE originally taken from 
KMeansDistributedClustererTest
-KMeansDistributedClusterer clusterer = new 
KMeansDistributedClusterer(
-new EuclideanDistance(), 1, 1, 1L);
-
-double[] v1 = scale.mutate(new double[] {1959, 325100});
-double[] v2 = scale.mutate(new double[] {1960, 373200});
-
-SparseDistributedMatrix points = new SparseDistributedMatrix(
-2, 2, StorageConstants.ROW_STORAGE_MODE, 
StorageConstants.RANDOM_ACCESS_MODE);
-
-points.setRow(0, v1);
-points.setRow(1, v2);
-
-clusterer.cluster(points, 1);
-
-points.destroy();
-}
-});
-
-igniteThread.start();
-
-igniteThread.join();
-
-return true;
-}
-}

http://git-wip-us.apache.org/repos/asf/ignite/blob/3cebf912/modules/yardstick/src/main/java/org/apache/ignite/yardstick/ml/clustering/IgniteKMeansLocalClustererBenchmark.java

[14/23] ignite git commit: IGNITE-8292: Broken yardstick compilation.

2018-04-17 Thread agoncharuk
IGNITE-8292: Broken yardstick compilation.

this closes #3840


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/3cebf912
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/3cebf912
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/3cebf912

Branch: refs/heads/ignite-7708
Commit: 3cebf9123ed1161822ece503169b361f49293358
Parents: 8c80dce
Author: YuriBabak 
Authored: Tue Apr 17 11:54:41 2018 +0300
Committer: Yury Babak 
Committed: Tue Apr 17 11:54:41 2018 +0300

--
 ...niteKMeansDistributedClustererBenchmark.java | 75 
 .../IgniteKMeansLocalClustererBenchmark.java| 50 -
 .../yardstick/ml/clustering/package-info.java   | 22 --
 3 files changed, 147 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/ignite/blob/3cebf912/modules/yardstick/src/main/java/org/apache/ignite/yardstick/ml/clustering/IgniteKMeansDistributedClustererBenchmark.java
--
diff --git 
a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/ml/clustering/IgniteKMeansDistributedClustererBenchmark.java
 
b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/ml/clustering/IgniteKMeansDistributedClustererBenchmark.java
deleted file mode 100644
index de928e8..000
--- 
a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/ml/clustering/IgniteKMeansDistributedClustererBenchmark.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * 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.
- */
-
-package org.apache.ignite.yardstick.ml.clustering;
-
-import java.util.Map;
-import org.apache.ignite.Ignite;
-import org.apache.ignite.ml.clustering.KMeansDistributedClusterer;
-import org.apache.ignite.ml.math.StorageConstants;
-import org.apache.ignite.ml.math.distances.EuclideanDistance;
-import org.apache.ignite.ml.math.impls.matrix.SparseDistributedMatrix;
-import org.apache.ignite.resources.IgniteInstanceResource;
-import org.apache.ignite.thread.IgniteThread;
-import org.apache.ignite.yardstick.IgniteAbstractBenchmark;
-import org.apache.ignite.yardstick.ml.DataChanger;
-
-/**
- * Ignite benchmark that performs ML Grid operations.
- */
-@SuppressWarnings("unused")
-public class IgniteKMeansDistributedClustererBenchmark extends 
IgniteAbstractBenchmark {
-/** */
-@IgniteInstanceResource
-private Ignite ignite;
-
-/** {@inheritDoc} */
-@Override public boolean test(Map ctx) throws Exception {
-final DataChanger.Scale scale = new DataChanger.Scale();
-
-// Create IgniteThread, we must work with SparseDistributedMatrix 
inside IgniteThread
-// because we create ignite cache internally.
-IgniteThread igniteThread = new 
IgniteThread(ignite.configuration().getIgniteInstanceName(),
-this.getClass().getSimpleName(), new Runnable() {
-/** {@inheritDoc} */
-@Override public void run() {
-// IMPL NOTE originally taken from 
KMeansDistributedClustererTest
-KMeansDistributedClusterer clusterer = new 
KMeansDistributedClusterer(
-new EuclideanDistance(), 1, 1, 1L);
-
-double[] v1 = scale.mutate(new double[] {1959, 325100});
-double[] v2 = scale.mutate(new double[] {1960, 373200});
-
-SparseDistributedMatrix points = new SparseDistributedMatrix(
-2, 2, StorageConstants.ROW_STORAGE_MODE, 
StorageConstants.RANDOM_ACCESS_MODE);
-
-points.setRow(0, v1);
-points.setRow(1, v2);
-
-clusterer.cluster(points, 1);
-
-points.destroy();
-}
-});
-
-igniteThread.start();
-
-igniteThread.join();
-
-return true;
-}
-}

http://git-wip-us.apache.org/repos/asf/ignite/blob/3cebf912/modules/yardstick/src/main/java/org/apache/ignite/yardstick/ml/clustering/IgniteKMeansLocalClustererBenchmark.java

[12/23] ignite git commit: IGNITE-8292: Broken yardstick compilation.

2018-04-17 Thread agoncharuk
IGNITE-8292: Broken yardstick compilation.

this closes #3838


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/e76fcb4a
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/e76fcb4a
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/e76fcb4a

Branch: refs/heads/ignite-7708
Commit: e76fcb4a538aece58498f43d7e82b2054ca96c51
Parents: 5614621
Author: YuriBabak 
Authored: Tue Apr 17 11:22:14 2018 +0300
Committer: Yury Babak 
Committed: Tue Apr 17 11:22:14 2018 +0300

--
 ...uzzyCMeansDistributedClustererBenchmark.java | 130 ---
 ...gniteFuzzyCMeansLocalClustererBenchmark.java |  93 -
 2 files changed, 223 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/ignite/blob/e76fcb4a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/ml/clustering/IgniteFuzzyCMeansDistributedClustererBenchmark.java
--
diff --git 
a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/ml/clustering/IgniteFuzzyCMeansDistributedClustererBenchmark.java
 
b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/ml/clustering/IgniteFuzzyCMeansDistributedClustererBenchmark.java
deleted file mode 100644
index e356746..000
--- 
a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/ml/clustering/IgniteFuzzyCMeansDistributedClustererBenchmark.java
+++ /dev/null
@@ -1,130 +0,0 @@
-/*
- * 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.
- */
-
-package org.apache.ignite.yardstick.ml.clustering;
-
-import java.util.Map;
-import org.apache.ignite.Ignite;
-import org.apache.ignite.ml.clustering.BaseFuzzyCMeansClusterer;
-import org.apache.ignite.ml.clustering.FuzzyCMeansDistributedClusterer;
-import org.apache.ignite.ml.clustering.FuzzyCMeansModel;
-import org.apache.ignite.ml.math.StorageConstants;
-import org.apache.ignite.ml.math.distances.DistanceMeasure;
-import org.apache.ignite.ml.math.distances.EuclideanDistance;
-import org.apache.ignite.ml.math.impls.matrix.SparseDistributedMatrix;
-import org.apache.ignite.resources.IgniteInstanceResource;
-import org.apache.ignite.thread.IgniteThread;
-import org.apache.ignite.yardstick.IgniteAbstractBenchmark;
-import org.apache.ignite.yardstick.ml.DataChanger;
-
-/**
- * Ignite benchmark that performs ML Grid operations.
- */
-@SuppressWarnings("unused")
-public class IgniteFuzzyCMeansDistributedClustererBenchmark extends 
IgniteAbstractBenchmark {
-/** */
-@IgniteInstanceResource
-private Ignite ignite;
-
-/** {@inheritDoc} */
-@Override public boolean test(Map ctx) throws Exception {
-// Create IgniteThread, we must work with SparseDistributedMatrix 
inside IgniteThread
-// because we create ignite cache internally.
-IgniteThread igniteThread = new 
IgniteThread(ignite.configuration().getIgniteInstanceName(),
-this.getClass().getSimpleName(), new Runnable() {
-/** {@inheritDoc} */
-@Override public void run() {
-// IMPL NOTE originally taken from FuzzyCMeansExample.
-// Distance measure that computes distance between two points.
-DistanceMeasure distanceMeasure = new EuclideanDistance();
-
-// "Fuzziness" - specific constant that is used in membership 
calculation (1.0+-eps ~ K-Means).
-double exponentialWeight = 2.0;
-
-// Condition that indicated when algorithm must stop.
-// In this example algorithm stops if memberships have changed 
insignificantly.
-BaseFuzzyCMeansClusterer.StopCondition stopCond =
-BaseFuzzyCMeansClusterer.StopCondition.STABLE_MEMBERSHIPS;
-
-// Maximum difference between new and old membership values 
with which algorithm will continue to work.
-double maxDelta = 0.01;
-
-// The maximum number of FCM iterations.
-int maxIterations = 50;
-
-   

ignite git commit: IGNITE-8292: Broken yardstick compilation.

2018-04-17 Thread chief
Repository: ignite
Updated Branches:
  refs/heads/ignite-2.5 3d2556bc7 -> 4846e967e


IGNITE-8292: Broken yardstick compilation.

this closes #3840

(cherry picked from commit 3cebf91)


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/4846e967
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/4846e967
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/4846e967

Branch: refs/heads/ignite-2.5
Commit: 4846e967e4cb7a174880a2956e807505a78fd441
Parents: 3d2556b
Author: YuriBabak 
Authored: Tue Apr 17 11:54:41 2018 +0300
Committer: Yury Babak 
Committed: Tue Apr 17 11:56:01 2018 +0300

--
 ...niteKMeansDistributedClustererBenchmark.java | 75 
 .../IgniteKMeansLocalClustererBenchmark.java| 50 -
 .../yardstick/ml/clustering/package-info.java   | 22 --
 3 files changed, 147 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/ignite/blob/4846e967/modules/yardstick/src/main/java/org/apache/ignite/yardstick/ml/clustering/IgniteKMeansDistributedClustererBenchmark.java
--
diff --git 
a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/ml/clustering/IgniteKMeansDistributedClustererBenchmark.java
 
b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/ml/clustering/IgniteKMeansDistributedClustererBenchmark.java
deleted file mode 100644
index de928e8..000
--- 
a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/ml/clustering/IgniteKMeansDistributedClustererBenchmark.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * 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.
- */
-
-package org.apache.ignite.yardstick.ml.clustering;
-
-import java.util.Map;
-import org.apache.ignite.Ignite;
-import org.apache.ignite.ml.clustering.KMeansDistributedClusterer;
-import org.apache.ignite.ml.math.StorageConstants;
-import org.apache.ignite.ml.math.distances.EuclideanDistance;
-import org.apache.ignite.ml.math.impls.matrix.SparseDistributedMatrix;
-import org.apache.ignite.resources.IgniteInstanceResource;
-import org.apache.ignite.thread.IgniteThread;
-import org.apache.ignite.yardstick.IgniteAbstractBenchmark;
-import org.apache.ignite.yardstick.ml.DataChanger;
-
-/**
- * Ignite benchmark that performs ML Grid operations.
- */
-@SuppressWarnings("unused")
-public class IgniteKMeansDistributedClustererBenchmark extends 
IgniteAbstractBenchmark {
-/** */
-@IgniteInstanceResource
-private Ignite ignite;
-
-/** {@inheritDoc} */
-@Override public boolean test(Map ctx) throws Exception {
-final DataChanger.Scale scale = new DataChanger.Scale();
-
-// Create IgniteThread, we must work with SparseDistributedMatrix 
inside IgniteThread
-// because we create ignite cache internally.
-IgniteThread igniteThread = new 
IgniteThread(ignite.configuration().getIgniteInstanceName(),
-this.getClass().getSimpleName(), new Runnable() {
-/** {@inheritDoc} */
-@Override public void run() {
-// IMPL NOTE originally taken from 
KMeansDistributedClustererTest
-KMeansDistributedClusterer clusterer = new 
KMeansDistributedClusterer(
-new EuclideanDistance(), 1, 1, 1L);
-
-double[] v1 = scale.mutate(new double[] {1959, 325100});
-double[] v2 = scale.mutate(new double[] {1960, 373200});
-
-SparseDistributedMatrix points = new SparseDistributedMatrix(
-2, 2, StorageConstants.ROW_STORAGE_MODE, 
StorageConstants.RANDOM_ACCESS_MODE);
-
-points.setRow(0, v1);
-points.setRow(1, v2);
-
-clusterer.cluster(points, 1);
-
-points.destroy();
-}
-});
-
-igniteThread.start();
-
-igniteThread.join();
-
-return true;
-}
-}


ignite git commit: IGNITE-8292: Broken yardstick compilation.

2018-04-17 Thread chief
Repository: ignite
Updated Branches:
  refs/heads/master 8c80dce3b -> 3cebf9123


IGNITE-8292: Broken yardstick compilation.

this closes #3840


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/3cebf912
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/3cebf912
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/3cebf912

Branch: refs/heads/master
Commit: 3cebf9123ed1161822ece503169b361f49293358
Parents: 8c80dce
Author: YuriBabak 
Authored: Tue Apr 17 11:54:41 2018 +0300
Committer: Yury Babak 
Committed: Tue Apr 17 11:54:41 2018 +0300

--
 ...niteKMeansDistributedClustererBenchmark.java | 75 
 .../IgniteKMeansLocalClustererBenchmark.java| 50 -
 .../yardstick/ml/clustering/package-info.java   | 22 --
 3 files changed, 147 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/ignite/blob/3cebf912/modules/yardstick/src/main/java/org/apache/ignite/yardstick/ml/clustering/IgniteKMeansDistributedClustererBenchmark.java
--
diff --git 
a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/ml/clustering/IgniteKMeansDistributedClustererBenchmark.java
 
b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/ml/clustering/IgniteKMeansDistributedClustererBenchmark.java
deleted file mode 100644
index de928e8..000
--- 
a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/ml/clustering/IgniteKMeansDistributedClustererBenchmark.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * 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.
- */
-
-package org.apache.ignite.yardstick.ml.clustering;
-
-import java.util.Map;
-import org.apache.ignite.Ignite;
-import org.apache.ignite.ml.clustering.KMeansDistributedClusterer;
-import org.apache.ignite.ml.math.StorageConstants;
-import org.apache.ignite.ml.math.distances.EuclideanDistance;
-import org.apache.ignite.ml.math.impls.matrix.SparseDistributedMatrix;
-import org.apache.ignite.resources.IgniteInstanceResource;
-import org.apache.ignite.thread.IgniteThread;
-import org.apache.ignite.yardstick.IgniteAbstractBenchmark;
-import org.apache.ignite.yardstick.ml.DataChanger;
-
-/**
- * Ignite benchmark that performs ML Grid operations.
- */
-@SuppressWarnings("unused")
-public class IgniteKMeansDistributedClustererBenchmark extends 
IgniteAbstractBenchmark {
-/** */
-@IgniteInstanceResource
-private Ignite ignite;
-
-/** {@inheritDoc} */
-@Override public boolean test(Map ctx) throws Exception {
-final DataChanger.Scale scale = new DataChanger.Scale();
-
-// Create IgniteThread, we must work with SparseDistributedMatrix 
inside IgniteThread
-// because we create ignite cache internally.
-IgniteThread igniteThread = new 
IgniteThread(ignite.configuration().getIgniteInstanceName(),
-this.getClass().getSimpleName(), new Runnable() {
-/** {@inheritDoc} */
-@Override public void run() {
-// IMPL NOTE originally taken from 
KMeansDistributedClustererTest
-KMeansDistributedClusterer clusterer = new 
KMeansDistributedClusterer(
-new EuclideanDistance(), 1, 1, 1L);
-
-double[] v1 = scale.mutate(new double[] {1959, 325100});
-double[] v2 = scale.mutate(new double[] {1960, 373200});
-
-SparseDistributedMatrix points = new SparseDistributedMatrix(
-2, 2, StorageConstants.ROW_STORAGE_MODE, 
StorageConstants.RANDOM_ACCESS_MODE);
-
-points.setRow(0, v1);
-points.setRow(1, v2);
-
-clusterer.cluster(points, 1);
-
-points.destroy();
-}
-});
-
-igniteThread.start();
-
-igniteThread.join();
-
-return true;
-}
-}


ignite git commit: IGNITE-8292: Broken yardstick compilation.

2018-04-17 Thread chief
Repository: ignite
Updated Branches:
  refs/heads/ignite-2.5 2883ff4e9 -> d0997d774


IGNITE-8292: Broken yardstick compilation.

this closes #3838

(cherry picked from commit e76fcb4)


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/d0997d77
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/d0997d77
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/d0997d77

Branch: refs/heads/ignite-2.5
Commit: d0997d7740ea1114b4c8236f225d989de98e2f10
Parents: 2883ff4
Author: YuriBabak 
Authored: Tue Apr 17 11:22:14 2018 +0300
Committer: Yury Babak 
Committed: Tue Apr 17 11:23:00 2018 +0300

--
 ...uzzyCMeansDistributedClustererBenchmark.java | 130 ---
 ...gniteFuzzyCMeansLocalClustererBenchmark.java |  93 -
 2 files changed, 223 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/ignite/blob/d0997d77/modules/yardstick/src/main/java/org/apache/ignite/yardstick/ml/clustering/IgniteFuzzyCMeansDistributedClustererBenchmark.java
--
diff --git 
a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/ml/clustering/IgniteFuzzyCMeansDistributedClustererBenchmark.java
 
b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/ml/clustering/IgniteFuzzyCMeansDistributedClustererBenchmark.java
deleted file mode 100644
index e356746..000
--- 
a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/ml/clustering/IgniteFuzzyCMeansDistributedClustererBenchmark.java
+++ /dev/null
@@ -1,130 +0,0 @@
-/*
- * 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.
- */
-
-package org.apache.ignite.yardstick.ml.clustering;
-
-import java.util.Map;
-import org.apache.ignite.Ignite;
-import org.apache.ignite.ml.clustering.BaseFuzzyCMeansClusterer;
-import org.apache.ignite.ml.clustering.FuzzyCMeansDistributedClusterer;
-import org.apache.ignite.ml.clustering.FuzzyCMeansModel;
-import org.apache.ignite.ml.math.StorageConstants;
-import org.apache.ignite.ml.math.distances.DistanceMeasure;
-import org.apache.ignite.ml.math.distances.EuclideanDistance;
-import org.apache.ignite.ml.math.impls.matrix.SparseDistributedMatrix;
-import org.apache.ignite.resources.IgniteInstanceResource;
-import org.apache.ignite.thread.IgniteThread;
-import org.apache.ignite.yardstick.IgniteAbstractBenchmark;
-import org.apache.ignite.yardstick.ml.DataChanger;
-
-/**
- * Ignite benchmark that performs ML Grid operations.
- */
-@SuppressWarnings("unused")
-public class IgniteFuzzyCMeansDistributedClustererBenchmark extends 
IgniteAbstractBenchmark {
-/** */
-@IgniteInstanceResource
-private Ignite ignite;
-
-/** {@inheritDoc} */
-@Override public boolean test(Map ctx) throws Exception {
-// Create IgniteThread, we must work with SparseDistributedMatrix 
inside IgniteThread
-// because we create ignite cache internally.
-IgniteThread igniteThread = new 
IgniteThread(ignite.configuration().getIgniteInstanceName(),
-this.getClass().getSimpleName(), new Runnable() {
-/** {@inheritDoc} */
-@Override public void run() {
-// IMPL NOTE originally taken from FuzzyCMeansExample.
-// Distance measure that computes distance between two points.
-DistanceMeasure distanceMeasure = new EuclideanDistance();
-
-// "Fuzziness" - specific constant that is used in membership 
calculation (1.0+-eps ~ K-Means).
-double exponentialWeight = 2.0;
-
-// Condition that indicated when algorithm must stop.
-// In this example algorithm stops if memberships have changed 
insignificantly.
-BaseFuzzyCMeansClusterer.StopCondition stopCond =
-BaseFuzzyCMeansClusterer.StopCondition.STABLE_MEMBERSHIPS;
-
-// Maximum difference between new and old membership values 
with which algorithm will continue to work.
-double 

ignite git commit: IGNITE-8292: Broken yardstick compilation.

2018-04-17 Thread chief
Repository: ignite
Updated Branches:
  refs/heads/master 5614621d1 -> e76fcb4a5


IGNITE-8292: Broken yardstick compilation.

this closes #3838


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/e76fcb4a
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/e76fcb4a
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/e76fcb4a

Branch: refs/heads/master
Commit: e76fcb4a538aece58498f43d7e82b2054ca96c51
Parents: 5614621
Author: YuriBabak 
Authored: Tue Apr 17 11:22:14 2018 +0300
Committer: Yury Babak 
Committed: Tue Apr 17 11:22:14 2018 +0300

--
 ...uzzyCMeansDistributedClustererBenchmark.java | 130 ---
 ...gniteFuzzyCMeansLocalClustererBenchmark.java |  93 -
 2 files changed, 223 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/ignite/blob/e76fcb4a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/ml/clustering/IgniteFuzzyCMeansDistributedClustererBenchmark.java
--
diff --git 
a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/ml/clustering/IgniteFuzzyCMeansDistributedClustererBenchmark.java
 
b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/ml/clustering/IgniteFuzzyCMeansDistributedClustererBenchmark.java
deleted file mode 100644
index e356746..000
--- 
a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/ml/clustering/IgniteFuzzyCMeansDistributedClustererBenchmark.java
+++ /dev/null
@@ -1,130 +0,0 @@
-/*
- * 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.
- */
-
-package org.apache.ignite.yardstick.ml.clustering;
-
-import java.util.Map;
-import org.apache.ignite.Ignite;
-import org.apache.ignite.ml.clustering.BaseFuzzyCMeansClusterer;
-import org.apache.ignite.ml.clustering.FuzzyCMeansDistributedClusterer;
-import org.apache.ignite.ml.clustering.FuzzyCMeansModel;
-import org.apache.ignite.ml.math.StorageConstants;
-import org.apache.ignite.ml.math.distances.DistanceMeasure;
-import org.apache.ignite.ml.math.distances.EuclideanDistance;
-import org.apache.ignite.ml.math.impls.matrix.SparseDistributedMatrix;
-import org.apache.ignite.resources.IgniteInstanceResource;
-import org.apache.ignite.thread.IgniteThread;
-import org.apache.ignite.yardstick.IgniteAbstractBenchmark;
-import org.apache.ignite.yardstick.ml.DataChanger;
-
-/**
- * Ignite benchmark that performs ML Grid operations.
- */
-@SuppressWarnings("unused")
-public class IgniteFuzzyCMeansDistributedClustererBenchmark extends 
IgniteAbstractBenchmark {
-/** */
-@IgniteInstanceResource
-private Ignite ignite;
-
-/** {@inheritDoc} */
-@Override public boolean test(Map ctx) throws Exception {
-// Create IgniteThread, we must work with SparseDistributedMatrix 
inside IgniteThread
-// because we create ignite cache internally.
-IgniteThread igniteThread = new 
IgniteThread(ignite.configuration().getIgniteInstanceName(),
-this.getClass().getSimpleName(), new Runnable() {
-/** {@inheritDoc} */
-@Override public void run() {
-// IMPL NOTE originally taken from FuzzyCMeansExample.
-// Distance measure that computes distance between two points.
-DistanceMeasure distanceMeasure = new EuclideanDistance();
-
-// "Fuzziness" - specific constant that is used in membership 
calculation (1.0+-eps ~ K-Means).
-double exponentialWeight = 2.0;
-
-// Condition that indicated when algorithm must stop.
-// In this example algorithm stops if memberships have changed 
insignificantly.
-BaseFuzzyCMeansClusterer.StopCondition stopCond =
-BaseFuzzyCMeansClusterer.StopCondition.STABLE_MEMBERSHIPS;
-
-// Maximum difference between new and old membership values 
with which algorithm will continue to work.
-double maxDelta = 0.01;
-
-// The maximum