edu.indiana.iucbrf.examples.quadrantRDBTemplate
Class QuadrantSystemRDB
java.lang.Object
edu.indiana.iucbrf.cbrsystem.CBRSystem
edu.indiana.iucbrf.examples.quadrantRDBTemplate.QuadrantSystemRDB
- All Implemented Interfaces:
- java.io.Serializable
public class QuadrantSystemRDB
- extends CBRSystem
NOTE: This file requires that a few database parameters are defined
before it will run. See the "Database configuration" section of the file.
Also note that there is an sql table creation script in the edu directory.
This system is intended to be one of the simplest possible uses of the framework.
In this domain, problems contain two features, x and y, both doubles in [-1, 1].
The square on the x-y plane corresponding to this problem space is divided into
four equal quadrants by the coordinate axes. These quadrants are numbered 1,
2, 3, and 4, counterclockwise from upper right, as in basic algebra.
A case consists of a problem description and solution, where the problem is
a pair (x,y), and the solution is its quadrant (1, 2, 3, or 4). When a new
problem is presented to the system, the five nearest cases are retrieved, and
adapted by taking a weighted (by distance) majority vote of the quadrants.
The "winning" quadrant is said to be the quadrant of the unknown problem.
See comments in code for additional details.
- See Also:
- Serialized Form
Fields inherited from class edu.indiana.iucbrf.cbrsystem.CBRSystem |
adaptation, baseFilename, CB, currentContext, debugMode, DEFAULT_BASE_FILENAME, domain, episodeSummaryPanel, guiMode, maintenance, performanceMonitor, retrieval, title |
Methods inherited from class edu.indiana.iucbrf.cbrsystem.CBRSystem |
close, finalize, getAdaptation, getBaseFilename, getCB, getContext, getDebugMode, getDomain, getGUIMode, getMaintenance, getPerformanceMonitor, getRetrieval, getTitle, loadCBFromFile, loadPerformanceMonitorFromFile, saveCBToFile, savePerformanceMonitorToFile, saveSystemToFile, setAdaptation, setBaseFilename, setCB, setContext, setDebugMode, setDomain, setGUIMode, setMaintenance, setPerformanceMonitor, setRetrieval, setTitle, solve, solve |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
USERNAME
public static final java.lang.String USERNAME
PASSWORD
public static final java.lang.String PASSWORD
HOST_NAME
public static final java.lang.String HOST_NAME
SERVICE_NAME
public static final java.lang.String SERVICE_NAME
QuadrantSystemRDB
public QuadrantSystemRDB()
- Creates a new instance of QuadrantSystem
constructProblemGenerator
public ProblemGenerator constructProblemGenerator()
- A problem generator requires specification of arguments to send to
feature constructors. Here, random distributions are used.