UNPKG

1.42 kBTypeScriptView Raw
1/// <amd-module name="@tensorflow/tfjs-layers/dist/exports_constraints" />
2/**
3 * @license
4 * Copyright 2018 Google LLC
5 *
6 * Use of this source code is governed by an MIT-style
7 * license that can be found in the LICENSE file or at
8 * https://opensource.org/licenses/MIT.
9 * =============================================================================
10 */
11import { Constraint, MaxNormArgs, MinMaxNormArgs, UnitNormArgs } from './constraints';
12/**
13 * MaxNorm weight constraint.
14 *
15 * Constrains the weights incident to each hidden unit
16 * to have a norm less than or equal to a desired value.
17 *
18 * References
19 * - [Dropout: A Simple Way to Prevent Neural Networks from Overfitting
20 * Srivastava, Hinton, et al.
21 * 2014](http://www.cs.toronto.edu/~rsalakhu/papers/srivastava14a.pdf)
22 *
23 * @doc {heading: 'Constraints',namespace: 'constraints'}
24 */
25export declare function maxNorm(args: MaxNormArgs): Constraint;
26/**
27 * Constrains the weights incident to each hidden unit to have unit norm.
28 *
29 * @doc {heading: 'Constraints', namespace: 'constraints'}
30 */
31export declare function unitNorm(args: UnitNormArgs): Constraint;
32/**
33 * Constains the weight to be non-negative.
34 *
35 * @doc {heading: 'Constraints', namespace: 'constraints'}
36 */
37export declare function nonNeg(): Constraint;
38/** @doc {heading: 'Constraints', namespace: 'constraints'} */
39export declare function minMaxNorm(config: MinMaxNormArgs): Constraint;