Skip to content

Commit 09ff68a

Browse files
committed
dev
1 parent df94437 commit 09ff68a

3 files changed

Lines changed: 30 additions & 2 deletions

File tree

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "PosDefManifoldML"
22
uuid = "a07f4532-e2c9-11e9-2ea2-6d98fe4a1f21"
33
authors = ["Marco-Congedo <marco.congedo@gmail.com>"]
4-
version = "0.5.12"
4+
version = "0.5.13"
55

66
[deps]
77
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"

docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
authors = ["Marco Congedo, Fahim Doumi, Saloni Jain, Anton Andreev"]
2-
version = "0.5.12"
2+
version = "0.5.13"
33

44
[deps]
55
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"

src/cv.jl

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,34 @@ across the cross-validation sets.
473473
```julia
474474
using PosDefManifoldML, PosDefManifold
475475
476+
y = [1,1,1,1,2,2,2,2,2,2]
477+
478+
cvSetup(y, 2)
479+
# returns:
480+
# Training Arrays:
481+
# Class 1: Array{Int64}[[3, 4], [1, 2]]
482+
# Class 2: Array{Int64}[[4, 5, 6], [1, 2, 3]]
483+
# Testing Arrays:
484+
# Class 1: Array{Int64}[[1, 2], [3, 4]]
485+
# Class 2: Array{Int64}[[1, 2, 3], [4, 5, 6]]
486+
487+
cvSetup(y, 2; seed=1234)
488+
# returns:
489+
# Training Arrays:
490+
# Class 1: Array{Int64}[[1, 4], [2, 3]]
491+
# Class 2: Array{Int64}[[4, 5, 6], [1, 2, 3]]]
492+
# Testing Arrays:
493+
# Class 1: Array{Int64}[[2, 3], [1, 4]]
494+
# Class 2: Array{Int64}[[1, 2, 3], [4, 5, 6]]
495+
496+
cvSetup(y, 3)
497+
# returns:
498+
# Training Arrays:
499+
# Class 1: Array{Int64}[[2, 3], [1, 3, 4], [1, 2, 4]]
500+
# Class 2: Array{Int64}[[3, 4, 5, 6], [1, 2, 5, 6], [1, 2, 3, 4]]
501+
# Testing Arrays:
502+
# Class 1: Array{Int64}[[1, 4], [2], [3]]
503+
# Class 2: Array{Int64}[[1, 2], [3, 4], [5, 6]]
476504
477505
```
478506
"""

0 commit comments

Comments
 (0)