Utilities
Version info, health checks, and model loading.
All methods are accessed via client.misc.
get_xplainable_version()
Get the installed xplainable package version.
Returns
str — Version string
Example
get_version_info()
Get comprehensive version information.
Returns
VersionInfo — Version information for all components
Example
ping_server()
Ping the compute server to check connectivity.
Parameters
NoneReturns
PingResponse — Ping response with success status
Example
ping_gateway()
Ping the API gateway to check connectivity.
Parameters
NoneReturns
PingResponse — Ping response with success status
Example
load_classifier()
Load a binary classification model.
Parameters
NoneReturns
Loaded xplainable classifier
Example
load_regressor()
Load a regression model.
Parameters
NoneReturns
Loaded xplainable regressor
Example
get_model_info()
Get information about a model without loading it.
Parameters
Returns
LoadedModelInfo — Model information
Example
health_check()
Perform a comprehensive health check.
Parameters
TrueTrueTrueReturns
HealthCheckResponse — Health check results
Example
parse_function()
Parse a function to a middleware function. This is a utility method from the original implementation.
Parameters
Returns
any — Parsed middleware function