"""Perform model selection, fitting and testing for precomputed kernels using nested cv. Print out neccessary data during the process then finally the results.
"""Perform model selection, fitting and testing for precomputed kernels
using nested CV. Print out neccessary data during the process then finally
kernel function used to estimate. This function needs to return a gram matrix.
kernel function used to estimate. This function needs to return a gram matrix.
param_grid_precomputed : dictionary
param_grid_precomputed : dictionary
Dictionary with names (string) of parameters used to calculate gram matrices as keys and lists of parameter settings to try as values. This enables searching over any sequence of parameter settings. Params with length 1 will be omitted.
Dictionary with names (string) of parameters used to calculate gram
matrices as keys and lists of parameter settings to try as values. This
enables searching over any sequence of parameter settings. Params with
length 1 will be omitted.
param_grid : dictionary
param_grid : dictionary
Dictionary with names (string) of parameters used as penelties as keys and lists of parameter settings to try as values. This enables searching over any sequence of parameter settings. Params with length 1 will be omitted.
Dictionary with names (string) of parameters used as penelties as keys
and lists of parameter settings to try as values. This enables
searching over any sequence of parameter settings. Params with length 1
will be omitted.
model_type : string
model_type : string
Typr of the problem, can be regression or classification.
Typr of the problem, can be 'regression' or 'classification'.
NUM_TRIALS : integer
NUM_TRIALS : integer
Number of random trials of outer cv loop. The default is 30.
Number of random trials of outer cv loop. The default is 30.
datafile_y : string
datafile_y : string
Path of file storing y data. This parameter is optional depending on the given dataset file.
Path of file storing y data. This parameter is optional depending on
the given dataset file.
extra_params : dict
Extra parameters for loading dataset. See function pygraph.utils.