get_param

Return the value of the given parameter if it is explicitly by the user before starting the training. If this parameter is used with the default value, this function returns None.

Use theĀ get_all_params method to obtain the values of all training parameters (default, user-defined and dynamically calculated).

Method call format

get_param(key)

Parameters

key

Description

The key to get the value from.

Possible types

string

Default value

Required parameter

Type of return value

The value of the specified key. Returns None if the parameter does not exist.