Testing the program
In this section, we will run our project and see whether the returned values are correct. If you carefully followed all of the previous instructions, you should not be worried. If you encounter any unexpected errors or the output is incorrect, please make sure that you have followed all the previous steps and that you have identical code as shown in the examples.
Alright, it's time to test things out. Firstly, you need to make sure that you have two executables. If you are running Windows OS, you should have train.exe
and classify.exe
files. On Linux and macOS, these files should be called train.out
and classify.out
. If you have confirmed that you have these files, it's time to run them.
The first thing to do is to train our model and get the trained parameters. On Windows, you can do it like this:
$ .\train.exe
On Linux and macOS, the command looks like this:
$ ./train.out
As the outcome, you should see the result of testing and, in...