Python

Enable Auto Completion for pip in Zsh

Pip is a package management system for installing and managing Python software packages. To enable auto completion for pip in zsh, the documentation of pip suggests adding the following line to ~/.zshrc: eval “`pip completion –zsh`” However, merely having this line would not enable auto completion for pip3. To enable auto completion for pip3 as …

Enable Auto Completion for pip in Zsh Read More »

Swap Training and Test Data During Cross-Validation in scikit-learn

Last updated on October 11, 2018 Scikit-learn is a well known Python machine learning library. It provides various utilities for machine learning, including those for cross-validation. In a standard (K)-fold cross-validation, the data are split into (K) subsets (with equal size). There are (K) rounds of training and testing. In each round, one subset is …

Swap Training and Test Data During Cross-Validation in scikit-learn Read More »

Data Science: A Hot Job Opportunity

May 10, 2019 Posted by Brian Njoroge in Head Scratch | 4 comments Every decade, has its hottest job opportunity. During the early 1980s and early 1990s, people were in a rush to apply investment and banking jobs. In the late 90s and early 2000s, with the growth of the internet, and most Tech graduate …

Data Science: A Hot Job Opportunity Read More »

Nikola: How to Deploy Compiled Webpages to a Different Git Repository

Last updated on November 18, 2018 Nikola is one of the most popular static website generators. It compiles source files into final publishable webpages offline and then uploads those files to a web host. Compared to dynamic websites such as those powered by PHP or Ruby on Rails, static websites offer better security and faster …

Nikola: How to Deploy Compiled Webpages to a Different Git Repository Read More »

Automatic Python Linters and Formatters for Arcanist

Linting code is important when working in a team, code written by others starts becoming familiar and easier to understand. Your team will possibly be divided on a big set of important aspects(tabs or spaces duh), but it is important to decide something that works for everyone and move towards one implementation quickly. We use …

Automatic Python Linters and Formatters for Arcanist Read More »