Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
Conformal AI package, including all data IO, transformations, machine learning models and predictor classes. Without inclusion of chemistry-dependent code.
/*
* Copyright (C) Aros Bio AB.
*
* CPSign is an Open Source Software that is dual licensed to allow you to choose a license that best suits your requirements:
*
* 1) GPLv3 (GNU General Public License Version 3) with Additional Terms, including an attribution clause as well as a limitation to use the software for commercial purposes.
*
* 2) CPSign Proprietary License that allows you to use CPSign for commercial activities, such as in a revenue-generating operation or environment, or integrate CPSign in your proprietary software without worrying about disclosing the source code of your proprietary software, which is required if you choose to use the software under GPLv3 license. See arosbio.com/cpsign/commercial-license for details.
*/
package com.arosbio.commons.config;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.arosbio.commons.CollectionUtils;
import com.arosbio.commons.StringUtils;
public interface Configurable {
static final Logger LOGGER = LoggerFactory.getLogger(Configurable.class);
/**
* Sorting preference for a {@link ConfigParameter} for deciding
* the preferred parameter in e.g. a grid-search for hyper-parameters.
* This can be done in order to e.g. pick values that are less prone to
* overfitting.
*/
public static class Sorter {
/**
* The priority of the given Sorting. Use {@link #NONE} in case
* no sorting should be done, e.g. for non-hyperparameters of algorithms.
*/
public static enum Priority {
NONE, LOW, MEDIUM, HIGH;
}
public static enum Direction {
PREFER_LOWER, NONE, PREFER_HIGHER;
}
private final Priority prio;
private final Direction direction;
private final Comparator