Vectors in R are supposed to be of homogeneous data type. You can use a list as the container if there are mixed data types, such as numbers and strings. The list and data frame are closely related in R. The data frame is probably more useful because it reflects how we usually collect statistics. […]
Author Archive | Adrian Tam
A Gentle Introduction to Vectors in R
R is a language for programming with data. Unlike many other languages, the primitive data types in R are not scalars but vectors. Therefore, understanding how to deal with vectors is crucial to programming or reading the R code. In this post, you will learn about various vector operations in R. Specifically, you will know: […]
An Introduction to R
R is a programming language of its kind. It is a language for statistics, and its ecosystem has a lot of libraries for all kinds of statistical tasks. It is a language targeted the statisticians rather than computer scientists. Hence you will see some unorthodox patterns in the language. In this post, you will learn […]
Building Your mini-ChatGPT at Home
ChatGPT is fun to play with. Chances are, you also want to have your own copy running privately. Realistically, that’s impossible because ChatGPT is not a software for download, and it needs tremendous computer power to run. But you can build a trimmed-down version that can run on commodity hardware. In this post, you will […]
Using the Natural Language Understanding Capability of ChatGPT
ChatGPT as a Large Language Model, is well-known for understanding human languages. Instead of asking ChatGPT for an answer you don’t know, you can make it work on existing information while leveraging the natural language understanding (NLU) capability. In this post, you will learn How to make ChatGPT produce a summary from a long text […]
Creating a PowerPoint Presentation using ChatGPT
Making ChatGPT your assistant to help you write an email is trivial since it is well-known to be very capable of generating text. It is pretty apparent that ChatGPT cannot help you cook your dinner. But you may wonder if it can generate something other than text. In the previous post, you learned that ChatGPT […]
Generating Diagrams with ChatGPT
A large language model trained with appropriate content can generate responses more than just English text. ChatGPT, for example, is known to be able to generate code in many programming languages. Indeed, you can make ChatGPT generate other content as well, such as pictures. In this post, you will learn How to make ChatGPT to […]
Using ChatGPT as Your Programming Assistant
A large language model is basically a machine that can understand and generate text. Depends on how it is trained, sometimes the model can generate something other than text. ChatGPT is such a large language model. It can generate programming code if you prompt it correctly. In this post, you will learn how to make […]
A Gentle Introduction to Hallucinations in Large Language Models
Large Language Models (LLMs) are known to have “hallucinations.” This is a behavior in that the model speaks false knowledge as if it is accurate. In this post, you will learn why hallucinations are a nature of an LLM. Specifically, you will learn: Why LLMs hallucinate How to make hallucinations work for you How to […]
A Gentle Introduction to Prompt Engineering
ChatGPT is a service provided by OpenAI that is a conversational large language model. It is widespread, and it is found to be very useful. Behind the scene, it is a large language model. Unlike the other LLMs that generate continuing text from the leading sentence you provided, ChatGPT enables you to ask questions or provide […]