View source: R/feature-provenance-manifest.R
| create_gazepoint_feature_manifest | R Documentation |
Creates a structured provenance manifest for intended predictive features. Each row records where a feature originated, when it became available, whether it is outcome-derived or post-outcome, and where any data-dependent preprocessing was estimated.
create_gazepoint_feature_manifest(
features,
scientific_source = NA_character_,
source_table = NA_character_,
transformation = "none",
availability_stage = "unknown",
prediction_time_available = NA,
outcome_derived = FALSE,
post_outcome = FALSE,
identifier = FALSE,
preprocessing_scope = "unknown",
fold_local_required = NA,
reviewer_notes = ""
)
features |
Character vector of unique feature names. |
scientific_source |
Scientific or measurement source for each feature. |
source_table |
Source export, table, or object for each feature. |
transformation |
Description of the transformation used to construct each feature. |
availability_stage |
Availability stage for each feature. One of
|
prediction_time_available |
Logical vector indicating whether each feature is available at the intended prediction time. |
outcome_derived |
Logical vector indicating whether each feature was derived directly or indirectly from the outcome. |
post_outcome |
Logical vector indicating whether each feature was measured or constructed after the outcome became available. |
identifier |
Logical vector indicating whether each feature is an identifier or row-location variable. |
preprocessing_scope |
Scope in which any data-dependent
preprocessing was estimated. One of |
fold_local_required |
Logical vector indicating whether preprocessing for each feature must be estimated separately inside each resampling fold. |
reviewer_notes |
Optional reviewer-facing notes. |
Each row is treated as an intended predictor. Consequently,
outcome-derived, post-outcome, unavailable, and identifier features
are treated as failing conditions by
validate_gazepoint_feature_manifest().
The manifest records declared provenance. It does not independently prove that preprocessing was estimated within the stated scope.
A data frame of class gazepoint_feature_manifest.
manifest <- create_gazepoint_feature_manifest(
features = c("fixation_duration", "pupil_change"),
scientific_source = c(
"Gazepoint fixation export",
"Gazepoint all-gaze export"
),
source_table = c("fixations", "all_gaze"),
transformation = c(
"Trial-level mean",
"Baseline-adjusted change"
),
availability_stage = "during_exposure",
prediction_time_available = TRUE,
preprocessing_scope = c("none", "resampling_fold"),
fold_local_required = c(FALSE, TRUE)
)
manifest
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.