MCPcopy Index your code
hub / github.com/tensorflow/tfjs / getTrainingConfig

Method getTrainingConfig

tfjs-layers/src/engine/training.ts:1977–1989  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1975 }
1976
1977 protected getTrainingConfig(): TrainingConfig {
1978 return {
1979 loss: this.getLossIdentifiers(),
1980 metrics: this.getMetricIdentifiers(),
1981 optimizer_config: {
1982 class_name: this.optimizer.getClassName(),
1983 config: this.optimizer.getConfig()
1984 } as OptimizerSerialization
1985 };
1986 // TODO(cais): Add weight_metrics when they are supported.
1987 // TODO(cais): Add sample_weight_mode when it's supported.
1988 // TODO(cais): Add loss_weights when it's supported.
1989 }
1990
1991 loadTrainingConfig(trainingConfig: TrainingConfig) {
1992 if (trainingConfig.weighted_metrics != null) {

Callers 1

saveMethod · 0.95

Calls 4

getLossIdentifiersMethod · 0.95
getMetricIdentifiersMethod · 0.95
getClassNameMethod · 0.65
getConfigMethod · 0.45

Tested by

no test coverage detected