Skip to main content
Version: v1.4.1

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

1result = client.misc.get_xplainable_version()

get_version_info()

Get comprehensive version information.

Returns

VersionInfo — Version information for all components

Example

1result = client.misc.get_version_info()

ping_server()

Ping the compute server to check connectivity.

Parameters

hostnamestrdefault: None
Optional hostname to ping (uses session hostname if not provided)

Returns

PingResponse — Ping response with success status

Example

1result = client.misc.ping_server(
2 hostname="..."
3)

ping_gateway()

Ping the API gateway to check connectivity.

Parameters

hostnamestrdefault: None
Optional hostname to ping (uses session hostname if not provided)

Returns

PingResponse — Ping response with success status

Example

1result = client.misc.ping_gateway(
2 hostname="..."
3)

load_classifier()

Load a binary classification model.

Parameters

model_idstrRequired
Model ID
version_idstrRequired
Version ID
modeldefault: None
Existing model to add partitions to

Returns

Loaded xplainable classifier

Example

1result = client.misc.load_classifier(
2 model_id="model_abc123",
3 version_id="version_xyz789",
4 model=model
5)

load_regressor()

Load a regression model.

Parameters

model_idstrRequired
Model ID
version_idstrRequired
Version ID
modeldefault: None
Existing model to add partitions to

Returns

Loaded xplainable regressor

Example

1result = client.misc.load_regressor(
2 model_id="model_abc123",
3 version_id="version_xyz789",
4 model=model
5)

get_model_info()

Get information about a model without loading it.

Parameters

model_idstrRequired
Model ID
version_idstrRequired
Version ID

Returns

LoadedModelInfo — Model information

Example

1result = client.misc.get_model_info(
2 model_id="model_abc123",
3 version_id="version_xyz789"
4)

health_check()

Perform a comprehensive health check.

Parameters

check_databasebooldefault: True
Whether to check database connectivity
check_storagebooldefault: True
Whether to check storage systems
check_computebooldefault: True
Whether to check compute resources

Returns

HealthCheckResponse — Health check results

Example

1result = client.misc.health_check(
2 check_database=True,
3 check_storage=True,
4 check_compute=True
5)

parse_function()

Parse a function to a middleware function. This is a utility method from the original implementation.

Parameters

funcRequired
Function to parse

Returns

any — Parsed middleware function

Example

1result = client.misc.parse_function(
2 func="..."
3)