Month: May 2021

How To Plot SKLearn Confusion Matrix With Labels?

Summary: The best way to plot a Confusion Matrix with labels, is to use the ConfusionMatrixDisplay object from the sklearn.metrics module. Another simple and elegant way is to use the seaborn.heatmap() function. Note: All the solutions provided below have been verified using Python 3.9.0b5. Problem Formulation Imagine the following lists of Actual and Predicted values …

How To Plot SKLearn Confusion Matrix With Labels? Read More »

How to Convert a Tensor to a NumPy Array in TensorFlow?

There are two ways to convert a Tensor to a NumPy array: TensorFlow version 2.x — use tensor.numpy() TensorFlow version 1.x — use tensor.eval(session=tf.compat.v1.Session()) Let’s dive into these two methods in greater detail. Method 1: Explicit Tensor to NumPy Array Conversion in TensorFlow 2.x To convert a tensor t to a NumPy array in TensorFlow …

How to Convert a Tensor to a NumPy Array in TensorFlow? Read More »

The Best Blockchain and Cryptocurrency Freelancing Platforms

Can you earn money for cryptocurrencies? With the increasing adoption of cryptocurrencies such as Bitcoin, Ethereum, and Cardano, the question naturally arise: can you sell your services for cryptocurrencies BTC, ETH, or ADA instead of USD, EUR, or CHF? The answer is: YES. And it gets better: the main idea of the blockchain is to …

The Best Blockchain and Cryptocurrency Freelancing Platforms Read More »

How to Check Your TensorFlow Version in Colab?

To check your TensorFlow version in your Jupyter Notebook such as Google’s Colab, use the following two commands: import tensorflow as tf This imports the TensorFlow library and stores it in the variable named tf. print(tf.__version__) This prints the installed TensorFlow version number in the format x.y.z. The following code example uses the dunder attribute …

How to Check Your TensorFlow Version in Colab? Read More »

How to Check the Pandas Version in Your Script?

What is the Pandas Library? The pandas library provides data structures and functionality to represent and manipulate labelled and tabular data. Think of it as like an advanced spreadsheet program in your code with functionality including—but not limited to—creating spreadsheets, accessing individual rows by name, calculating basic statistics over rows and columns, summing over cells …

How to Check the Pandas Version in Your Script? Read More »

[FANG KILLER ICP] Will the Internet Computer Disrupt Big Tech?

What is the Internet Computer? The Internet Computer is blockchain technology and computing infrastructure initiated by the non-profit organization DFinity. Like the public Internet, the Internet Computer is a distributed computing platform consisting of thousands of connected and decentralized servers that host backend software. This idea mitigates the increasing monopolization of Internet services and enables …

[FANG KILLER ICP] Will the Internet Computer Disrupt Big Tech? Read More »