Article
Kruskal's algorithm is one of the three most famous algorithms for finding a minimum spanning tree (MST) in a graph. MSTs are widely used to calculate optimal paths in a lot of different fields. From a post-office calculating the optimal path for a postman that needs to cover a certain...
Dimitrije Stamenic
Converting text into a uniform case is a good starting point of any type for text processing. In this article we'll show you how to convert text to lowercase using one of the Pythons' built-in methods used to manipulate strings - str.lower(). From a top-level view, the process is...
Storing passwords securely should be imperative for any credible engineer. Plain text passwords are extremely insecure - you shouldn't even bother considering storing them a plain format. It's enough that someone gains view privileges on a database for an entire user base to be compromised. Passwords must be stored in...
Subtracting two matrices in NumPy is a pretty common task to perform. The most straightforward way to subtract two matrices in NumPy is by using the - operator, which is the simplification of the np.subtract() method - NumPy specific method designed for subtracting arrays and other array-like objects such...
Converting an object into a savable state (such as a byte stream, textual representation, etc) is called serialization, whereas deserialization converts data from the aforementioned format back to an object. A serialized format retains all the information required to reconstruct an object in memory, in the same state as it...
Mohammad Waseem
Tensors are multi-dimensional objects, and the essential data representation block of Deep Learning frameworks such as TensorFlow and PyTorch. A scalar has zero dimensions, a vector has one dimension, a matrix has two dimensions and tensors have three or more. In practice, we oftentimes refer to scalars and vectors and...
David Landup
In this short guide, learn how to sort a list in Python using the built-in sort() and sorted() functions. sort() is a method of the list class, and sorts the list in-place, returning None. sorted() is a method built into the Python namespace, and sorts the list out-of-place, returning a...
Looping with a counter variable/index - a classic in Computer Science! Typically, you'd either explicitly define a counter variable/index, and manually increment it on each loop, or you'd use some sort of syntactic sugar to avoid this process through enhanced for loops: some_list = ['Looping', '...
TensorFlow Datasets, also known as tfds is is a library that serves as a wrapper to a wide selection of datasets, with proprietary functions to load, split and prepare datasets for Machine and Deep Learning, primarily with TensorFlow. Note: While the TensorFlow Datasets library is used to get data, it's...
© 2013-2025 Stack Abuse. All rights reserved.