Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

TCGADataTool

Guides

  • TCGA Data Tool

Tech Notes

  • Custom Entities
  • Data Exploration
  • Data Modeling
  • Data Visualization
  • Genomic Data
  • Images Download
  • Property Standard Name
  • User Interface

Symbols

  • buildDesignMatrix
  • buildModel
  • cleanRawData
  • columnHeaderRiskClassSummary
  • downloadGenomicData
  • dynamicallyExploreThreshold
  • exampleDataTCGA
  • getHistologicalImages
  • getPotentialPredictors
  • importGenomicDataFile
  • inspectPotentialPredictors
  • modelMeasurementsAtThreshold
  • overallSurvivalPlot
  • progressionFreeSurvivalPlot
  • pullDataSlice
  • radiologicalImagesBatchProcessing
  • swimmerPlot
  • TCGADataToolUserInterface
JaneShenGunther`TCGADataTool`
dynamicallyExploreThreshold
​
dynamicallyExploreThreshold
[probabilities,modelMeasurementsObject,actualOutcomes,classes]
creates a dynamic showing the location on the ROC curve, the confusion matrix, and model quality metrics at different probability thresholds.
​
Details and Options

Examples  
(1)
Basic Examples  
(1)
Get example binomial classifier for TCGA-CESC project data and outcome "Clinical::Patient::vital_status":
In[1]:=
exampleDesignMatrix=
exampleDataTCGA
[{"TCGADataModel","TCGACESCClinicalVitalStatusClassifier"},"DesignMatrix"];​​outcomeProperty=
exampleDataTCGA
[{"TCGADataModel","TCGACESCClinicalVitalStatusClassifier"},"OutcomeProperty"];​​exampleModel=
exampleDataTCGA
[{"TCGADataModel","TCGACESCClinicalVitalStatusClassifier"},"Model"]
Out[1]=
Get input data for
dynamicallyExploreThreshold
:
In[2]:=
classes=Information[exampleModel,"Classes"]
Out[2]=
{Alive,Dead}
In[3]:=
allProbabilities=exampleModel[exampleDesignMatrix,"Probabilities"];​​allProbabilities〚;;3〛
Out[3]=
{Alive0.815417,Dead0.184583,Alive0.635113,Dead0.364887,Alive0.84173,Dead0.15827}
In[4]:=
actualOutcomes=exampleDesignMatrix〚All,outcomeProperty〛;​​actualOutcomes〚;;3〛
Out[4]=
{Alive,Dead,Alive}
In[5]:=
measurements=ClassifierMeasurements[exampleModel,exampleDesignMatrix,MissingValueSynthesis"ModeFinding"]
Out[5]=
Classifier Measurements
Classifier method
RandomForest
Number of test examples
307
Accuracy
(92.5
±
1.5
)
%
Accuracy baseline
(80.5
±
2.3
)
%
Geometric mean of probabilities
0.718 ± 0.0098
Mean cross entropy
0.331 ± 0.014
Single evaluation time
35.4
ms/example
Batch evaluation speed
490.
examples/s
Visualize dynamic showing location on ROC curve, confusion matrix and performance metrics at varying probability thresholds:
In[6]:=
Framed[#,RoundingRadius5,FrameStyleLightGray]&@​​
dynamicallyExploreThreshold
[allProbabilities,measurements,actualOutcomes,classes]
Out[6]=
Threshold
​
SeeAlso
modelMeasurementsAtThreshold
TechNotes
▪
Data Modeling
RelatedGuides
▪
TCGA Data Tool
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com