In order to start this project many sources were used in order to help us throughout this part of the project, firstly the main code of the professor was used in order to gain a better in sight on how things operate and how things were meant to be looking like at the end and what the ultimate main goal was supposed to look from this GUI using the PYQT6 library.
In order to start this project what we had to do is was try to find the sci model that would best fit the insurance data set that we found and in the end we decided to go with the following libraries
</pre>as you can see the train test split in order to split from training and testing the data set having a 80/20 split and a random forest classifier model in order to help us solve for regression and to help us comprised the data set from the training set. And last but not least the confusion matrix was supposed to help our data set being very large in accuracy and giving us a better classification from our model and the errors it could be outputting and a much more accurate degree. The project used both QGridLayout and QHBoxLayout for the set up of the widgets in the GUI. The total widgets that were used throught the project are as follows (QApplication<spandir="">, </span>QHBoxLayout<spandir="">, </span>QWidget<spandir="">, </span>QPushButton<spandir="">,\
There were many problems that we faced throughout this entire project from the get go till this day such as:
1) The layout of the GUI would sometimes interfere with each other that other implementations of widgets wouldn't even show up in the GUI even though the code is right
2) We had a hard time with the closing event function it just would read the global statements or our imports in the global hence why it wouldn't work and even though we tried to fix this bug several times it just wouldn't work hence why we decided to take the professors closing statements and hope it works which it did and we cited it in our code. The original close event that didn't work is as follows
</pre>Another bug that we don't know how to fix till now is the sci learn model that we picked after converting the data set from categorical to numerical for the AI to understand it just wont plot everything is there however it just wont plot and we cant get it to show inside the GUI itself the only thing that has been plotted when running the GUI is the following:
</pre>Another problem that we ran through is that the code for showing multiple texts using Qlabel it just wont show up on the GUI and if we remove the layout the whole GUI wouldn't function hence trying to use "setText" from Qabstract wouldn't work as it said "setText is not found" Hence why the Qdial and the slider and all the widgets can be seen how they function and what they really are the the numerical output when used is seen in the terminal and not in the GUI, and our finally issue we had with texts was the main title in the middle of the GUI would change every time the slider was used and wouldn't go back to the original.
List of sources that were used as a whole in order to complete this project: