Description Usage Arguments Details Value See Also Examples
Predict new examples in conjunction with osnnet
.
1 | predict.osnnet(object, newdata, type = c("raw", "class"), ...)
|
object |
Object of class |
newdata |
A |
type |
Type of output. |
... |
Arguments passed to or from other methods. |
This function is a method for the generic function predict()
for class
"osnnet"
.
It can be invoked by calling predict(x)
for an object x
of the
appropriate class, or directly by calling predict.osnnet(x)
regardless of
the class of the object.
If the response in formula
is a factor, appropriate classification
networks are constructed; these have one output and entropy fit if the
number of levels is two, and a number of outputs equal to the number
of classes and a softmax output stage for more levels. If the
response is not a factor, it is passed on unchanged to predict.osnnet
.
Optimization is done via the BFGS method of optim
.
If type = "raw"
, the matrix of values returned by the trained network;
if type = "class"
, the corresponding class (which is probably only
useful if the net was generated by osnnet.formula
).
Other observation_specific nnet: osnnet
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.