Basic Examples (3)
Basic Examples
(3)
Here is a dataset:
In[1]:=
dsTitanic=ResourceFunction["ExampleDataset"][{"MachineLearning","Titanic"}];dsTitanic〚100;;108;;2〛
Out[2]=
Here is a classification pipeline:
In[3]:=
clObj=[dsTitanic,<||>]⟹[0.75]⟹⟹["RandomForest"]⟹[{"Accuracy","Precision","Recall"}]⟹⟹;
»
summaries:trainingData
,
,
,
,testData
,
,
,
1 passenger class | ||||||
|
2 passenger age | ||||||||||||||
|
3 passenger sex | ||||
|
4 passenger survival | ||||
|
1 passenger class | ||||||
|
2 passenger age | ||||||||||||||
|
3 passenger sex | ||||
|
4 passenger survival | ||||
|
»
value:Accuracy0.783784,Precisiondied0.743316,survived0.888889,Recalldied0.945578,survived0.571429
»
ROC plot(s):died
,survived
The object is summarized with :
In[4]:=
clObj
Out[4]=
ClCon
Scope (3)
Scope
(3)