This is a Java-based GUI application designed to load a CSV file containing permutations of data. The application uses the Naive Bayes algorithm to predict the output when the user inputs their own permutation.
- Load and parse CSV files with data permutations.
- User-friendly GUI for data input and interaction.
- Predict outcomes based on user-provided permutations using the Naive Bayes algorithm.
- Java Development Kit (JDK) 8 or higher.
- A CSV file with properly formatted data for training.
- Clone the repository:
git clone https://github.com/Kubab511/java-naive-bayes.git
- Navigate to the project directory:
cd java-naive-bayes - Compile the project:
javac -d bin src/App.java
- Run the application:
java -cp bin Main
- (Optional) Generate a frequency table
python frequency_table.py
- Launch the application.
- Load a CSV file containing training data.
- Input your own permutation in the provided fields.
- Click the "Predict" button to see the predicted output.
The CSV file should have the following structure:
- Each row represents a data permutation.
- The last column should contain the expected output (label).
Example:
Feature1,Feature2,Feature3,Feature4,Output
Yes,No,Yes,Yes,Yes
No,No,Yes,No,No
- Java Swing for the GUI.
This project is licensed under the MIT License.
- Java Swing Documentation