Quantcast
Channel: Planet Python
Browsing all 24375 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

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 Article


Ben 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 Article


Ben 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 Article

Ben 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 Article

Ben Cook: Binary Cross Entropy Explained

A simple NumPy implementation of the binary cross entropy loss function and some intuition about why it works.

View Article


Ben Cook: NumPy All: Understanding np.all()

The np.all() function tests whether all elements in a NumPy array evaluate to true.

View Article

Ben 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 Article

Ben Cook: NumPy Where: Understanding np.where()

The NumPy where function is like a vectorized switch that you can use to combine two arrays.

View Article


Ben 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 Article


Ben Cook: NumPy Arrays to PyTorch Tensors and Back

The basics of converting NumPy arrays to PyTorch tensors and vice versa.

View Article

Ben 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 Article

Image may be NSFW.
Clik here to view.

Python 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 Article

Janusworx: 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 Article


Real 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 Article

Image may be NSFW.
Clik here to view.

Quansight 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 Article


Talk 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 Article

Image may be NSFW.
Clik here to view.

PyCharm: 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 Article


Python 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 Article

Python 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 Article

Image may be NSFW.
Clik here to view.

Python 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
Browsing all 24375 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>