Python tutorials

Minimax in Python: Learn How to Lose the Game of Nim

You’ve gotten to know the steps of the minimax algorithm. In this section, you’ll implement minimax in Python. You’ll start by tailoring the algorithm directly to the game of Simple-Nim. Later, you’ll refactor your code to separate the core of the algorithm from the rules of the game, such that you can later apply your minimax code to other games. Implement a Nim-Specific Minimax Algorithm Consider the same example as in the previous section: it’s Maximillian’s turn, and there are […]

Read more

FAST TEXT ALGORITHM

FastText is a lightweight, open-source framework that enables users to learn text representations and classifiers. It runs on common, generic hardware. This model may be used to create an unsupervised or supervised learning technique for obtaining word vector representations. This module has acquired a lot of interest in the NLP community and might be a viable alternative to the genism package, which includes Word Vectors and other features. FastText differs in that word vectors, also known as word2vec, take   […]

Read more
1 72 73 74 75 76 181