Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Technical ApproachPart 1 - Implement the Expert SystemThis lab is simpler than it would appear from reading the background section. It can be broken down
Technical ApproachPart Implement the Expert SystemThis lab is simpler than it would appear from reading the background section. It can be broken down into the following steps: Write code to read in CSV data into an arrayvector Declare an arrayvector that represents the predicted labels Run each sample through our expert system and save the predicted label Compute the # Correct as the number of predicted labels that match the ground truth Display the resulting labels Print out the percent correct to the consolePart Grid SearchIf you examine the data you will notice that the given rule is not the best rule for predicting the flower species. To improve the performance of our algorithm we can run the algorithm may times varying the parameters to see which parameters give the best performance. This is called a grid search. Lucky for us we have only one parameter: the threshold value in our expert system rule. Test different values to get the best performance. There is a correct range of values for the best threshold and your task is to find a single threshold value in that range that gives the best performance.Tips Range of ValuesGrid search is related to exhaustive search, which is also known as bruteforce search and generate and test. The difference is that grid search operates on a subset of the search space. You need only search from the minimum petal length to the maximum petal length. Run your experiment many times iterating from the minimum petal length to the maximum petal length, increasing the length slightly each time.The amount you increase the parameter is called the step size. You may want to have the step size as a command line argument and automate this procedure with a script.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started