public class ConfigContext extends Object implements AutoCloseable
See the parameter document for supported global configuration. The configuration is restored upon close.
| Constructor and Description |
|---|
ConfigContext() |
ConfigContext(Map<String,Object> params) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Object |
getConfig(String name) |
void |
setConfig(String key,
Object value)
Set one single configuration
|
void |
setConfigs(Map<String,Object> configs)
Set a bunch of configurations
|
public ConfigContext()
throws XGBoostError
XGBoostErrorpublic ConfigContext(Map<String,Object> params) throws XGBoostError
XGBoostErrorpublic Object getConfig(String name) throws XGBoostError
XGBoostErrorpublic void setConfig(String key, Object value) throws XGBoostError
XGBoostErrorpublic void setConfigs(Map<String,Object> configs) throws XGBoostError
XGBoostErrorpublic void close()
throws XGBoostError
close in interface AutoCloseableXGBoostErrorCopyright © 2026. All rights reserved.