srlearn.datasets
.load_toy_father¶
-
srlearn.datasets.
load_toy_father
()[source]¶ Load and return the Toy Father dataset.
Returns: - toy_father : Bunch
Bunch contains train and test Database objects.
Examples
>>> from srlearn.datasets import load_toy_father >>> train, test = load_toy_father() >>> train Positive Examples: ['father(harrypotter,jamespotter).', ..., 'father(fredweasley,arthurweasley).'] Negative Examples: ['father(harrypotter,mrgranger).', ..., 'father(ginnyweasley,mollyweasley).'] Facts: ['male(mrgranger).', ..., 'childof(cygnusblack,narcissamalfoy).']