Answered step by step
Verified Expert Solution
Link Copied!

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 1- 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:1. Write code to read in CSV data into an array/vector2. Declare an array/vector that represents the predicted labels3. Run each sample through our expert system and save the predicted label4. Compute the # Correct as the number of predicted labels that match the ground truth5. Display the resulting labels6. Print out the percent correct to the consolePart 2- 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 brute-force 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Robb,Carlos Coronel

5th Edition

061906269X, 9780619062699

More Books

Students also viewed these Databases questions

Question

1. Identify the sources for this conflict.

Answered: 1 week ago

Question

3. The group answers the questions.

Answered: 1 week ago