def create_record_set(model, X, y):
    """Create a record set for AWS model training"""
    X_float = X.astype("float32")
    if y:
        y_float = y.astype("float32")
        return  model.record_set(X_float, labels = y_float)
    else:
        return model.record_set(X_float)