gweijie01@gmail.com
Latest from gweijie01@gmail.com
-
How To Calculate Eigenvectors And Eigenvalues With Numpy
Eigenvectors and eigenvalues with numpy In machine learning, eigenvectors and eigenvalues come up quite a bit. They are used in a variety of data science techniques such as Principal Component Analysis for dimensionality reduction of features. Let’s take a look at how to calculate these linear algebra values efficiently with Numpy, a popular python
Read More… -
Python Scikit Learn Random Forest Classification Tutorial
Random Forest Random forest is a classic machine learning ensemble method that is a popular choice in data science. An ensemble method is a machine learning model that is formed by a combination of less complex models. In this case, our Random Forest is made up of combinations of Decision Tree classifiers. How this work
Read More… -
Build Your First Neural Network With Python And Keras
Keras Deep Learning Keras is one of the most popular software frameworks used currently for deep learning in python. It is a higher level api that makes it extremely simple to build deep neural nets on top of frameworks such as Tensorflow, Theano, and CNTK. In this example, we will use the mnist dataset that
Read More… -
The Different Types Of Machine Learning Problems
Types Of Machine Learning There are 3 main types of machine learning problems: Supervised Machine Learning Unsupervised Machine Learning Reinforcement Learning Supervised Machine Learning In supervised machine learning, there is usually labeled data that is used to predict a target attribute. The main classes of supervised machine learning: Classification Regression Classification is used when you
Read More… -
Python Perceptron Tutorial
Python Perceptron Neural networks have been a popular topic lately. It comes up quite often in conversations throughout the tech circle. The basic building block of any neural network is the perceptron. It has actually been around for some time in computer science. To learn about how they work, lets build our own perceptron
Read More… -
How To Standardize Data In Python With Scikit Learn
Standardization Sometimes when you are working with datasets for data science, you will need to standardize your dataset before fitting a machine learning model to it. What exactly does standardization do? It essentially takes your values and shifts the values so that the original mean value is placed at 0 and the standard deviation is
Read More… -
How To Normalize Data In Python With Scikit Learn
Normalization Sometimes when you are working with datasets, you will need to preprocess them for your machine learning models. One form of preprocessing is called normalization. It basically takes your dataset and changes the values to between 0 and 1. The smallest value becomes the 0 value and the largest value becomes 1. All other
Read More… -
How to repeat a string in Swift 4
Ever wanted to repeat a string x number of times? There is a simple way to do it in Swift 4. Check it out: let numberOfRepeats = 3 String(repeating: “stringToRepeat”, count: numberOfRepeats) So the “stringToRepeat” will repeat numberOfRepeats times.
-
How To Change Navigation Bar Color iOS Swift 5
Sometimes you will want to change the color of your navigation bar for branding purposes, and it is actually pretty easy to do. Use the following snippet in your view controller in viewDidLoad to change the color you would like. // get the navigation bar from the current navigation controller if there is one let
Read More… -
How To Customize UITabBar Icon Highlight Color iOS Swift 5
So Tabbed applications are pretty common nowadays. It is a great design pattern to follow when you are setting up your application. One of the customizations I was trying to accomplish today was to make the icon highlight in different colors. Personally, I wanted my current tab to show up in orange instead of blue,
Read More…
Recent Comments