add makeunique example
This commit is contained in:
parent
2ebb63f649
commit
2ec8ca4c8f
6
ch13.jl
6
ch13.jl
@ -262,3 +262,9 @@ train_roc = roc(train, score=:predict, target=:arrest)
|
|||||||
plot!(train_roc.pfa, train_roc.pmiss;
|
plot!(train_roc.pfa, train_roc.pmiss;
|
||||||
color="gold", lw=3,
|
color="gold", lw=3,
|
||||||
label="train (AUC=$(round(100*auc(train_roc), digits=2))%)")
|
label="train (AUC=$(round(100*auc(train_roc), digits=2))%)")
|
||||||
|
|
||||||
|
# Codes for section 13.5
|
||||||
|
|
||||||
|
DataFrame(:a=>1, :a=>2)
|
||||||
|
|
||||||
|
DataFrame(:a=>1, :a=>2, makeunique=true)
|
||||||
|
Loading…
Reference in New Issue
Block a user