File tree Expand file tree Collapse file tree 2 files changed +39
-9
lines changed Expand file tree Collapse file tree 2 files changed +39
-9
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name = "RelationalDatasets"
2
2
uuid = " 6b8bdb16-f930-11eb-22b5-7ba1dabdf7a8"
3
3
license = " Apache 2.0"
4
4
authors = [
" Alexander L. Hayes <[email protected] >" ]
5
- version = " 0.1.1 "
5
+ version = " 0.2.0 "
6
6
7
7
[deps ]
8
8
HTTP = " cd3eb016-35fb-5094-929b-558a96fad6f3"
Original file line number Diff line number Diff line change 1
1
# RelationalDatasets.jl
2
2
3
- > * A small library for loading and downloading relational datasets.*
4
- >
5
- > or:
6
- >
7
- > * The [ ` relational-datasets ` ] ( https://github.com/srlearn/relational-datasets )
8
- > Python package—but written in Julia.*
3
+ * A small library for loading and downloading relational datasets.*
4
+
5
+ or: * The [ ` relational-datasets ` ] ( https://github.com/srlearn/relational-datasets )
6
+ Python package—but written in Julia.*
7
+
8
+ ``` console
9
+ add RelationalDatasets
10
+ ```
9
11
10
12
![ GitHub release (latest by date)] ( https://img.shields.io/github/v/release/srlearn/RelationalDatasets.jl )
11
13
![ GitHub] ( https://img.shields.io/github/license/srlearn/RelationalDatasets.jl )
14
16
15
17
## Usage
16
18
19
+ [ ![ RelationalDatasets.jl stable documentation] ( https://img.shields.io/badge/docs-stable-blue.svg )] ( https://srlearn.github.io/RelationalDatasets.jl/stable )
20
+ [ ![ RelationalDatasets.jl latest documentation] ( https://img.shields.io/badge/docs-dev-blue.svg )] ( https://srlearn.github.io/RelationalDatasets.jl/dev )
21
+
22
+ ### Loading and Downloading Benchmark Datasets
23
+
17
24
` RelationalDatasets.jl ` exports a single function: ` load ` to return train
18
25
and test folds.
19
26
20
27
``` julia
21
28
using RelationalDatasets
22
29
23
30
train, test = load (" webkb" , " v0.0.4" , fold= 2 )
24
-
25
- println (length (train. facts))
31
+ length (train. facts)
26
32
# 1344
27
33
```
28
34
35
+ ### Converting Vector-based Datasets
36
+
37
+ * Binary classification when ` y ` is a vector of 0/1* :
38
+
39
+ ``` julia
40
+ using RelationalDatasets
41
+
42
+ data, modes = RelationalDatasets. from_vector (
43
+ [0 1 1 ; 1 0 2 ; 2 2 0 ],
44
+ [0 , 0 , 1 ],
45
+ )
46
+ ```
47
+
48
+ * Regression when ` y ` is a vector of floats* :
49
+
50
+ ``` julia
51
+ using RelationalDatasets
52
+
53
+ data, modes = RelationalDatasets. from_vector (
54
+ [0 1 1 ; 1 0 2 ; 2 2 0 ],
55
+ [1.1 , 0.9 , 2.5 ],
56
+ )
57
+ ```
58
+
29
59
## Install
30
60
31
61
### From Registry
You can’t perform that action at this time.
0 commit comments