Retrieve or Inspect Registered Data
Datamonger for R · r · 0.2.0
fetch_data
Source: packages/r/R/api.R, packages/r/man/data.Rd
Resolve a dataset within one strongly selected registry. Artifact size and SHA-256 verification cannot be disabled. Decoded verification is enabled by default and may be disabled only explicitly.
Usage
Arguments
nameA bare dataset name,
source:name, orsource:name@version.sourceThe dataset source. Required for bare names; omit it for qualified references, even if the values would agree.
versionAn exact version. Omit it when the reference embeds a version, even if the values would agree. If neither form supplies a version, resolve the registry default.
registryA strong selector, or
NULLfor the active selector.cache_dirAn explicit cache path, or
NULLfor the platform default.offlineWhether to forbid all network access.
verify_decodedWhether to verify expected shape and canonical digest.
return_infoWhether to return reproducibility metadata with the data.
artifactAn artifact name. It may be omitted for a single-artifact dataset.
Value
fetch_data() returns a graph, hypergraph, data frame, Datamonger sparse
result, or datamonger_dataset_splits named list in provider split order.
With return_info = TRUE, it returns a datamonger_fetch_result.
fetch_artifact() returns a cache path. Metadata functions return one or a
list of datamonger_data_info records. Sparse features use a row-compressed
Matrix, or an exact datamonger_csr_matrix when a declared dimension
exceeds the Matrix integer limit.
Details
Named splits use manifest schema 4. Access them with data[["validation"]].
Each value is a table or sparse dataset, and a feature-only test table has no
response column. Split names and row membership are preserved exactly.
Multilabel results have sparse features and response matrices and a
label_index_base. Source label k maps to column
k - label_index_base + 1.
Sparse label joins return named train and test splits. Each split also
contains the row-aligned document_id vector and the label_codes vector
in response column order.
Ranking results have class datamonger_ranking_sparse_dataset and contain
sparse features, a relevance vector response, and a row-aligned int64
vector query_id.
Metadata records expose preprocessing when recorded in a version 3
registry. Upstream processing and Datamonger preparation have separate
stages, with status unknown, none, or documented. Known steps retain
their order, string parameters, and evidence references. Missing history is
NULL. These records describe the registered artifacts; fetching does not
apply the transformations.
Graphs return a datamonger_graph_dataset with directed, nodes, and
edges. A datamonger_hypergraph_dataset has directed, nodes,
hyperedges, and incidences. Each topology table is a data frame.
Examples
cache <-
registry <-
datasets <-
# \dontrun
# These calls may download the dataset.
path <-
[1] 57
<datamonger_data_info>uci:iris@1
Iris
registry: 1.7.0
Help topic: fetch_data
