Understading K-Means

Understading K-Means

K-means is a clustering algorithm used to categorize data that is unlabeled. It is a type of unsupervised learning (data without categories or groups). The goal is simply to find the groups in the data defined by K. The algorithm works by iteratively assigning each data point to one of the K groups based on the features provided. Some of the use cases for K-Means are: Pattern recognition Classification analysis…

Machine and Deep Learning Tools You Should Be Using

Machine and Deep Learning Tools You Should Be Using

I've come across various tools used for machine and deep learning, both good and bad. I decided to write a quick little blog post on some of the tools machine and deep learning you should be using. Tensorflow Tensorflow is an abstraction library that allows you to build machine learning programs with an easy to use API. It was developed by researchers and engineers working on the Google Brain Team.…

Uploading Your Own Datasets to Floydhub

Uploading Your Own Datasets to Floydhub

Problem If you are using Floydhub to train your network you might run into the following issue: Directory contains too many files to upload. If you have data files in the current directory, please upload them separately using "floyd data" command and remove them from here. This occurs right before you are trying to upload files to Floydhub. It makes sense since you might have a large dataset…

Elixir Error Solution: assign @conn not available in eex template. Available
  assigns: []

Elixir Error Solution: assign @conn not available in eex template. Available assigns: []

Problem I was breaking my Elixir templates into a subtemplate but I was getting the following error: assign @conn not available in eex template. Please make sure all proper assigns have been set. If this is a child template, ensure assigns are given explicitly by the parent template as they are not automatically forwarded. Available assigns: [:event] My parent template looked something like this: <h1>All Events<…

Getting Started with Gitlab CI: Installing and Configuring Gitlab CI

Getting Started with Gitlab CI: Installing and Configuring Gitlab CI

What is this about? Over the next weeks I will go over how to use Gitlab CI from scratch. I will go over how to install and configure it on your server, run unit and integration tests, build and push Docker images, deploy code, and go over other use cases. I will assume you already use Gitlab as your repo manager since it's required by Gitlab CI. What is Gitlab…

Why I’m Excited about Artificial Neural Networks

Why I’m Excited about Artificial Neural Networks

I read a series of articles 8 months ago on a popular website called Wait But Why. The articles explain the types of AI, the force behind them, and how close we are to achieving true AI. Feel free to read the articles, they are easy to read and understand. The AI Revolution: The Road to Superintelligence The AI Revolution: Our Immortality or Extinction These articles made me think for…

See how many files are in each directory for a give directory

See how many files are in each directory for a give directory

Problem I needed to know how many files were under each directory for the directory I was on in Linux. A simple ls -la just gives you the number of files under your current directory, not sub directories. ls -la total 32 drwxr-xr-x 14 edgarpino staff 476 Jun 6 23:17 . drwxr-xr-x 17 edgarpino staff 578 Jun 2 15:03 .. drwxr-xr-x 14 edgarpino staff 476 Jun 6 23:17 .deploy_…

How To SSH Into Docker Container

How To SSH Into Docker Container

Problem Sometimes you need you access a container to debug or to access a command line tool available inside. Solution When the container is running you can use the exec Docker command to run a command in a running container. If you are using the Ubuntu image then this is how you SSH or bash into it a Docker container: docker exec -it ubuntu_container bash Note the --it option…