active_property | R Documentation |
Create an active property class method
active_property(fn)
fn |
An R function |
fn
, with an additional R attribute that will cause fn
to be
converted to an active property when being converted to a method of a
custom subclass.
layer_foo <- Model("Foo", ..., metrics = active_property(function() { list(self$d_loss_metric, self$g_loss_metric) }))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.