def get_scaling(bonds_train):
    """Get the mean/std scaling factors for each ``labeled_type``.

    Args:
        bonds_train: The training data that we can use to set the values.

    Returns:
        tuple: Mean and std dicts, mapping labeled_type to scalar_coupling_constant mean/std.

    """
    # Get the mean/std scaling factors
    means = bonds_train.groupby("labeled_type").mean()["scalar_coupling_constant"].to_dict()
    stds = bonds_train.groupby("labeled_type").std()["scalar_coupling_constant"].to_dict()
    return means, stds