As a programmer, I intend to share interesting technical trivia with you. If you are not a developer, I hope this trivia will make you interested in coding and let you understand these programmers from another side.
Last night, I was going to play the game Plants vs. Zombies 2(PvZ2) on my iPhone. After I pressed the game icon, it froze at the launch screen, a few moments later, the app just crashed. I suddenly remembered a trivia knowledge about iOS from one tweet. …
In object-oriented programming, the decorator pattern is a design pattern that allows behavior to be added to an individual object, dynamically, without affecting the behavior of other objects from the same class.
— Design Patterns
In Python, you can use a function or class to implement decorators to modify the behavior of the function through a wrapper so we don’t have to actually modify the function.
The scenarios for using decorators include loggings, performance testing, transaction processing, caching, permission verification, etc. Decorators are an excellent design to solve such problems.
Through a simple example, to explain why we want to…
In 2020, although the COVID-19 pandemic has restricted people’s activities and hinders our development, in technology, people continue to move forward with difficulty and even achieve many amazing results.
As of 2021, with economic recovery and widely vaccinated, we still have to look forward to human science and technology. These four technology trends deserve our attention.
On June 11, 2020, OpenAI released an autoregressive language model -Generative Pre-trained Transformer 3(GPT-3). Even though this API is still a beta, there are lots of amazing applications using GPT-3.
You can click the link above to review these applications with GPT-3. We believe…
In a warm winter sun, you sit at a cafe by the lake, open a browser on your laptop, log in the “notebook” in the cloud, type in a deep learning model you designed, press Run All, and continue to enjoy the breath-taking natural beauty in front of you. After a while, finish your coffee, the training results are already stored in your cloud account. The cloud-based deep learning notebooks allow you to have powerful computing power anytime, anywhere.
In 2021, there are 3 proven platforms that can bring you the above experience. They are all cloud solutions based on…
When we finish writing a piece of Python code, it often does not run well normally. That’s when we need to debug the code. Although most IDEs provide support for code debugging, we will talk about 4 fundamental python debugging methods in this article.
The simplest and most common debugging method is to use print()
statements to print out the suspect variable in the terminal. Almost all programming languages can use print
statement to debug.
Please see the following code:
After the code runs, check the values of the variable printed out in the terminal to find out the…
Imagine that when you use a development tool to program, you only need to enter one or two letters, and the tool will auto-generate the following code for you. It sounds like a kind of magic. In recent years, with the development of deep learning, there is no longer a kind of science fiction, and some development tools have already the prototype of such.
From 2019 to 2020, two popular AI Code Autocomplete, TabNine and Kite, came to my attention. After a period of use, I decided to do a brief review of them to evaluate which one is more…
Disclaimer: This article is for education purposes only. I am only sharing my opinions with no guarantee of gains or losses. Your investments are solely your own responsibility. It is very important for you to conduct your own research or consult a financial adviser before you make any investment decisions.
As of this writing, Bitcoin price has crossed $19,000 and is expected to hit $20,000 in its 12-year history high by the end of 2020.
Google Cloud Platform provides us with a wealth of resources to support data science, deep learning, and AI projects. Now all we need to care about is how to design and train models, and the platform manages the rest tasks.
In current pandemic environment, the entire process of an AI project from design, coding to deployment, can be done remotely on the Cloud Platform.
I will demonstrate how to use Google Cloud Platform with GPU to build a deep learning environment from below four steps:
…
By 2020, various deep learning models such as Transformer, BERT, and GPT-series make AI become smarter and smarter, using them can achieve many incredible tasks. On the hardware, Google launched Cloud TPU allows programmers to train these “Big” models at a reasonable cost.
In this article, I share how I built a Deep learning environment using Google Cloud Platform and Cloud TPU. And I also demonstrate running a BERT model task with this environment.
There are four parts in this article:
Part 1. Create a Deep Learning VM using the Google Cloud Console
Part 2. Create a Deep Learning VM…
Software Engineer, Kaggle Competitions Expert