Registry / ai-ml / raiutils

raiutils

JSON →
library0.4.2pypypi✓ verified 86d ago

Common basic utilities used across various Responsible AI tools from Microsoft, including raiwidgets and responsibleai. Version 0.4.2, released as part of the responsible-ai-toolbox monorepo. Package is maintained alongside the broader toolbox, with occasional patches.

pip install raiutils
INSTALL
IMPORT
SIG · RAIUTILS
R
raiutils
ai-mlpythonv0.4.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

raiutils
import raiutils
raiutils is a namespace package; direct import is fine.

Demonstrates basic usage of raiutils data validation.

import raiutils # Check if a dataset is valid from raiutils.data_processing import validate_dataset import pandas as pd df = pd.DataFrame({'a': [1, 2, 3], 'b': [4, 5, 6]}) validate_dataset(df, target_column='a') print('Dataset validation passed')
Debug
Known issues
gotcharaiutils is not intended to be used standalone; it is a dependency for raiwidgets and responsibleai. Direct use of internal APIs may break without notice.
fix
Only import raiutils modules that are documented or used by the higher-level packages.
affects: all
gotchaThe package version is not aligned with the main toolbox releases. raiutils 0.4.2 may be used with a range of raiwidgets/responsibleai versions.
fix
Check compatibility with your specific raiwidgets/responsibleai version by verifying the toolbox release notes.
affects: >=0.4.0
gotchaSome utility functions may have been moved or renamed in more recent toolbox versions. Always refer to the source code or documentation of the exact toolbox version you are using.
fix
Pin versions and test after upgrading the responsible-ai-toolbox.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'raiutils'
raiutils is not installed or the environment is missing it.
fix
Run 'pip install raiutils'
AttributeError: module 'raiutils' has no attribute 'validate_dataset'
Direct import of raiutils does not include submodules; you must import the specific module.
fix
Use 'from raiutils.data_processing import validate_dataset'
Upgrade
Version history
0.4.2latest on PyPI · released Apr 15, 2024
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
OpenAI (training)
1
Resources
raiutils — pip install raiutils · libregistry