Model training configuration.

interface TrainingConfig {
    loss: string | string[] | {
        [key: string]: string;
    };
    loss_weights?: number[] | {
        [key: string]: number;
    };
    metrics?: string[] | {
        [key: string]: string;
    };
    optimizer_config: {};
    sample_weight_mode?: string;
    weighted_metrics?: string[];
}

Properties

loss: string | string[] | {
    [key: string]: string;
}

Loss function(s) for the model's output(s).

loss_weights?: number[] | {
    [key: string]: number;
}
metrics?: string[] | {
    [key: string]: string;
}

Metric function(s) for the model's output(s).

optimizer_config: {}

Optimizer used for the model training.

sample_weight_mode?: string
weighted_metrics?: string[]