We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to self define metric instead of using one of the pre-defined metrics
The text was updated successfully, but these errors were encountered:
or how to add a sklearn metric into
def _get_metrics(self, metrics, set_eps=False): metrics_ = {} if metrics: for metric in metrics: if metric == "binary_crossentropy" or metric == "logloss": if set_eps: metrics_[metric] = self._log_loss else: metrics_[metric] = log_loss if metric == "auc": metrics_[metric] = roc_auc_score if metric == "mse": metrics_[metric] = mean_squared_error if metric == "accuracy" or metric == "acc": metrics_[metric] = self._accuracy_score self.metrics_names.append(metric) return metrics_
Sorry, something went wrong.
No branches or pull requests
How to self define metric instead of using one of the pre-defined metrics
The text was updated successfully, but these errors were encountered: