Goto

Collaborating Authors

 Statistical Learning


#003 D TF Gradient Descent in TensorFlow Master Data Science

#artificialintelligence

In this post we will see how to implement Gradient Descent using TensorFlow. Next, we will define our variable \(\omega \) and we will initialize it with \(-3 \). With the following peace of code we will also define our cost function \(J(\omega) (\omega – 3) 2 \). With the next two lines of code, we specify the initialization of our variables (here we have just one variable \(\omega \) and the gradient descent for minimizing our cost function with the learning rate of \(0.01 \). Then we will define a session as sess and we will run the init so we will initialize the variable \(\omega \).


Data Science Explains Why Every Hit Pop Song Sounds the Same

#artificialintelligence

There's a Nirvana song that you may not have heard that, ironically, describes why you have heard another Nirvana song, "Smells Like Teen Spirit," which dominated the airwaves in the early '90s and still endures today. It's called "Verse Chorus Verse" and it follows the song structure it's named for, which most pop songs, including "Teen Spirit" and recent smashes like "Old Town Road," rely on. The only weird thing, though, is that the song is about frontman Kurt Cobain's chronic stomach pain and the medications he illegally took. That title is a play on a common dig at pop songs--all of them sound the same. Now, two student researchers at the University of San Francisco have leveraged Spotify data to figure out if that's really true.


R Neural Network

#artificialintelligence

In the previous four posts I have used multiple linear regression, decision trees, random forest, gradient boosting, and support vector machine to predict MPG for 2019 vehicles. It was determined that svm produced the best model. In this post I am going to use the neuralnet package to fit a neural network to the cars_19 dataset. The raw data is located on the EPA government site. Similar to the other models, the variables/features I am using are: Engine displacement (size), number of cylinders, transmission type, number of gears, air inspired method, regenerative braking type, battery capacity Ah, drivetrain, fuel type, cylinder deactivate, and variable valve.


Machine Learning Algorithms Utilizing Functional Respiratory Imaging May Predict COPD Exacerbations

#artificialintelligence

A total of 11 baseline FRI parameters could significantly distinguish ( p 0.05) the development of AECOPD from a stable period. In contrast, no baseline clinical or pulmonary function test parameters allowed significant classification. Furthermore, using Support Vector Machines, an accuracy of 80.65% and positive predictive value of 82.35% could be obtained by combining baseline FRI features such as total specific image-based airway volume and total specific image-based airway resistance, measured at functional residual capacity. Patients who developed an AECOPD, showed significantly smaller airway volumes and (hence) significantly higher airway resistances at baseline.


Modelling Efficient Military Deployments with Machine Learning -- K-Means Clustering in R

#artificialintelligence

Armed forces in Latin America & the Caribbean are faced with the challenge of having to operate with a multi-dimensional mandate. In times of heightened civil unrest they are required to undertake peace-keeping operations, gang warfare driven by the arms-for-drugs trade calls for counter-insurgence style deployments and seasonal natural disasters often require their services to support the essential services under extreme conditions. With limited resources, every opportunity to prevent the unnecessary expenditure while maintaining effectiveness needs to be taken. In this post I will demonstrate how the application of the K-means clustering algorithm, in the context of how Naval Forces in Latin America and the Caribbean, can be used to schedule efficient Naval deployments and reduce the number of unnecessary operations. For this example I simulated 200 data points that represent the location of incidents that would result in the need for Naval resources to be deployed in the Caribbean Sea. The data have a timestamp that indicates the time of day of each incident on a 24-hour clock cycle.


Comprehensive Guide to 12 Dimensionality Reduction Techniques

#artificialintelligence

Have you ever worked on a dataset with more than a thousand features? I have, and let me tell you it's a very challenging task, especially if you don't know where to start! Having a high number of variables is both a boon and a curse. It's great that we have loads of data for analysis, but it is challenging due to size. It's not feasible to analyze each and every variable at a microscopic level. It might take us days or months to perform any meaningful analysis and we'll lose a ton of time and money for our business! Not to mention the amount of computational power this will take. We need a better way to deal with high dimensional data so that we can quickly extract patterns and insights from it. So how do we approach such a dataset?


Reinforcement Learning, Bayesian Statistics, and Tensorflow Probability: a child's game - Part 2

#artificialintelligence

In the first part, we explored how Bayesian Statistics might be used to make reinforcement learning less data-hungry. Now we execute this idea in a simple example, using Tensorflow Probability to implement our model. When it comes to games, it is difficult to imagine something simpler than rock, paper, scissors. Despite the simplicity, googling the game reveals a remarkable body of literature. We want to use Bayesian Statistics to play this game and exploit the biases of a human opponent.


Regularization in Machine Learning

#artificialintelligence

Hello Guys, This blog contains all you need to know about regularization. This blog is all about mathematical intuition behind regularization and its Implementation in python.This blog is intended specially for newbies who are finding regularization difficult to digest. For any machine learning enthusiast, understanding the mathematical intuition and background working is more important then just implementing the model. I am new to world of blogging so If anyone encounters any problem whether conceptual or language-related please comment below. Back in the days, when I came across regularization it became difficult for me to to get mathematical intuition behind it.


I wasn't getting hired as a Data Scientist. So I sought data on who is.

#artificialintelligence

At the time I'm writing this, every single trending article in my Towards Data Science home page is talking about applying or learning a particular skill in data science. At the top are big-picture skills such as How to Work With Stakeholders as a Data Scientist and How to Become a Data Engineer, followed by a litany of very specific skills including technical primers on Batch Gradient Descent vs. Stochastic Gradient Descent, Multi-Class Text Classification, Faster R-CNN, et cetera. As a dedicated Medium platform for "sharing concepts, ideas, and codes" in data science, it is not surprising that such learning resources attain high popularity amongst Towards Data Science followers, who are probably navigating data-centric projects and professions. But to a novice looking to prioritize what is essential, it can quickly become daunting. Should one train to become a master Kaggler?


#006A Fast Logistic Regression Master Data Science

#artificialintelligence

When we are programming Logistic Regression or Neural Networks we should avoid explicit \(for \) loops. It's not always possible, but when we can, we should use built-in functions or find some other ways to compute it. Vectorizing the implementation of Logistic Regression makes the code highly efficient. In this post we will see how we can use this technique to compute gradient descent without using even a single \(for \) loop. This code was non-vectorized and highly inefficent so we need to transform it.