## Sample Beans

### Swing tools users

Most of the links in the examples page are to source files and directories distributed with the zip file containing binary deliverables. If you have not downloaded both binary and documentation deliverables to your system, these links will not be found.

### Eclipse tools users

The code and ruleset examples and data sources described below can be viewed in the project you generate by doing New>Examples>ABLE>Example project.

### Examples

The following examples are packaged with the ABLE code. Each example has a corresponding directory in the /examples subdirectory. In the directory you will find the source code to the example as well as related data or rule files. Most examples make use of the common data sources in the examples/datafiles directory. Note that the use described for each example is not necessarily the only model that can be used with the data provided.

#### Simple AbleAgent

The SimpleAbleAgent files begin with SimpleAbleAgent* in the examples/ableagent directory. They show how to create a custom AbleAgent by extending the AbleDefaultAgent class, complete with source, BeanInfo file, and an example Customizer.

#### Simple AbleBean

The SimpleAbleBean files begin with SimpleAbleBean* and are in the examples/ablebean directory. They show how to easily create a custom AbleBean by extending the AbleObject class, complete with source, BeanInfo file, and an example Customizer.

#### AbleFileWatcher

The AbleFileWatcher files begin with AbleFileWatcher* and are in the examples/ablebean directory. They are referred to in Extending Able, and show how an agent can serve as a monitor.

#### Genetic examples

There are several GeneticObject examples in the examples/genetic directory. To access these, create a GeneticSearchAgent and specify the class function in the bean customizer dialog.

#### DecisionTree examples

The decisiontreetrout example is in the examples/decisiontree directory. It is a decision tree classifier used to identify Wyoming game fish.

#### Bayes examples

The nbayes example is in the examples/bayes directory.

#### Neural examples

The following neural network examples can be found in the examples/neural directory:

- The animal definition file can be used to create a neural classification agent.
- The XOR definition file can be used in a back propagation network to learn to predict a binary function.
- CoinIdentifier contains data describing common United States coins. It can be used as a neural classification agent. After the network is trained, you can edit the Import bean generated to interactively describe the coins in your pocket and see if the result is correct.
- CreditScore contains both train and test data to calculate the credit limit granted to applicants. It can be used in a neural classification agent. Custom filters are needed for data representation so that the network will train properly.
- MarketAnalysis is used to create clusters of customer profiles from customer purchasing history. It can be used in a neural clustering agent.
- SalesForecast contains both train and test data used to predict the percentage change in gross retail sales from one day to the next. It can be used in a neural prediction agent.
- Tdwalk contains the data used to train a temporal difference learning network. Each input value represents a position, and each record indicates an object's position is at a point in time. The pattern ends when the object has reached the leftmost or rightmost position, and network learns to predict whether the object is going to the right or the left.

#### Ruleset examples

Rules examples can be found in the examples/rules directory.

#### Conversation agent examples

Examples of conversational agents can be found in the examples/conversation directory