# Reviewing Search Results

You can investigate the results of parameter search on the Results page once the search is done. The search results are displayed in the Result Table. The auto mode displays a few best results whereas the manual mode displays all the results from every parameter combination. Each row of this table describes the values of each parameter combination that were tested, and the test results (F-score, AUC, and others), which are different by tool type. For each row of this table, you can project a Database Overview that formulates the search results with a confusion matrix.

Note: Before you click Home to go back to Home screen, click Save to save the current parameter search results. Going back to Home screen will reset all the results.

## Result Table Statistics in Manual Mode

Red Analyze | Green Classify | Blue Locate and Blue Read
--- | --- | ---
Precision (Confusion Matrix) | F-Score | Found (Features)
Recall (Confusion Matrix) | F-Score (avg) | Precision (Features)
F-Score (Confusion Matrix) | AUC | Recall (Features)
Precision (Region Area Metrics) | Speed [ms] | F-Score (Features)
Recall (Region Area Metrics) |  | Found (Models)
F-Score (Region Area Metrics) | Precision (Models)
AUC | Recall (Models)
Speed [ms] | F-Score (Models)
| Feature Position Distance
Feature Size Difference
Feature Angle Difference
Speed [ms]

## Result Table Statistics in Auto Mode

Red Analyze High Detail | Green Classify High Detail
--- | ---
Precision (Confusion Matrix) | F-Score
Recall (Confusion Matrix) | F-Score (avg)
F-Score (Confusion Matrix) | AUC
Precision (Region Area Metrics) | Speed [ms]
Recall (Region Area Metrics) | Resize Note: The Resize column displays the width and height of the views if and only the views are required to be automatically resized for the search of a Green Classify High Detail.
F-Score (Region Area Metrics) |
AUC
Speed [ms]

## Review Workflow

1. When you click a row in the result table, a row is selected and the Database Overview with a Confusion Matrix corresponds to the search results of this row will show up in the leftmost side at the bottom of the screen. The Database Overview is much the same as the one in Cognex Deep Learning Studio. For Red Analyze tools, Count drop-down options (Views, Untrained Views, Regions, Untrained Regions) can be applied to project the Database Overview by each aspect.

   The F-Score of Confusion Matrix When Count is Views

   The F-Score of Confusion Matrix When Count is Untrained Views

2. Click the Pin to pin down the Database Overview for a row. 2 Database Overviews can be fixed at maximum simultaneously. Click icon to release the Database Overview from the panel below.

   - The Database Overview of every selected row will be pegged down at the leftmost side of the panel below, and 1 or more pinned down Database Overviews will be pegged on its right.

   - If you click icon on each pegged Database Overview, it will be released from the panel.

3. When a row in the result table is selected, click Apply To Workspace to apply the selected parameter set and the trained tool (neural network model) in the loaded workspace. The tool parameter values and the tool itself in the currently loaded workspace will be replaced with those in the selected row in the result table.

   After it is applied in the loaded workspace, you now can access the tool and its training results in VisionPro Deep Learning. In Cognex Deep Learning Studio, open the workspace and process the tool and you will get the same results that were produced in Parameter Search.

   Note: As the previously saved Parameter Search Data XML file does not contain the trained networks (the trained tools), you cannot use Apply To Workspace with the loaded Parameter Search Data XML file. To apply the previously saved search results to your workspace, you must save the trained networks by enabling Save Tools checkbox in Search page to save tool files that contain the trained networks before beginning a search.
   Note: For Green Classify High Detail, if the auto mode resized views, ran a search, and applied the search results to a VisionPro Deep Learning workspace, Resize Mode parameter will be set to "Manual" and Resize To parameter will be set to the new width and height.

   Example: Sorting a Red Analyze High Detail Result by F-Score (Region Area Metric) and apply the best result to the current tool, along with the parameter combination (Off for Horizontal Flip, On for Vertical Flip, Off for Rotation 90, Off for Constrast, and Off for Luminance) and the trained neural network that produced this result.

   Click Apply to Workspace to apply this result to the tool in VisionPro Deep Learning

   Example: Launch VisionPro Deep Learning, load the workspace and the tool, and process the tool to review the applied result and the parameter combination.

4. Click Save to export the search configuration and search results as Parameter Search Data XML file. Click Load to import a previously configured and saved Parameter Search Data XML file to the Results page. It can be used as the basis for a new search.

   - Note that the search result table is saved with the Parameter Search Data XML file while the trained networks are not saved with it.

5. If you previously enabled Save Tools checkbox in Search page before you start the search, the tools containing the search results are saved after the search. Each saved tool holds the trained neural network model corresponding to each set of parameter values tested.

   In Auto mode, the tools containing the search results are automatically saved after the search. Each saved tool holds the trained neural network model corresponding to each set of parameter values tested.

   - For example, if you have 10 sets of parameters (10 rows in result table), 10 tools will be saved as 10 files to the directory containing the Parameter Search Data XML file.