Re: [R] Help using the exclude option in the neuralnet package

2020-10-11 Thread Sebastian Mueller
Hi Dan, the easiest way to declare `exclude` and `constant.weights` is as a vector of indices. You can determine the index of the neuron as follows: The layers are arranged in sequence, with the bias neuron being the first in each layer. So in a neural net with 6 input neurons and a layer

[R] debugging S4 methods

2009-10-01 Thread sebastian mueller
Hi all, Does anyone know how to debug S4 methods? In my case I want to find an error in the specc-function of the kernlab-package. As this seems to be a S4-method the normal S3 debugging can't be applied apparently (e.g. debug(s3function.someclass)). So in my case debug(specc:kernlab) seems

Re: [R] R object as a function

2008-01-22 Thread Sebastian Mueller
On Tuesday 22 January 2008 13:52:29 Thomas Steiner wrote: Thank you very much Duncan for your quick answers. You're not passing a function as myfunk1, you're passing mf, which is the result of evaluating myfun1, so it's a numeric vector. Yes, this is exacty my problem. If I leave it away,