Skip to content

srlearn/RelationalDatasets.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RelationalDatasets.jl

A small library for loading and downloading relational datasets.

or: The relational-datasets Python package—but written in Julia.

add RelationalDatasets

GitHub release (latest by date) GitHub codecov Ubuntu/macOS/Windows

Usage

RelationalDatasets.jl stable documentation RelationalDatasets.jl latest documentation

Loading and Downloading Benchmark Datasets

RelationalDatasets.jl exports a single function: load to return train and test folds.

using RelationalDatasets

train, test = load("webkb", "v0.0.4", fold=2)
length(train.facts)
# 1344

Converting Vector-based Datasets

Binary classification when y is a vector of 0/1:

using RelationalDatasets

data, modes = RelationalDatasets.from_vector(
  [0 1 1; 1 0 2; 2 2 0],
  [0, 0, 1],
)

Regression when y is a vector of floats:

using RelationalDatasets

data, modes = RelationalDatasets.from_vector(
  [0 1 1; 1 0 2; 2 2 0],
  [1.1, 0.9, 2.5],
)

Install

From Registry

add RelationalDatasets

From GitHub

using Pkg
Pkg.add(url="https://github.com/srlearn/RelationalDatasets.jl")