UNPKG

1.79 kBJavaScriptView Raw
1/**
2 * @license
3 * Copyright 2018 Google LLC. All Rights Reserved.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 * =============================================================================
16 */
17// So typings can propagate.
18import { AdadeltaOptimizer } from './optimizers/adadelta_optimizer';
19import { AdagradOptimizer } from './optimizers/adagrad_optimizer';
20import { AdamOptimizer } from './optimizers/adam_optimizer';
21import { AdamaxOptimizer } from './optimizers/adamax_optimizer';
22import { MomentumOptimizer } from './optimizers/momentum_optimizer';
23import { OptimizerConstructors } from './optimizers/optimizer_constructors';
24import { RMSPropOptimizer } from './optimizers/rmsprop_optimizer';
25import { SGDOptimizer } from './optimizers/sgd_optimizer';
26// tslint:disable-next-line:no-unused-expression
27[MomentumOptimizer, SGDOptimizer, AdadeltaOptimizer, AdagradOptimizer,
28 RMSPropOptimizer, AdamaxOptimizer, AdamOptimizer];
29export const train = {
30 sgd: OptimizerConstructors.sgd,
31 momentum: OptimizerConstructors.momentum,
32 adadelta: OptimizerConstructors.adadelta,
33 adagrad: OptimizerConstructors.adagrad,
34 rmsprop: OptimizerConstructors.rmsprop,
35 adamax: OptimizerConstructors.adamax,
36 adam: OptimizerConstructors.adam
37};
38//# sourceMappingURL=train.js.map
\No newline at end of file