15. DecisionMakerPoly63 Class Library15.1 DecisionMakerPoly63 Interface
15.2 Link to Class Library
15.3 Prediction Buttons
15.4 Test Run
15. DecisionMakerPoly63 Class Library
This chapter introduces the class library, Attrasoft.PolyApplet63.DecisionMakerPoly63, which is the library for function inference using the PolyNet algorithm; the last chapter uses the Abm algorithm. In this chapter, we will build prediction software similar to Attrasoft DecisionMaker 2.5, but using the PolyNet algorithm. The prediction operation includes two steps:
The only difference between this chapter and the last chapter is to change a few commands.
- Specify two Input Files
- Click a button
Figure 15.1 The PolyDecisionMaker Form.
15.1 DecisionMakerPoly63 Interface
The DecisionMakerPoly63 class library implements the following interface:
public interface I_DecisionMakerPoly63In addition, the class library has the following properties:{
bool openDecisionMakerTrainFile ();
bool openDecisionMakerRecoFile ();
bool openOutputFile ();bool decisionMakerPolyLinearInt ();
bool decisionMakerPolyLinearReal ();
}I/O Files:15.2 Link to Class Librarypublic string DecisionMakerTrainNamePresentation Layer parameters:
public string DecisionMakerRecoName
public string OutputNamepublic double EmptyfieldNeural Layer parameters:public int Sensitivity
public int Blurring
public int InternalWeightCutThe class library is:
Attrasoft.PolyApplet63.DecisionMakerPoly63.The class in this library will be:Attrasoft.PolyApplet63.DecisionMakerPoly63.DecisionMakerPoly63.To include the class library in the project,To use the class library, add:
- In the Solution Explorer, right click References and select Add Reference;
- Browse to find �DecisionMakerPoly63.dll� in c:\polyapplet63\;
- Highlight it and click the �OK� button.
using Attrasoft.PolyApplet63.DecisionMakerPoly63;To declare an object, add:public Attrasoft.PolyApplet63.DecisionMakerPoly63.DecisionMakerPoly63 zNow DecisionMakerPoly63 object, z, is ready to use.
= new Attrasoft.PolyApplet63.DecisionMakerPoly63.DecisionMakerPoly63 (richTextBox1);There are 2 commands in Figure 15.1; each button will simply use one of the 2 commands:
private void button8_Click(object sender, System.EventArgs e){
z.decisionMakerPolyLinearInt ();
}private void button9_Click(object sender, System.EventArgs e)
{
z.decisionMakerPolyLinearReal ();
}Step 1. Files.
The following are done automatically:
DecisionMaker Train: cancer1a.txt:
DecisionMaker Recognition: cancer1b.txt:
Train: example1a.txt
Recognition: example1c.txt
Neural Output: example1d.txt
Output: example2c.txt
Step 2. Click the �Int Linear� button to see the results.Step 3. Click the �Real Linear� button to see the output in Real Numbers instead of Integers.
We should see the same results as in chapter 11.