MIA Toolbox Loading Data Quick Start and MIA Toolbox PCA Quick Start: Difference between pages

From Eigenvector Research Documentation Wiki
(Difference between pages)
Jump to navigation Jump to search
imported>Scott
No edit summary
 
imported>Scott
(Created page with ' Previous Topic: Loading Data {| border="1" cellpadding="5" cellspacing="0" align="left" |- |valign="top" | [[Image:LoadArch.png |right |(Click to …')
 
Line 1: Line 1:
[[Loading Data Quick Start | Previous Topic: Loading Data]]
{| border="1" cellpadding="5" cellspacing="0" align="left"
{| border="1" cellpadding="5" cellspacing="0" align="left"
|-
|-
|valign="top" |
|valign="top" |  
[[Image:ImportImage01.png|right|500px|(Click to Enlarge)]]
[[Image:LoadArch.png |right |(Click to Enlarge)]]
Image data can be readily imported into the Image Manger by clicking '''Import Image''' from the Tree or File Menu. We'll select '''Image (Other...)''' so all image types enabled in the dialog box.
This example uses the '''arch''' dataset. Load '''arch''' by selecting File/Import Data.../Workspace/MAT file. Click the '''From File''' button, type "arch" into the '''File:''' text box, and then hit the Return key. Because '''arch''' is on the path, the importer will locate the arch.mat file and show its variables. Click '''Load''' and the data will be available in the "Browser".
|-
|valign="top" |
[[Image:build_model.003.png |right| 500px |(Click to Enlarge)]]
Once data has been loaded into the workspace, there are several ways to begin building a model.  For analysis tools like PCA where only an '''X''' block is required, you can right-click on the data icon in the '''Browser''' to reveal a list of analysis options. You can also drag the given data to an analysis method shortcut, such as the Decompose '''PCA''' shortcut.
|-
|valign="top"|
[[Image:build_model.004.png |right| 500px |(Click to Enlarge)]]
The Analysis GUI will then appear with the given data already loaded. (The large '''X''' (block) button in the Analysis GUI will appear depressed indicating the data is loaded - passing the cursor over the button will provide a summary of the '''X''' block data.)
|-
|valign="top"|
[[Image:build_model.005.png |right| 500px |(Click to Enlarge)]]
While each analysis type has its own nuances, in general the steps to build a model are:
 
# load the data
# view the data
# choose preprocessing
# select the type of cross-validation to use (if any is desired - see [[Using Cross-Validation]])
# build the model
# review the model
 
There is more than one way to accomplish each of the above steps.  For example, preprocessing can be set for the '''X''' block by
* clicking the '''"Choose Preprocessing"''' button in the Analysis Flowchart
* clicking the '''P''' button next to the '''X''' button
* select '''"Preprocess"''' menu item
 
('''Hint:''' Once selected, use the Preprocess/X-block and Preprocess/Y-block menus to save the current preprocessing as the default.)


In this example we'll import a .JPEG image, "EchoRidgeClouds.jpeg", included with MIA_Toolbox.
You can quickly view your data by right-clicking on the appropriate button ('''X''' or '''Y''') and then select '''"Plot Data"'''


For information about concatenating images after import see [[Cat_img_gui|here]].
|-
|-
|valign="top" |
|valign="top"|
[[Image:LocateImage.png|right|500px|(Click to Enlarge)]]
[[Image:build_model.006.png|right| |(Click to Enlarge)]]
Use the resulting dialog box to select the "EchoRidgeClouds.jpeg" file from the dems folder.
Perhaps the quickest way for new users to complete the remaining steps to build the model is to use the flowchart.  
|-
 
|valign="top" |
[[Image:LoadImageDialog.png|right|500px|(Click to Enlarge)]]
The '''Load Image Data''' dialog box will appear. This interface allows you to choose how to unfold the image data. The defaults are set for typical image data (pixels by pixels by variable, RGB slabs in the case) so just click '''OK'''.
|-
|valign="top" |
[[Image:ImageGUIWithClouds.png|right|300px|(Click to Enlarge)]]
The image will appear in '''Tree''' at the '''Loaded Images''' leaf. Clicking on it will display the image in the main editing pain.
|}
|}
 
[[Review Results Quick Start | Next Topic: Review Results]]
[[MIA_Toolbox_PCA_Quick_Start | Next Topic: Building Models]]

Revision as of 15:58, 8 October 2009

Previous Topic: Loading Data

(Click to Enlarge)

This example uses the arch dataset. Load arch by selecting File/Import Data.../Workspace/MAT file. Click the From File button, type "arch" into the File: text box, and then hit the Return key. Because arch is on the path, the importer will locate the arch.mat file and show its variables. Click Load and the data will be available in the "Browser".

(Click to Enlarge)

Once data has been loaded into the workspace, there are several ways to begin building a model. For analysis tools like PCA where only an X block is required, you can right-click on the data icon in the Browser to reveal a list of analysis options. You can also drag the given data to an analysis method shortcut, such as the Decompose PCA shortcut.

(Click to Enlarge)

The Analysis GUI will then appear with the given data already loaded. (The large X (block) button in the Analysis GUI will appear depressed indicating the data is loaded - passing the cursor over the button will provide a summary of the X block data.)

(Click to Enlarge)

While each analysis type has its own nuances, in general the steps to build a model are:

  1. load the data
  2. view the data
  3. choose preprocessing
  4. select the type of cross-validation to use (if any is desired - see Using Cross-Validation)
  5. build the model
  6. review the model

There is more than one way to accomplish each of the above steps. For example, preprocessing can be set for the X block by

  • clicking the "Choose Preprocessing" button in the Analysis Flowchart
  • clicking the P button next to the X button
  • select "Preprocess" menu item

(Hint: Once selected, use the Preprocess/X-block and Preprocess/Y-block menus to save the current preprocessing as the default.)

You can quickly view your data by right-clicking on the appropriate button (X or Y) and then select "Plot Data"

(Click to Enlarge)

Perhaps the quickest way for new users to complete the remaining steps to build the model is to use the flowchart.

Next Topic: Review Results