repo stringlengths 1 191 ⌀ | file stringlengths 23 351 | code stringlengths 0 5.32M | file_length int64 0 5.32M | avg_line_length float64 0 2.9k | max_line_length int64 0 288k | extension_type stringclasses 1
value |
|---|---|---|---|---|---|---|
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/cache/SymmetricBiCache.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 1,577 | 32.574468 | 76 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/checks/Checks.java | package tsml.classifiers.distance_based.utils.collections.checks;
import java.util.Collection;
import java.util.List;
import java.util.Objects;
public class Checks {
public static double requireUnitInterval(double v) {
requireReal(v);
requireNonNegative(v);
if(v > 1) {
thr... | 3,030 | 27.59434 | 84 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/intervals/BaseInterval.java | package tsml.classifiers.distance_based.utils.collections.intervals;
import tsml.classifiers.distance_based.utils.collections.params.ParamSet;
import java.util.Objects;
public abstract class BaseInterval<A> implements Interval<A> {
public static String START_FLAG = "s";
public static String END_FLAG = "... | 1,711 | 25.338462 | 94 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/intervals/DoubleInterval.java | package tsml.classifiers.distance_based.utils.collections.intervals;
public class DoubleInterval extends BaseInterval<Double> {
public DoubleInterval() {
this(0, 1);
}
public DoubleInterval(double start, double end) {
super(start, end);
}
@Override public boolean contains... | 487 | 22.238095 | 68 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/intervals/IntInterval.java | package tsml.classifiers.distance_based.utils.collections.intervals;
/**
* Purpose: represent an interval, i.e. some subsequence of indices. An interval therefore has a start and end point
* (inclusively!). The start point may be beyond the end point to reverse directionality.
*
* Contributors: goastler
*/
public... | 1,797 | 25.057971 | 116 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/intervals/IntIntervalTest.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 2,422 | 28.91358 | 76 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/intervals/Interval.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 1,216 | 31.026316 | 77 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/intervals/IntervalInstance.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 8,975 | 29.020067 | 88 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/intervals/IntervalInstanceTest.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 1,664 | 37.72093 | 113 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/iteration/AbstractIterator.java | package tsml.classifiers.distance_based.utils.collections.iteration;
import java.io.Serializable;
import java.util.Iterator;
public abstract class AbstractIterator<A> implements Iterator<A>, Serializable {
private boolean hasNextCalled = false;
private boolean hasNext = false;
protected abstract bool... | 782 | 24.258065 | 80 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/iteration/AbstractListIterator.java | package tsml.classifiers.distance_based.utils.collections.iteration;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
public abstract class AbstractListIterator<A> implements DefaultListIterator<A>, Serializable {
private int index = -1;
private int ne... | 1,824 | 21.8125 | 95 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/iteration/BaseRandomIterator.java | package tsml.classifiers.distance_based.utils.collections.iteration;
import tsml.classifiers.distance_based.utils.collections.CollectionUtils;
import java.util.List;
import java.util.Objects;
import java.util.Random;
import static utilities.ArrayUtilities.sequence;
/**
* Purpose: // todo - docs - type the purpose ... | 2,582 | 25.90625 | 145 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/iteration/BaseRandomIteratorTest.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 2,430 | 33.239437 | 85 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/iteration/DefaultIterator.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 1,185 | 31.944444 | 76 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/iteration/DefaultListIterator.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 2,056 | 24.7125 | 76 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/iteration/EmptyIterator.java | package tsml.classifiers.distance_based.utils.collections.iteration;
public class EmptyIterator<A> implements DefaultListIterator<A> {
@Override public boolean hasNext() {
return false;
}
@Override public boolean hasPrevious() {
return false;
}
}
| 281 | 22.5 | 68 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/iteration/FlatIterator.java | package tsml.classifiers.distance_based.utils.collections.iteration;
import java.util.Iterator;
import java.util.Objects;
public class FlatIterator<A> implements Iterator<A> {
public FlatIterator(Iterable<? extends Iterable<A>> iterables) {
mainIterator = new TransformIterator<>(iterables, Iterable::... | 938 | 29.290323 | 90 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/iteration/LimitedIterator.java | package tsml.classifiers.distance_based.utils.collections.iteration;
import weka.core.OptionHandler;
import java.util.Enumeration;
import java.util.Iterator;
/**
* Purpose: traverse a list up to a point.
*
* Contributors: goastler
*
* @param <A>
*/
public class LimitedIterator<A>
implements DefaultIterator... | 1,997 | 18.98 | 70 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/iteration/LimitedListIterator.java | package tsml.classifiers.distance_based.utils.collections.iteration;
import weka.core.OptionHandler;
import java.util.Enumeration;
import java.util.Iterator;
/**
* Purpose: traverse a list up to a point.
*
* Contributors: goastler
*
* @param <A>
*/
public class LimitedListIterator<A> implements DefaultListIter... | 2,077 | 19.78 | 113 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/iteration/LinearIterator.java | package tsml.classifiers.distance_based.utils.collections.iteration;
import java.util.List;
/**
* Purpose: linearly traverse a list.
*
* Contributors: goastler
*
* @param <A>
*/
public class LinearIterator<A> extends AbstractListIterator<A> {
public LinearIterator(final List<A> list) {
super(list);... | 557 | 17.6 | 68 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/iteration/RandomIterator.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 1,172 | 36.83871 | 93 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/iteration/Resetable.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 1,240 | 35.5 | 101 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/iteration/RoundRobinIterator.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 1,651 | 25.645161 | 76 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/iteration/TransformIterator.java | package tsml.classifiers.distance_based.utils.collections.iteration;
import java.io.Serializable;
import java.util.Iterator;
public class TransformIterator<A, B> implements Serializable, Iterator<B> {
public TransformIterator(final Iterable<A> iterable, final Transform<A, B> transform) {
this(iterable.it... | 1,252 | 24.06 | 91 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/lists/IndexList.java | package tsml.classifiers.distance_based.utils.collections.lists;
import java.io.Serializable;
import java.util.AbstractList;
public class IndexList extends AbstractList<Integer> implements Serializable {
public IndexList(final int size) {
if(size < 0) {
throw new IllegalArgumentException("siz... | 559 | 21.4 | 78 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/lists/RepeatList.java | package tsml.classifiers.distance_based.utils.collections.lists;
import java.util.AbstractList;
public class RepeatList<A> extends AbstractList<A> {
public RepeatList(final A element, final int size) {
this.element = element;
this.size = size;
}
private final A element;
private final... | 472 | 19.565217 | 64 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/lists/UniqueList.java | package tsml.classifiers.distance_based.utils.collections.lists;
import java.util.*;
public class UniqueList<A> extends AbstractList<A> {
private Set<A> set;
private List<A> list;
public UniqueList() {
clear();
}
@Override public int size() {
return list.size();
}
@... | 1,451 | 22.419355 | 107 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/lists/UnorderedArrayList.java | package tsml.classifiers.distance_based.utils.collections.lists;
import java.io.Serializable;
import java.util.*;
import java.util.function.Consumer;
import java.util.function.Predicate;
import java.util.function.UnaryOperator;
import java.util.stream.Stream;
/**
* An ArrayList except operations may reorder the list... | 1,685 | 25.761905 | 208 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/params/ParamHandler.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 2,789 | 28.0625 | 116 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/params/ParamHandlerTest.java | package tsml.classifiers.distance_based.utils.collections.params;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import tsml.classifiers.distance_based.distances.dtw.DTWDistance;
import tsml.classifiers.distance_based.distances.ed.EDistance;
imp... | 3,942 | 40.505263 | 104 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/params/ParamHandlerUtils.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 2,381 | 34.552239 | 114 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/params/ParamMap.java | package tsml.classifiers.distance_based.utils.collections.params;
import tsml.classifiers.distance_based.utils.collections.DefaultMap;
import tsml.classifiers.distance_based.utils.collections.params.dimensions.ParamDimension;
import tsml.classifiers.distance_based.utils.collections.params.dimensions.continuous.Continu... | 3,488 | 36.516129 | 111 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/params/ParamSet.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 13,165 | 32.586735 | 141 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/params/ParamSetTest.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 5,915 | 34.42515 | 113 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/params/ParamSpace.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 1,904 | 27.863636 | 76 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/params/ParamSpaceBuilder.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 1,367 | 31.571429 | 76 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/params/ParamSpaceTest.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 8,948 | 35.82716 | 116 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/params/dimensions/ParamDimension.java | package tsml.classifiers.distance_based.utils.collections.params.dimensions;
import tsml.classifiers.distance_based.utils.collections.params.ParamSpace;
import java.io.Serializable;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
/**
* hold the parameter dimension. In here should be a... | 1,089 | 23.222222 | 110 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/params/dimensions/continuous/ContinuousParamDimension.java | package tsml.classifiers.distance_based.utils.collections.params.dimensions.continuous;
import tsml.classifiers.distance_based.utils.collections.params.ParamSpace;
import tsml.classifiers.distance_based.utils.collections.params.dimensions.ParamDimension;
import tsml.classifiers.distance_based.utils.collections.params.... | 1,181 | 30.105263 | 90 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/params/dimensions/discrete/DiscreteParamDimension.java | package tsml.classifiers.distance_based.utils.collections.params.dimensions.discrete;
import tsml.classifiers.distance_based.utils.system.copy.CopierUtils;
import tsml.classifiers.distance_based.utils.collections.DefaultList;
import tsml.classifiers.distance_based.utils.collections.params.ParamSet;
import tsml.classif... | 2,767 | 32.349398 | 103 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/params/dimensions/discrete/GridParamMap.java | package tsml.classifiers.distance_based.utils.collections.params.dimensions.discrete;
import tsml.classifiers.distance_based.utils.collections.DefaultMap;
import tsml.classifiers.distance_based.utils.collections.params.ParamMap;
import tsml.classifiers.distance_based.utils.collections.params.ParamSet;
import tsml.clas... | 4,063 | 37.704762 | 169 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/params/dimensions/discrete/GridParamSpace.java | package tsml.classifiers.distance_based.utils.collections.params.dimensions.discrete;
import tsml.classifiers.distance_based.utils.collections.DefaultList;
import tsml.classifiers.distance_based.utils.collections.params.ParamMap;
import tsml.classifiers.distance_based.utils.collections.params.ParamSet;
import tsml.cla... | 5,908 | 32.95977 | 146 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/params/dimensions/discrete/GridParamSpaceTest.java | package tsml.classifiers.distance_based.utils.collections.params.dimensions.discrete;
import org.junit.Assert;
import org.junit.Test;
import tsml.classifiers.distance_based.utils.collections.params.ParamMap;
import tsml.classifiers.distance_based.utils.collections.params.ParamSet;
import tsml.classifiers.distance_base... | 2,506 | 37.569231 | 107 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/params/distribution/BaseDistribution.java | package tsml.classifiers.distance_based.utils.collections.params.distribution;
import java.util.Random;
/**
* Purpose: model a distribution which can be sampled from, e.g. a normal distribution bell curve.
* <p>
* Contributors: goastler
*/
public abstract class BaseDistribution<A> implements Distribution<A> {
... | 510 | 23.333333 | 98 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/params/distribution/ClampedDistribution.java | package tsml.classifiers.distance_based.utils.collections.params.distribution;
import org.junit.Assert;
import tsml.classifiers.distance_based.utils.collections.intervals.Interval;
import java.util.Objects;
public abstract class ClampedDistribution<A> extends BaseDistribution<A> implements Interval<A> {
pri... | 1,587 | 25.466667 | 97 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/params/distribution/CompositeDistribution.java | package tsml.classifiers.distance_based.utils.collections.params.distribution;
import tsml.classifiers.distance_based.utils.collections.params.distribution.double_based.UniformDoubleDistribution;
import tsml.classifiers.distance_based.utils.collections.params.distribution.int_based.UniformIntDistribution;
import java... | 2,407 | 37.222222 | 124 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/params/distribution/Distribution.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 986 | 34.25 | 78 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/params/distribution/double_based/ExponentialDoubleDistribution.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 5,252 | 32.458599 | 109 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/params/distribution/double_based/UniformDoubleDistribution.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 1,663 | 34.404255 | 97 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/params/distribution/int_based/UniformIntDistribution.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 1,625 | 34.347826 | 97 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/params/iteration/AbstractSearch.java | package tsml.classifiers.distance_based.utils.collections.params.iteration;
import tsml.classifiers.distance_based.utils.collections.params.ParamSet;
import tsml.classifiers.distance_based.utils.collections.params.ParamSpace;
import java.io.Serializable;
import java.util.Iterator;
import java.util.Objects;
public ab... | 1,458 | 26.528302 | 104 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/params/iteration/GridSearch.java | package tsml.classifiers.distance_based.utils.collections.params.iteration;
import tsml.classifiers.distance_based.utils.collections.iteration.LinearIterator;
import tsml.classifiers.distance_based.utils.collections.params.ParamSet;
import tsml.classifiers.distance_based.utils.collections.params.ParamSpace;
import tsm... | 1,545 | 27.62963 | 108 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/params/iteration/GridSearchTest.java | package tsml.classifiers.distance_based.utils.collections.params.iteration;
import org.junit.Assert;
import org.junit.Test;
import tsml.classifiers.distance_based.utils.collections.params.ParamSet;
import tsml.classifiers.distance_based.utils.collections.params.ParamSpace;
import tsml.classifiers.distance_based.utils.... | 1,858 | 31.614035 | 79 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/params/iteration/PermutationUtils.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 4,358 | 34.439024 | 120 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/params/iteration/PermutationUtilsTest.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 3,034 | 34.705882 | 109 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/params/iteration/RandomSearch.java | package tsml.classifiers.distance_based.utils.collections.params.iteration;
import tsml.classifiers.distance_based.utils.collections.iteration.BaseRandomIterator;
import tsml.classifiers.distance_based.utils.collections.iteration.RandomIterator;
import tsml.classifiers.distance_based.utils.collections.params.ParamMap;... | 6,644 | 38.319527 | 123 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/params/iteration/RandomSearchTest.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 2,800 | 39.594203 | 79 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/patience/Patience.java | package tsml.classifiers.distance_based.utils.collections.patience;
import tsml.classifiers.distance_based.utils.collections.checks.Checks;
public class Patience {
public Patience() {
setMaximise();
setWindowSize(5);
setTolerance(0);
reset();
expired = false;
}
... | 2,673 | 19.728682 | 71 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/patience/PatienceTest.java | package tsml.classifiers.distance_based.utils.collections.patience;
import org.junit.Assert;
import org.junit.Test;
public class PatienceTest {
@Test
public void testPatience() {
final Patience patience = new Patience(4);
Assert.assertEquals(4, patience.getWindowSize());
Assert.as... | 3,498 | 40.164706 | 67 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/pruned/PrunedMap.java | package tsml.classifiers.distance_based.utils.collections.pruned;
import tsml.classifiers.distance_based.utils.collections.CollectionUtils;
import java.io.Serializable;
import java.util.*;
public class PrunedMap<A, B> implements Map<A, List<B>>,
NavigableMap<A, List<B... | 8,392 | 25.729299 | 112 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/pruned/PrunedMapTest.java | package tsml.classifiers.distance_based.utils.collections.pruned;
import org.junit.Assert;
import org.junit.Test;
import tsml.classifiers.distance_based.utils.system.copy.CopierUtils;
import java.util.Arrays;
public class PrunedMapTest {
@Test
public void testPrune() {
final PrunedMap<Integer, I... | 4,396 | 37.234783 | 139 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/tree/BaseTree.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 1,754 | 26 | 86 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/tree/BaseTreeNode.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 4,813 | 28 | 109 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/tree/BaseTreeNodeTest.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 5,479 | 33.037267 | 93 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/tree/Tree.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 2,039 | 26.2 | 116 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/tree/TreeNode.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 3,654 | 28.475806 | 95 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/views/IntListView.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 1,355 | 31.285714 | 76 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/collections/views/WrappedList.java | package tsml.classifiers.distance_based.utils.collections.views;
import tsml.classifiers.distance_based.utils.collections.DefaultList;
import java.util.List;
import java.util.Objects;
import java.util.function.Function;
public class WrappedList<A, B> implements DefaultList<B> {
public WrappedList(final List<A> ... | 713 | 25.444444 | 75 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/experiment/DatasetSplit.java | package tsml.classifiers.distance_based.utils.experiment;
import tsml.data_containers.TimeSeriesInstance;
import tsml.data_containers.TimeSeriesInstances;
import tsml.data_containers.utilities.Converter;
import weka.core.Instances;
public class DatasetSplit {
private Instances trainDataArff;
private Instances... | 2,105 | 26.710526 | 86 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/experiment/Experiment.java | package tsml.classifiers.distance_based.utils.experiment;
import evaluation.storage.ClassifierResults;
import experiments.ExperimentalArguments;
import experiments.ClassifierExperiments;
import experiments.data.DatasetLoading;
import tsml.classifiers.*;
import tsml.classifiers.distance_based.proximity.ProximityForest;... | 23,069 | 45.14 | 310 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/experiment/ExperimentConfig.java | package tsml.classifiers.distance_based.utils.experiment;
import com.beust.jcommander.IStringConverter;
import com.beust.jcommander.JCommander;
import com.beust.jcommander.Parameter;
import org.junit.Assert;
import tsml.classifiers.distance_based.utils.system.copy.Copier;
import tsml.classifiers.distance_based.utils.s... | 10,864 | 37.257042 | 795 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/experiment/ExperimentRunner.java | package tsml.classifiers.distance_based.utils.experiment;
public class ExperimentRunner {
public static void main(String[] args) throws Exception {
// Experiment.main(
// "-r", "results"
// , "-d", "/bench/phd/data/all_2019"
// , "-p", "GunPoint"
// ... | 1,395 | 30.022222 | 138 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/experiment/TimeSpan.java | package tsml.classifiers.distance_based.utils.experiment;
import tsml.classifiers.distance_based.utils.strings.StrUtils;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;
import java.util.concurrent.TimeUnit;
import static java.util.con... | 7,739 | 31.93617 | 201 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/experiment/TimeSpanTest.java | package tsml.classifiers.distance_based.utils.experiment;
import org.junit.Assert;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import static tsml.classifiers.distance_based.utils.collections.CollectionUtils.newArrayList;
public class TimeSpanTest {
... | 3,901 | 34.798165 | 102 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/stats/SummaryStat.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 2,839 | 30.555556 | 127 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/stats/scoring/ChiSquared.java | package tsml.classifiers.distance_based.utils.stats.scoring;
import java.util.List;
public class ChiSquared implements SplitScorer {
@Override public <A> double score(final Labels<A> parent, final List<Labels<A>> children) {
final List<Double> parentDistribution = parent.getDistribution();
double ... | 984 | 36.884615 | 95 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/stats/scoring/ChiSquaredTest.java | package tsml.classifiers.distance_based.utils.stats.scoring;
import org.junit.Assert;
import org.junit.Test;
import java.util.Arrays;
public class ChiSquaredTest {
@Test
public void testImpure() {
Assert.assertEquals(0, new ChiSquared().score(new Labels<>(
Arrays.asList(0,0,0,0,1,1,1... | 1,258 | 39.612903 | 230 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/stats/scoring/GiniEntropy.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 1,036 | 38.884615 | 93 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/stats/scoring/GiniEntropyTest.java | package tsml.classifiers.distance_based.utils.stats.scoring;
import org.junit.Assert;
import org.junit.Test;
import java.util.Arrays;
import static tsml.classifiers.distance_based.utils.stats.scoring.Labels.fromCounts;
public class GiniEntropyTest {
@Test
public void testImpure() {
Assert.assertEqua... | 2,149 | 36.719298 | 198 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/stats/scoring/GiniGain.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 2,603 | 41 | 126 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/stats/scoring/GiniGainTest.java | package tsml.classifiers.distance_based.utils.stats.scoring;
import org.junit.Assert;
import org.junit.Test;
import java.util.Arrays;
import static tsml.classifiers.distance_based.utils.stats.scoring.Labels.fromCounts;
public class GiniGainTest {
@Test
public void testImpure() {
Assert.assertEq... | 1,418 | 37.351351 | 196 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/stats/scoring/InfoEntropy.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 1,069 | 38.62963 | 102 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/stats/scoring/InfoEntropyTest.java | package tsml.classifiers.distance_based.utils.stats.scoring;
import org.junit.Assert;
import org.junit.Test;
import java.util.Arrays;
import static tsml.classifiers.distance_based.utils.stats.scoring.Labels.fromCounts;
public class InfoEntropyTest {
@Test
public void testImpure() {
Assert.assertEqua... | 2,168 | 37.052632 | 198 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/stats/scoring/InfoGain.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 1,067 | 37.142857 | 95 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/stats/scoring/Label.java | package tsml.classifiers.distance_based.utils.stats.scoring;
import java.io.Serializable;
import java.util.Objects;
import static tsml.classifiers.distance_based.utils.collections.checks.Checks.requireReal;
public class Label<A> implements Serializable {
private final A id;
private final double weight;
... | 725 | 20.352941 | 90 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/stats/scoring/Labels.java | package tsml.classifiers.distance_based.utils.stats.scoring;
import tsml.classifiers.distance_based.utils.collections.lists.RepeatList;
import utilities.ArrayUtilities;
import java.io.Serializable;
import java.util.*;
import static org.junit.Assert.assertEquals;
import static utilities.ArrayUtilities.normalise;
pu... | 7,763 | 30.950617 | 730 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/stats/scoring/PartitionEntropy.java | package tsml.classifiers.distance_based.utils.stats.scoring;
import java.util.List;
import static tsml.classifiers.distance_based.utils.stats.scoring.GiniGain.weightedInverseEntropy;
public interface PartitionEntropy extends SplitScorer {
<A> double entropy(Labels<A> labels);
@Override default <A> doub... | 1,573 | 53.275862 | 239 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/stats/scoring/SplitScorer.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 1,007 | 35 | 76 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/strings/StrUtils.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 14,241 | 35.424552 | 315 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/strings/StrUtilsTest.java | package tsml.classifiers.distance_based.utils.strings;
import org.junit.Assert;
import org.junit.Test;
import tsml.classifiers.distance_based.distances.lcss.LCSSDistance;
import tsml.classifiers.distance_based.distances.transformed.BaseTransformDistanceMeasure;
import tsml.classifiers.distance_based.distances.transfor... | 8,110 | 35.701357 | 150 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/system/SysUtils.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 3,962 | 32.025 | 108 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/system/copy/Copier.java | package tsml.classifiers.distance_based.utils.system.copy;
import java.io.Serializable;
/**
* Purpose: shallow and deep copy various fields from object to object using reflection. You can filter the fields to
* ignore final fields / transient fields, etc, it's all flexible. Classes can implement this interface to p... | 2,335 | 28.948718 | 117 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/system/copy/CopierTest.java | package tsml.classifiers.distance_based.utils.system.copy;
import org.junit.Before;
import org.junit.Test;
import java.io.IOException;
import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import static org.junit.Assert.*;
public class CopierTest {
private static class Dummy implemen... | 4,340 | 27.748344 | 107 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/system/copy/CopierUtils.java | package tsml.classifiers.distance_based.utils.system.copy;
import java.io.*;
import java.lang.annotation.*;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Modifier;
import java.util.*;
import java.util.function.Predicat... | 11,682 | 37.055375 | 241 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/system/logging/LogUtils.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 5,674 | 38.409722 | 243 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/system/logging/Loggable.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 1,595 | 29.692308 | 103 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/system/memory/MemoryAmount.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 2,376 | 27.638554 | 83 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/system/memory/MemoryUnit.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 3,622 | 33.179245 | 92 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/system/memory/MemoryUnitTest.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 1,494 | 32.222222 | 87 | java |
tsml-java | tsml-java-master/src/main/java/tsml/classifiers/distance_based/utils/system/memory/MemoryWatchable.java | /*
* This file is part of the UEA Time Series Machine Learning (TSML) toolbox.
*
* The UEA TSML toolbox is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your o... | 1,286 | 32.868421 | 92 | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.