
Last chance! 50% off unlimited learning
Sale ends in
Symbolic element-wise 0-1 step function for LazyTensor
objects
(i.e. 0
if x < 0
, 1
if x >= 0
for an input x
) or stepwise
model selection otherwise.
step(object, ...)
See value of step.default()
or step.LazyTensor()
.
input for step.default()
or
step.LazyTensor()
.
optional additional input arguments.
Chloe Serre-Combe, Amelie Vernay
If x
is a LazyTensor
, see step.LazyTensor()
, else
see step.default()
.
step.default()
, step.LazyTensor()
if (FALSE) {
# R base operation: see `?step.default`
# LazyTensor symbolic element-wise sign
x <- matrix(runif(150 * 3), 150, 3) # arbitrary R matrix, 150 rows, 3 columns
x_i <- LazyTensor(x, index = 'i') # creating LazyTensor from matrix x,
# indexed by 'i'
Step_x <- step.LazyTensor(x_i) # symbolic matrix, 150 rows and 3 columns
}
Run the code above in your browser using DataLab