2nd Year Java Project for Object Oriented Programming Module
- When the program is first run the FileProcessor class gets called.
- Inside this class, the ProcessEntry class gets called.
- After the dataset has been trained, the Query class is used on the remaining entries.
- Each time a Query is created it gets passed to the ProcessQuery class to check accuracy.
- Once the dataset has been trained and tested the GUI will show.
- On pressing the submit button a Query object will be created using the provided data.
- This Query will be passed to the ProcessQuery class where it'll provide an outcome.
Class Name | Function | Input | Output |
---|---|---|---|
Control | Main function which calls to classes in desired order. | None | None |
FileProcessor |
|
|
Displays info about amount trained, tested and the accuracy from the tests. |
ProcessEntry |
|
entry | Provides the populated ArrayLists to the ProcessQuery class when needed. |
Query |
|
|
Displays the values of each instance when printed. |
ProcessQuery |
|
query | 'yes' or 'no' whether they'll become future entrepreneur or not |
GUI | Provide a friendly UI for user to create Query objects and pass them onto ProcessQuery class in order to find a result whether they'll become a future entrepreneur or not based on the given dataset. | User Input | None |
The GUI was an optional part which I chose to do as it makes it easier to work with the model and test it out. I could've gone with the standard java console but I thought the GUI would be a neat feature.
- Re-written the whole program using an updated structure.
- Added an Entry object and inherited the Query object from it.
- Added an option on the GUI to add a new entry to the dataset.
- Added an option to specify train/test sizes.
- Added an option in GUI to view accuracy of model.