Returns the Mean Square Error (MSE).
Returns the Root Mean Square Error (RMSE).
K-fold cross-validation.
Usage: X : NxD array
Input data (N samples row-wise)
Returns a shuffled version of A. If axis = 0, then the rows are shuffled, if axis = 1 then the columns are shuffled.
Returns an matrix with the rows in A shuffled. A must be 2d.
Bases: object
The ModelWithData class encapsulates data and a model in one class, allowing easy use of new or existing algorithms, such as error function minimizers. TODO: Make more general, should be blind to x and t (just use ‘data’)
Methods
err_func | |
err_func_d | |
get_parameters | |
set_parameters |
Returns an row vector with all controllable weights in the model.
Sets the weights of the network.
Wrap a chain of function calls. It is typical to call a series of functions to obtain a result from a model. For example a preprocessing function, a model call, and a post-processing function. X0 is a defalt input for the function chain.
Parameters : | X0 : np array
functions : list of functions
**indices : dictionary, optional
|
---|---|
Returns : | eval_wrap : function
|