%<-active% {keras} | R Documentation |
Make an Active Binding
Description
Make an Active Binding
Usage
sym %<-active% value
Arguments
sym |
symbol to bind |
value |
A function to call when the value of |
Details
Active bindings defined in a %py_class%
are converted to
@property
decorated methods.
Value
value
, invisibly
See Also
Examples
set.seed(1234)
x %<-active% function(value) {
message("Evaluating function of active binding")
if(missing(value))
runif(1)
else
message("Received: ", value)
}
x
x
x <- "foo"
x <- "foo"
x
rm(x) # cleanup
[Package keras version 2.15.0 Index]