shap-viz¶
surfacia shap-viz launches the interactive SHAP dashboard from a detailed training CSV. It can also overlay external test-set points and SPES-ranked candidates.
Synopsis¶
surfacia shap-viz -i Training_Set_Detailed.csv -x ./xyz_files [OPTIONS]
Required Inputs¶
Input |
Description |
|---|---|
|
Training detailed CSV containing |
|
Folder containing molecular structure files used by the dashboard. |
Common Options¶
Option |
Description |
|---|---|
|
Optional |
|
Optional |
|
Optional ZhipuAI API key for the assistant panel. |
|
Web server host. Use |
|
Web server port. |
Examples¶
Training set only:
surfacia shap-viz -i Training_Set_Detailed.csv -x ./xyz_files
With raw test-set overlay:
surfacia shap-viz \
-i Training_Set_Detailed.csv \
-x ./xyz_files \
--test-csv Test_Set_Detailed.csv
With SPES overlay:
surfacia shap-viz \
-i Training_Set_Detailed.csv \
-x ./xyz_files \
--test-csv Test_Set_Detailed.csv \
--spes-csv SPES_Test_Set_Detailed.csv
Input Requirements¶
The training CSV should normally be produced by surfacia ml-analysis or surfacia workflow. It must contain:
sample identifiers
Feature_*columnsmatching
SHAP_*columnsprediction and target columns when available
The SPES CSV is generated automatically by the ML stage when a test set is present. For interpretation details, see SPES Candidate Prioritization.
Dashboard Use¶
Use the feature selector to inspect a descriptor, then choose the external overlay mode:
no overlay
raw test set
SPES layer, when
--spes-csvis provided
The SPES layer colors external points by SPES_Score when that column is available.
Troubleshooting¶
If the page does not open, try another port with
--port 8053.If remote access fails, start with
--host 0.0.0.0and check firewall settings.If SPES does not appear in the overlay menu, confirm that
--spes-csvpoints to an existingSPES_Test_Set_Detailed*.csvfile.If structures are missing, check that
-xpoints to the folder containing the matching xyz or generated surface files.