MLRelated.com

Why use Area under the curve? (AUC - ROC)

Leonard DieguezLeonard Dieguez ● September 12, 2023

In scenarios with imbalanced datasets, ROC curves and AUC-ROC scores are valuable tools for assessing and comparing the performance of machine learning classifiers. They help provide insights into a model's ability to distinguish between classes and can guide decision-making regarding threshold selection.


Machine Learning Models Basic Performance Metrics

Leonard DieguezLeonard Dieguez ● June 10, 2023

When analyzing data using ML, a suitable model is selected based on the task. Classifier models learn from labeled training data and predict discrete classes, while regression models learn from training data and predict continuous values. To evaluate the performance of machine learning models, various metrics are used. These include accuracy, precision, recall, F1 score, AUC-ROC, MAE, MSE, and R-squared. The choice of metrics depends on the specific problem and the nature of the data. Visualization tools such as confusion matrices, ROC curves, precision-recall curves and others can be used to gain insights into the performance of classifiers and understand their behavior. When dealing with imbalanced data, using accuracy as an evaluation metric can be misleading. Accuracy does not account for class imbalance, it may overestimate the performance. It is important to consider other metrics such as AUC and others which provide a more comprehensive evaluation performance in imbalanced datasets.


TensorFlow Datasets

Peter McLaughlinPeter McLaughlin ● October 30, 2022

This article explains how TensorFlow Datasets (TFDS) work and how to create custom datasets for public or private sharing. It describes three common scenarios—publishing a dataset publicly, modifying an existing public dataset, and sharing datasets within an organization—and highlights TFDS's goal to automate downloading and preparing data in a TensorFlow-ready on-disk format. The piece walks through using tfds.load to access catalog datasets (e.g., MNIST, OxfordIIITPet), installing the tensorflow-datasets package, and using the TFDS CLI to scaffold a GeneratorBasedBuilder subclass. It details the required methods (_info, _split_generators, _generate_examples) and best practices such as using the download manager and controlling data_dir, concluding that TFDS simplifies reproducible dataset distribution and preparation.


TensorFlow Datasets

Peter McLaughlinPeter McLaughlin ● October 30, 2022

This article explains how TensorFlow Datasets (TFDS) work and how to create custom datasets for public or private sharing. It describes three common scenarios—publishing a dataset publicly, modifying an existing public dataset, and sharing datasets within an organization—and highlights TFDS's goal to automate downloading and preparing data in a TensorFlow-ready on-disk format. The piece walks through using tfds.load to access catalog datasets (e.g., MNIST, OxfordIIITPet), installing the tensorflow-datasets package, and using the TFDS CLI to scaffold a GeneratorBasedBuilder subclass. It details the required methods (_info, _split_generators, _generate_examples) and best practices such as using the download manager and controlling data_dir, concluding that TFDS simplifies reproducible dataset distribution and preparation.


Machine Learning Models Basic Performance Metrics

Leonard DieguezLeonard Dieguez ● June 10, 2023

When analyzing data using ML, a suitable model is selected based on the task. Classifier models learn from labeled training data and predict discrete classes, while regression models learn from training data and predict continuous values. To evaluate the performance of machine learning models, various metrics are used. These include accuracy, precision, recall, F1 score, AUC-ROC, MAE, MSE, and R-squared. The choice of metrics depends on the specific problem and the nature of the data. Visualization tools such as confusion matrices, ROC curves, precision-recall curves and others can be used to gain insights into the performance of classifiers and understand their behavior. When dealing with imbalanced data, using accuracy as an evaluation metric can be misleading. Accuracy does not account for class imbalance, it may overestimate the performance. It is important to consider other metrics such as AUC and others which provide a more comprehensive evaluation performance in imbalanced datasets.


Why use Area under the curve? (AUC - ROC)

Leonard DieguezLeonard Dieguez ● September 12, 2023

In scenarios with imbalanced datasets, ROC curves and AUC-ROC scores are valuable tools for assessing and comparing the performance of machine learning classifiers. They help provide insights into a model's ability to distinguish between classes and can guide decision-making regarding threshold selection.