API Reference
OMR - Omni Data Refinement v0.3.0 The standard framework for dataset quality, validation, profiling, monitoring, and reliability.
Dataset
The primary OMR interface. Represents a dataset with built-in quality, validation, and profiling intelligence.
Source code in omr/core/dataset.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 | |
__init__(data)
Initializes the Dataset. Supports Pandas and Polars DataFrames.
Source code in omr/core/dataset.py
analyze()
Runs deep statistical analysis (outliers, skew, multicollinearity).
clean()
Auto-resolves all issues detected by health().
Source code in omr/core/dataset.py
compare(other)
Detects distribution drift against another dataset (e.g. production).
explain(issue)
Explains a data quality issue conceptually and offers fixes.
Source code in omr/core/dataset.py
explain_changes()
export()
health()
Runs the 5-pillar health check and returns a HealthReport.
pipeline()
profile()
report(format='html', path='omr_report')
Generates a physical report file.
Source code in omr/core/dataset.py
rollback(version_id)
Restores a previous snapshot.
snapshot(name='', description='')
summary()
Prints a one-line health summary.
validate(schema)
Validates the dataset against a schema of ConstraintTypes.
DatasetMetadata
dataclass
Captures essential metadata about a dataset at a point in time. Automatically updated by Dataset after every transformation.
Source code in omr/core/metadata.py
Monitor
Watches a dataset over time for changes in quality or distribution.
Source code in omr/monitoring/monitor.py
check(df)
Runs checks against the baseline and returns any alerts.
Source code in omr/monitoring/monitor.py
set_schema(schema)
Pipeline
Enables fluent chaining of Dataset operations.
Source code in omr/pipelines/pipeline.py
get_plugin(name)
Instantiates and returns a registered plugin by name.
register_plugin(name)
Decorator to register a third-party plugin class.
Example
@register_plugin("medical") class MedicalPlugin: def validate(self, dataset): ...