DataSet¶
- class DataSet[source]¶
Bases:
object
Contains a lazy reference to a training, testing, and validation data set.
Attributes Summary
The mapping of entity labels to IDs.
The number of entities.
The number of relations.
The mapping of relation labels to IDs.
Methods Summary
from_path
(path[, ratios])Create a dataset from a single triples factory by splitting it in 3.
from_tf
(tf[, ratios])Create a dataset from a single triples factory by splitting it in 3.
Get the normalized name of the dataset.
Print a summary of the dataset.
Make a summary string of all of the factories.
Attributes Documentation
- entity_to_id¶
The mapping of entity labels to IDs.
- num_entities¶
The number of entities.
- num_relations¶
The number of relations.
- relation_to_id¶
The mapping of relation labels to IDs.
Methods Documentation
- classmethod from_path(path, ratios=None)[source]¶
Create a dataset from a single triples factory by splitting it in 3.
- Return type