My code example focusing on Python programming and data science.
Greatest Common Divisor
Find the greatest common divisor of
Generate a list of prime numbers recursively.
Solve Hanoi tower problem recursively.
Separate text into list and calculate word frequency.
Standard ML is a general-purpose, modular, functional programming language with compile-time type checking and type inference. In the code I made several functions to deal with date calculation.
Julia is a high-level, high-performance dynamic programming language for numerical computing. In this example, I build a function to calculate multi-loss of parameter estimation.
Data Collection and EDA
Collect data through Twitter API and detect whether the top two US president candidates' tweets were written by their aides through visualization. It is based on homework from DS100.
Determine whether input sentence is positive or negative based on naive bayes algorithm.
Linear regression based on gradient descent algorithm.
Mini-batch gradient descent
Calculate the same linear regression as gradient descent but using smaller sample to train the model.
Classify whether the data is 1 or 0 (shown in the decision boundary graph) using TensorFlow.