<commit_before>package de.lmu.ifi.dbs.algorithm;



import de.lmu.ifi.dbs.algorithm.classifier.Classifier;
import de.lmu.ifi.dbs.algorithm.classifier.CorrelationBasedClassifier;
import de.lmu.ifi.dbs.algorithm.clustering.COPAC;
import de.lmu.ifi.dbs.algorithm.clustering.Clustering;
import de.lmu.ifi.dbs.algorithm.result.Result;
import de.lmu.ifi.dbs.algorithm.result.clustering.ClusteringResult;
import de.lmu.ifi.dbs.data.ClassLabel;
import de.lmu.ifi.dbs.data.HierarchicalClassLabel;
import de.lmu.ifi.dbs.data.RealVector;
import de.lmu.ifi.dbs.database.Database;
import de.lmu.ifi.dbs.distance.Distance;
import de.lmu.ifi.dbs.properties.Properties;
import de.lmu.ifi.dbs.utilities.Description;
import de.lmu.ifi.dbs.utilities.UnableToComplyException;
import de.lmu.ifi.dbs.utilities.Util;
import de.lmu.ifi.dbs.utilities.optionhandling.AttributeSettings;
import de.lmu.ifi.dbs.utilities.optionhandling.ClassParameter;
import de.lmu.ifi.dbs.utilities.optionhandling.Flag;
import de.lmu.ifi.dbs.utilities.optionhandling.ParameterException;
import de.lmu.ifi.dbs.utilities.optionhandling.WrongParameterValueException;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;

/**
 * TODO comment
 * 
 * @author <NAME> (<a
 *         href="mailto:<EMAIL>"><EMAIL></a>)
 */
public class CoDeC<V extends RealVector<V,?>,D extends Distance<D>,L extends ClassLabel<L>> extends AbstractAlgorithm<V> {

	public static final String EVALUATE_AS_CLASSIFIER_F = "classify";

	public static final String EVALUATE_AS_CLASSIFIER_D = "demand evaluation of the cluster-models as classifier";

	public static final String CLASS_LABEL_P = "classlabel";

	public static final String DEFAULT_CLASS_LABEL_CLASS = HierarchicalClassLabel.class.toString();

	public static final String CLASS_LABEL_D = "use the designated classLabel class "<commit_msg>autor-email removed<commit_after>package de.lmu.ifi.dbs.algorithm;



import de.lmu.ifi.dbs.algorithm.classifier.Classifier;
import de.lmu.ifi.dbs.algorithm.classifier.CorrelationBasedClassifier;
import de.lmu.ifi.dbs.algorithm.clustering.COPAC;
import de.lmu.ifi.dbs.algorithm.clustering.Clustering;
import de.lmu.ifi.dbs.algorithm.result.Result;
import de.lmu.ifi.dbs.algorithm.result.clustering.ClusteringResult;
import de.lmu.ifi.dbs.data.ClassLabel;
import de.lmu.ifi.dbs.data.HierarchicalClassLabel;
import de.lmu.ifi.dbs.data.RealVector;
import de.lmu.ifi.dbs.database.Database;
import de.lmu.ifi.dbs.distance.Distance;
import de.lmu.ifi.dbs.properties.Properties;
import de.lmu.ifi.dbs.utilities.Description;
import de.lmu.ifi.dbs.utilities.UnableToComplyException;
import de.lmu.ifi.dbs.utilities.Util;
import de.lmu.ifi.dbs.utilities.optionhandling.AttributeSettings;
import de.lmu.ifi.dbs.utilities.optionhandling.ClassParameter;
import de.lmu.ifi.dbs.utilities.optionhandling.Flag;
import de.lmu.ifi.dbs.utilities.optionhandling.ParameterException;
import de.lmu.ifi.dbs.utilities.optionhandling.WrongParameterValueException;

import java.lang.reflect.Type;
import java.lang.reflect.TypeVariable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;

/**
 * TODO comment
 * 
 * @author <NAME> 
 */
public class CoDeC<V extends RealVector<V,? extends Number>,D extends Distance<D>,L extends ClassLabel<L>> extends AbstractAlgorithm<V> {

	public static final String EVALUATE_AS_CLASSIFIER_F = "classify";

	public static final String EVALUATE_AS_CLASSIFIER_D = "demand evaluation of the cluster-models as classifier";

	public static final String CLASS_LABEL_P = "classlabel";

	public static final String DEFAULT_CLASS_LABEL_CLASS = HierarchicalClassLabel.class.toString();

	public static final String CLASS_LABEL_D = "use the designated classLabel class "
{'fraction_non_alphanumeric': 0.11195995785036882, 'fraction_numerical': 0.0, 'mean_word_length': 5.792486583184258, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6801685', 'n_tokens_mistral': 1318, 'n_tokens_neox': 1274, 'n_words': 219}