Skip to content

Latest commit

 

History

History
72 lines (50 loc) · 1.9 KB

README.md

File metadata and controls

72 lines (50 loc) · 1.9 KB

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")