Kushal Das: The correct spelling is Tor
The correct spelling is Tor, not TOR or any other variations. Please use the correct spelling of the project.
View ArticleBen Cook: SageMaker Studio Quick Start
A step-by-step quick start guide for SageMaker Studio. Start a Studio session, launch a notebook on a GPU instance and run object detection inference with a detectron2 pre-trained model.
View ArticleBen Cook: NumPy Meshgrid: Understanding np.meshgrid()
You can create multi-dimensional coordinate arrays using the np.meshgrid() function, which is also available in PyTorch and TensorFlow. But watch out! PyTorch uses different indexing by default so the...
View ArticleBen Cook: Linear Interpolation in Python: An np.interp() Example
It's easy to linearly interpolate a 1-dimensional set of points in Python using the np.interp() function from NumPy.
View ArticleBen Cook: Binary Cross Entropy Explained
A simple NumPy implementation of the binary cross entropy loss function and some intuition about why it works.
View ArticleBen Cook: NumPy All: Understanding np.all()
The np.all() function tests whether all elements in a NumPy array evaluate to true.
View ArticleBen Cook: Finding the Mode of an Empirical Continuous Distribution
You can find the mode of an empirical continuous distribution by plotting the histogram and looking for the maximum bin.
View ArticleBen Cook: NumPy Where: Understanding np.where()
The NumPy where function is like a vectorized switch that you can use to combine two arrays.
View ArticleBen Cook: TorchVision Transforms
TorchVision, a PyTorch computer vision package, has a great API for image pre-processing in its torchvision.transforms module. This post gives some basic usage examples, describes the API and shows you...
View ArticleBen Cook: NumPy Arrays to PyTorch Tensors and Back
The basics of converting NumPy arrays to PyTorch tensors and vice versa.
View ArticleBen Cook: Filtering DataFrames with the .query() Method in Pandas
Pandas provides a .query() method on DataFrame's with a convenient string syntax for filtering DataFrames. This post describes the method and gives simple usage examples.
View ArticlePython Morsels: Tuple unpacking
TranscriptLet's talk about tuple unpacking in Python.An alternative to hard-coded indexesWe have a three-item tuple, called p:>>> p = (2, 1, 3) We can access each of the things in this tuple...
View ArticleJanusworx: Thoughts on Setting Up a Blog
This post was first sent to my newsletter on March 19th, 2021.You really ought to subscribe :)I blame Mahe for this post. Hey, Jason! Can you please write an article on how to build a website like...
View ArticleReal Python: The Real Python Podcast – Episode #53: Improving the Learning...
If you haven't visited the website lately, then you're missing out on the updates to realpython.com! The site features a completely refreshed layout with multiple sections to help you take advantage of...
View ArticleQuansight Labs Blog: Accessibility: Who's Responsible?
JupyterLab Accessibility Journey Part 1For the past few months, I've been part of a group of people in the JupyterLab community who've committed to start chipping away at the many accessibility...
View ArticleTalk Python to Me: #309 What ML Can Teach Us About Life: 7 Lessons
Machine learning and data science are full of best practices and important workflows. Can we extrapolate these to our broader lives? Eugene Yan and I give it a shot on this slightly more philosophical...
View ArticlePyCharm: PyCharm 2021.1 EAP 5 is Out!
We’ve addressed a long list of issues in this bug-fix release. Here’s just a few of the major fixes: UX: The IDE no longer gets stuck when you cancel the process of opening (starting up) a project....
View ArticlePython Pool: 7 Quick Ways to Check If String is Empty in Python
IntroductionPython strings are immutable, i.e., we can change the strings according to the operations performed. String Manipulation is the most important feature in python. You can manipulate the...
View ArticlePython Pool: Multiple Ways To Print Blank Line in Python
IntroductionSometimes, while programming in Python, we came to a situation where we want to print the data in a new line, a blank line between two-lines, or print the data in the same line without...
View ArticlePython Pool: Numpy genfromtxt() | How to use Numpy genfromtxt()
IntroductionNumpy is the name that came from ‘Numerical Python.’ It is a library in python which performs n-dimensional operations on arrays. But have you ever thought about loading the data into numpy...
View Article