                + &#34;Something went wrong.  Please open a GitHub issue.&#34;
            )
    return (
        preproc.get_regression_model(metrics=metrics)
        if loss_func == &#34;mse&#34;
        else preproc.get_classifier(metrics=metrics)
    )


def _build_nbsvm(
    num_classes,
    maxlen,
    max_features,
    features,
    loss_func=&#34;categorical_crossentropy&#34;,
    activation=&#34;softmax&#34;,
    metrics=[&#34;accuracy&#34;],
    verbose=1,
    train_data=None,
):
    if train_data