From 2a683b54cc7d24722c5bd40aec713dcd468f5c17 Mon Sep 17 00:00:00 2001 From: Donald Lam Date: Tue, 9 Jan 2024 21:18:07 +0800 Subject: [PATCH] add visualize README --- Analysis/README.md | 48 +++++++++++++++++++++++-- Analysis/main.ipynb | 21 ++++++++--- Analysis/{basis => reference}/full.json | 0 Analysis/tools.py | 18 +++++----- Analysis/visualize.py | 8 ++--- 5 files changed, 75 insertions(+), 20 deletions(-) rename Analysis/{basis => reference}/full.json (100%) diff --git a/Analysis/README.md b/Analysis/README.md index ac2a573..d61466c 100644 --- a/Analysis/README.md +++ b/Analysis/README.md @@ -1,2 +1,46 @@ -## To-Do -Write the README. \ No newline at end of file +# Visualization + +## Execution Process + +### Specify the Projection Matrix +Construct all grids ranging from the minimum to maximum score of the questionnaire as a standard reference frame +```py +construct_reference("", "") +``` + +### Visualize data points +1. Create a Visualize instance with PCA projection matrix using the standard reference frame +```py +# Extract the reference frame from JSON +reference = extract_reference('') +# Create the instance +vis = Visualize('', reference) +``` + +2. Add the data points on the constructed plane +```py +# Extract the data from JSON +data, _ = extract_data('') + +# Add the data +vis.add(data, "", "