pyFM.spectral.nearest_neighbor.get_config

pyFM.spectral.nearest_neighbor.get_config(key=None)

Return the current configuration, or value of specific key

Parameters:

key (str, optional) – One of the keys of DEFAULTS. If None, the whole configuration.

Returns:

config – A copy of the configuration, or the single value bound to key.

Return type:

dict or object