跟随,学习,进步

Stack Abuse

Stack Abuse features News, articles, and ideas for software engineers and web developers.

https://stackabuse.com
转到作者网站

Reading and Writing YAML to a File in Python

Introduction In this tutorial, we're going to learn how to use the YAML library in Python 3. YAML stands for Yet Another Markup Language. In recent years it has become very popular for its use in storing data in a serialized manner for configuration files. Since YAML essentially is a


Solving Sequence Problems with LSTM in Python's Keras Library

In this article, you will learn how to perform time series forecasting that is used to solve sequence problems. Time series forecasting refers to the type of problems where we have to predict an outcome based on time dependent inputs. A typical example of time series data is stock market


Java: List Files in a Directory

Introduction A lot of applications handle files in some way and file manipulation is one of the core knowledges in any programming language. In order to manipulate files, we need to know where they're located. Having an overview of files in a directory is paramount if we want to accomplish


Deploying a Flask Application to Heroku

Introduction In this tutorial you will learn how to deploy a Flask application to Heroku. The app can be as simple as a "Hello World" app to a social media monitoring platform! Nowadays there is no business that doesn't have a web app to help it a reach


Java Flow Control: break and continue Statements

Introduction Conditional statements and loops are a very important tool in programming. There aren't many things we could do with code that can only execute line-by-line. That's what "flow control" means - guiding the execution of our program, instead of letting it execute line-by-line regardless of any internal


Spring Cloud: Contract

Overview In this article, we'll introduce you to Spring Cloud Contract, which is Spring's response to Consumer-Driven Contracts. Nowadays, applications are thoroughly tested - whether it be unit tests, integration tests, or end-to-end tests. It's very common in a microservice architecture that a service (consumer) communicates with another service (producer


Git: Clone a Repository

One of the many benefits of using version control software like Git is how easily you can copy the entire contents and history of a project with a simple command in your terminal. Once on your local machine, you can then make the changes/additions/deletions that you want, and


Java Flow Control: for and for-each Loops

Introduction Conditional statements and loops are a very important tool in programming. There aren't many things we could do with code that can only execute line-by-line. That's what "flow control" means - guiding the execution of our program, instead of letting it execute line-by-line regardless of any internal


Object Detection with ImageAI in Python

Introduction Object detection is a technology that falls under the broader domain of Computer Vision. It deals with identifying and tracking objects present in images and videos. Object detection has multiple applications such as face detection, vehicle detection, pedestrian counting, self-driving cars, security systems, etc. The two major objectives of


Python for NLP: Working with Facebook FastText Library

This is the 20th article in my series of articles on Python for NLP. In the last few articles, we have been exploring deep learning techniques to perform a variety of machine learning tasks, and you should also be familiar with the concept of word embeddings. Word embeddings is a


Java Flow Control: while and do-while Statements

Introduction Conditional statements and loops are a very important tool in programming. There aren't many things we could do with code that can only execute line-by-line. That's what "flow control" means - guiding the execution of our program, instead of letting it execute line-by-line regardless of any internal


Java Flow Control: The switch Statement

Introduction Conditional statements and loops are a very important tool in programming. There aren't many things we could do with code that can only execute line-by-line. That's what "flow control" means - guiding the execution of our program, instead of letting it execute line-by-line regardless of any internal


Java Flow Control: if and if-else Statements

Introduction Conditional statements and loops are a very important tool in programming. There aren't many things we could do with code that can only execute line-by-line unconditionally. That's what "flow control" means - guiding the execution of our program, instead of letting it execute line-by-line regardless of any


Introduction to the Python Pyramid Framework

Introduction In this tutorial, we're going to learn how to use the Pyramid framework in Python. It is an open source web development framework which uses the Model-View-Controller (MVC) architecture pattern and is based on Web Server Gateway Interface (WSGI). The Pyramid framework has a lot of useful add-on packages


Python for NLP: Multi-label Text Classification with Keras

Introduction This is the 19th article in my series of articles on Python for NLP. From the last few articles, we have been exploring fairly advanced NLP concepts based on deep learning techniques. In the last article, we saw how to create a text classification model trained using multiple inputs


Minimax with Alpha-Beta Pruning in Python

Introduction Way back in the late 1920s John Von Neumann established the main problem in game theory that has remained relevant still today: Players s1, s2, ..., sn are playing a given game G. Which moves should player sm play to achieve the best possible outcome? Shortly


Unit Testing in Java with JUnit 5

Introduction JUnit is a popular testing framework for Java. Simple use is very straightforward and JUnit 5 brought some differences and conveniences compared to JUnit 4. The test code is separate from the actual program code, and in most IDEs the testing results/output are also separate from the program's


Python for NLP: Creating Multi-Data-Type Classification Models with Keras

This is the 18th article in my series of articles on Python for NLP. In my previous article, I explained how to create a deep learning-based movie sentiment analysis model using Python's Keras library. In that article, we saw how we can perform sentiment analysis of user reviews regarding different


Python String Interpolation with the Percent (%) Operator

There are a number of different ways to format strings in Python, one of which is done using the % operator, which is known as the string formatting (or interpolation) operator. In this article we'll show you how to use this operator to construct strings with a template string and variables


Topological Sorting in Java

Introduction When getting dressed, as one does, you most likely haven't had this line of thought: Oh, it might have been a good idea to put on my underpants before getting into my trousers. That's because we're used to sorting our actions topologically. Or in simpler terms, we're used to