gov.sandia.cognition.learning.algorithm.baseline.ConstantLearner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cognitive-foundry Show documentation
Show all versions of cognitive-foundry Show documentation
A single jar with all the Cognitive Foundry components.
/*
* File: BatchNonLearner.java
* Authors: Justin Basilico
* Project: Cognitive Foundry Learning Core
*
* Copyright 2011 Cognitive Foundry. All rights reserved.
*/
package gov.sandia.cognition.learning.algorithm.baseline;
import gov.sandia.cognition.learning.algorithm.BatchLearner;
import gov.sandia.cognition.util.AbstractCloneableSerializable;
/**
* A learner that always returns the same value as the result. This is not
* really a learner, but more of an adapter class when you need to stub in
* a constant value into the learning framework.
*
* @param
* The type of the constant value returned as the result of learning.
* @author Justin Basilico
* @since 3.3.3
*/
public class ConstantLearner
extends AbstractCloneableSerializable
implements BatchLearner