This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
import numpy as np | |
import sklearn.linear_model | |
from mpl_toolkits.mplot3d import Axes3D | |
X_train = np.random.rand(2000).reshape(1000,2)*60 | |
y_train = (X_train[:, 0]**2)+(X_train[:, 1]**2) | |
X_test = np.random.rand(200).reshape(100,2)*60 | |
y_test = (X_test[:, 0]**2)+(X_test[:, 1]**2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
git show-branch -a \ | |
| grep '\*' \ | |
| grep -v `git rev-parse --abbrev-ref HEAD` \ | |
| head -n1 \ | |
| sed 's/.*\[\(.*\)\].*/\1/' \ | |
| sed 's/[\^~].*//' | |
# How it works: |