Nothing
#' Apply penalties on layer parameters
#'
#' Regularizers allow to apply penalties on layer parameters or
#' layer activity during optimization. These penalties are
#' incorporated in the loss function that the network optimizes.
#'
#' The penalties are applied on a per-layer basis. The exact API
#' will depend on the layer, but the layers Dense, Conv1D, Conv2D
#' and Conv3D have a unified API.
#'
#' @param max_value maximum value to allow for the value (max_norm only)
#' @param axis axis over which to apply constraint (max_norm only)
#'
#' @example inst/examples/constraints.R
#' @template boilerplate
#' @name Constraints
NULL
#' @rdname Constraints
#' @export
max_norm <- function(max_value = 2.0, axis=0) {
keras_check()
modules$keras.constraints$max_norm(max_value, axis = int32(axis))
}
#' @rdname Constraints
#' @export
non_neg <- function() {
keras_check()
modules$keras.constraints$non_neg()
}
#' @rdname Constraints
#' @export
unit_norm <- function() {
keras_check()
modules$keras.constraints$unit_norm()
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.