Aufgrund einer Wartung wird GitLab am 19.10. zwischen 8:00 und 9:00 Uhr kurzzeitig nicht zur Verfügung stehen. / Due to maintenance, GitLab will be temporarily unavailable on 19.10. between 8:00 and 9:00 am.

Commit 1526e3f5 authored by Alexander David Hellwig's avatar Alexander David Hellwig
Browse files

Move clust4j from helpers to com package

parent 490694c8
Pipeline #95861 passed with stages
in 13 minutes and 52 seconds
......@@ -14,11 +14,11 @@
* limitations under the License.
*******************************************************************************/
package de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo;
package com.clust4j.algo;
import java.util.Random;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.metrics.pairwise.GeometricallySeparable;
import com.clust4j.metrics.pairwise.GeometricallySeparable;
import org.apache.commons.math3.linear.RealMatrix;
public class NearestCentroidParameters
......
......@@ -13,17 +13,17 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
package de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo;
package com.clust4j.algo;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.GlobalState;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.log.Loggable;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.metrics.pairwise.Distance;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.metrics.pairwise.DistanceMetric;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.metrics.pairwise.GeometricallySeparable;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.utils.DeepCloneable;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.utils.MatUtils;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.utils.QuadTup;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.utils.VecUtils;
import com.clust4j.utils.DeepCloneable;
import com.clust4j.utils.MatUtils;
import com.clust4j.utils.QuadTup;
import com.clust4j.utils.VecUtils;
import com.clust4j.GlobalState;
import com.clust4j.log.Loggable;
import com.clust4j.metrics.pairwise.Distance;
import com.clust4j.metrics.pairwise.DistanceMetric;
import com.clust4j.metrics.pairwise.GeometricallySeparable;
import org.apache.commons.lang3.tuple.ImmutableTriple;
import org.apache.commons.lang3.tuple.Triple;
import org.apache.commons.math3.exception.DimensionMismatchException;
......
......@@ -13,18 +13,18 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
package de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo;
package com.clust4j.algo;
import java.util.concurrent.RejectedExecutionException;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.except.ModelNotFitException;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.log.Log;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.utils.MatUtils;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.utils.VecUtils;
import com.clust4j.except.ModelNotFitException;
import com.clust4j.utils.MatUtils;
import com.clust4j.utils.VecUtils;
import com.clust4j.log.Log;
import org.apache.commons.math3.linear.RealMatrix;
import org.apache.commons.math3.util.FastMath;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.log.LogTimer;
import com.clust4j.log.LogTimer;
final public class NearestNeighbors extends BaseNeighborsModel {
private static final long serialVersionUID = 8306843374522289973L;
......
......@@ -14,11 +14,11 @@
* limitations under the License.
*******************************************************************************/
package de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo;
package com.clust4j.algo;
import java.util.Random;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.metrics.pairwise.GeometricallySeparable;
import com.clust4j.metrics.pairwise.GeometricallySeparable;
import org.apache.commons.math3.linear.RealMatrix;
public class NearestNeighborsParameters extends BaseNeighborsModel.BaseNeighborsPlanner<NearestNeighbors> {
......
package de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo;
package com.clust4j.algo;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.utils.DeepCloneable;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.utils.EntryPair;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.utils.MatUtils;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.utils.MatrixFormatter;
import com.clust4j.utils.DeepCloneable;
import com.clust4j.utils.EntryPair;
import com.clust4j.utils.MatUtils;
import com.clust4j.utils.MatrixFormatter;
public class Neighborhood
extends EntryPair<double[][], int[][]>
......
......@@ -14,7 +14,7 @@
* limitations under the License.
*******************************************************************************/
package de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo;
package com.clust4j.algo;
import org.apache.commons.math3.linear.RealMatrix;
......
......@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
package de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo;
package com.clust4j.algo;
/**
* Any cluster that does not force a prediction for every
......
......@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
package de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo;
package com.clust4j.algo;
/**
* An extension of the {@link SafeLabelEncoder} that accounts for the noisey
......
......@@ -14,18 +14,18 @@
* limitations under the License.
*******************************************************************************/
package de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo;
package com.clust4j.algo;
import java.util.ArrayList;
import java.util.concurrent.ForkJoinPool;
import java.util.concurrent.RecursiveTask;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.GlobalState;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.NamedEntity;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.utils.MatrixFormatter;
import com.clust4j.utils.MatrixFormatter;
import com.clust4j.GlobalState;
import com.clust4j.NamedEntity;
import org.apache.commons.math3.util.FastMath;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.log.LogTimer;
import com.clust4j.log.LogTimer;
public abstract class ParallelChunkingTask<T> extends RecursiveTask<T> implements NamedEntity {
private static final long serialVersionUID = 6377106189203872639L;
......
......@@ -13,17 +13,17 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
package de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo;
package com.clust4j.algo;
import java.util.concurrent.RejectedExecutionException;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.except.ModelNotFitException;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.log.Log;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.utils.MatUtils;
import com.clust4j.except.ModelNotFitException;
import com.clust4j.utils.MatUtils;
import com.clust4j.log.Log;
import org.apache.commons.math3.linear.RealMatrix;
import org.apache.commons.math3.util.FastMath;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.log.LogTimer;
import com.clust4j.log.LogTimer;
final public class RadiusNeighbors extends BaseNeighborsModel {
private static final long serialVersionUID = 3620377771231699918L;
......
......@@ -14,15 +14,15 @@
* limitations under the License.
*******************************************************************************/
package de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo;
package com.clust4j.algo;
import java.util.Random;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.metrics.pairwise.GeometricallySeparable;
import com.clust4j.metrics.pairwise.GeometricallySeparable;
import org.apache.commons.math3.linear.RealMatrix;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo.BaseNeighborsModel.BaseNeighborsPlanner;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo.BaseNeighborsModel.NeighborsAlgorithm;
import com.clust4j.algo.BaseNeighborsModel.BaseNeighborsPlanner;
import com.clust4j.algo.BaseNeighborsModel.NeighborsAlgorithm;
public class RadiusNeighborsParameters extends BaseNeighborsPlanner<RadiusNeighbors> {
private static final long serialVersionUID = 2183556008789826257L;
......
......@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
package de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo;
package com.clust4j.algo;
/**
* A type of {@link LabelEncoder} that will allow a single class
......
......@@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
package de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo;
package com.clust4j.algo;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.metrics.scoring.SupervisedMetric;
import com.clust4j.metrics.scoring.SupervisedMetric;
public interface SupervisedClassifier extends BaseClassifier {
public int[] getTrainingLabels();
......
......@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
package de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo;
package com.clust4j.algo;
import org.apache.commons.math3.linear.RealMatrix;
......
......@@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
package de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo;
package com.clust4j.algo;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.metrics.scoring.SupervisedMetric;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.metrics.scoring.UnsupervisedMetric;
import com.clust4j.metrics.scoring.SupervisedMetric;
import com.clust4j.metrics.scoring.UnsupervisedMetric;
public interface UnsupervisedClassifier extends BaseClassifier {
/**
......
......@@ -14,7 +14,7 @@
* limitations under the License.
*******************************************************************************/
package de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo;
package com.clust4j.algo;
import org.apache.commons.math3.linear.RealMatrix;
......
......@@ -14,14 +14,14 @@
* limitations under the License.
*******************************************************************************/
package de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo.pipeline;
package com.clust4j.algo.pipeline;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo.preprocess.PreProcessor;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.except.ModelNotFitException;
import com.clust4j.algo.preprocess.PreProcessor;
import com.clust4j.except.ModelNotFitException;
import org.apache.commons.math3.linear.RealMatrix;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo.BaseNeighborsModel;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo.NeighborsClassifierParameters;
import com.clust4j.algo.BaseNeighborsModel;
import com.clust4j.algo.NeighborsClassifierParameters;
public class NeighborsPipeline<M extends BaseNeighborsModel>
extends Pipeline<NeighborsClassifierParameters<M>> {
......
......@@ -14,15 +14,15 @@
* limitations under the License.
*******************************************************************************/
package de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo.pipeline;
package com.clust4j.algo.pipeline;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.Clust4j;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.NamedEntity;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo.preprocess.PreProcessor;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.utils.SynchronicityLock;
import com.clust4j.algo.preprocess.PreProcessor;
import com.clust4j.utils.SynchronicityLock;
import com.clust4j.Clust4j;
import com.clust4j.NamedEntity;
import org.apache.commons.math3.linear.RealMatrix;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo.BaseClassifierParameters;
import com.clust4j.algo.BaseClassifierParameters;
public abstract class Pipeline<T extends BaseClassifierParameters>
extends Clust4j implements NamedEntity {
......
......@@ -13,16 +13,16 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
package de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo.pipeline;
package com.clust4j.algo.pipeline;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo.preprocess.PreProcessor;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.except.ModelNotFitException;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.metrics.scoring.SupervisedMetric;
import com.clust4j.algo.preprocess.PreProcessor;
import com.clust4j.except.ModelNotFitException;
import com.clust4j.metrics.scoring.SupervisedMetric;
import org.apache.commons.math3.linear.RealMatrix;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo.AbstractClusterer;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo.SupervisedClassifier;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo.SupervisedClassifierParameters;
import com.clust4j.algo.AbstractClusterer;
import com.clust4j.algo.SupervisedClassifier;
import com.clust4j.algo.SupervisedClassifierParameters;
public class SupervisedPipeline<M extends AbstractClusterer & SupervisedClassifier>
extends Pipeline<SupervisedClassifierParameters<M>>
......
......@@ -13,15 +13,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
package de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo.pipeline;
package com.clust4j.algo.pipeline;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo.preprocess.PreProcessor;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.except.ModelNotFitException;
import com.clust4j.algo.preprocess.PreProcessor;
import com.clust4j.except.ModelNotFitException;
import org.apache.commons.math3.linear.RealMatrix;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo.AbstractClusterer;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo.UnsupervisedClassifier;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo.UnsupervisedClassifierParameters;
import com.clust4j.algo.AbstractClusterer;
import com.clust4j.algo.UnsupervisedClassifier;
import com.clust4j.algo.UnsupervisedClassifierParameters;
public class UnsupervisedPipeline<M extends AbstractClusterer & UnsupervisedClassifier>
extends Pipeline<UnsupervisedClassifierParameters<M>>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment