Use the set_config_params function to set the configurations in Vantage.
Alternatively, you can set the configuration parameters independently using the teradataml.configure module.
Optional arguments "kwargs" specifies keyword arguments:
- certificate_file: Specifies the path of the certificate file, which is used in encrypted REST service calls.
- default_varchar_size: Specifies the size of varchar datatype in Vantage.
The default size is 1024.
- vantage_version: Specifies the version of the Vantage system teradataml is connected to.
- val_install_location: Specifies the database name where Vantage Analytic Library (VAL) functions are installed.
- byom_install_location: Specifies the database name where Bring Your Own Model (BYOM) functions are installed.
- sandbox_container_id: Specifies the id of the sandbox container that will be used by the Script.test_script() method.
- database_version: Specifies the database version of the system teradataml is connected to.
- read_nos_function_mapping: Specifies the function mapping name for the READ_NOS table operator function.
- write_nos_function_mapping: Specifies the function mapping name for the WRITE_NOS table operator function.
Example 1: Set configuration parameters using set_config_params() function
>>> from teradataml import set_config_params
>>> set_config_params(certificate_file="cert.crt", default_varchar_size=512, val_install_location="VAL_USER", sandbox_container_id="bgf1233csdh123", read_nos_function_mapping="read_nos_fm", write_nos_function_mapping="write_nos_fm") True
Example 2: Set configuration parameters using configure module
>>> from teradataml import configure
>>> configure.certificate_file="cert.crt"
>>> configure.default_varchar_size=512
>>> configure.val_install_location="VAL_USER"
>>> configure.sandbox_container_id="bgf1233csdh123"
>>> configure.read_nos_function_mapping="read_nos_fm"
>>> configure.write_nos_function_mapping="write_nos_fm"