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
eXtreme Go Horse (XGH) Process | |
Source: http://gohorseprocess.wordpress.com | |
1. I think therefore it's not XGH. | |
In XGH you don't think, you do the first thing that comes to your mind. There's not a second option as the first one is faster. | |
2. There are 3 ways of solving a problem: the right way, the wrong way and the XGH way which is exactly like the wrong one but faster. | |
XGH is faster than any development process you know (see Axiom 14). |
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
#!/bin/bash | |
# Assuming AWS Sagemaker conda_pytorch_p310 environment | |
sudo yum install -y openssl-devel openssl11-libs libcurl | |
pip install --upgrade pip setuptools wheel | |
pip install fiftyone | |
pip install fiftyone-db-rhel7 --force-reinstall | |
pip install shapely polars |
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
extern crate ring; | |
use ring::aead::*; | |
use ring::pbkdf2::*; | |
use ring::rand::SystemRandom; | |
fn main() { | |
// The password will be used to generate a key | |
let password = b"nice password"; |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
from scipy.optimize import curve_fit | |
def logistic(x, x0, L, k): | |
return L / (1.0 + np.exp(-k*(x - x0))) | |
def resample(X, y) -> np.array: | |
X = np.array(X) | |
y = np.array(y) | |
bounds = (0, [1.0, np.max(y), 1000]) | |
popt, pcov = curve_fit(logistic, X, y, bounds=bounds) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# opencv-python | |
# google-cloud-storage | |
# google-cloud-vision | |
from google.cloud import storage | |
from google.cloud import vision | |
import numpy as np | |
import cv2 as cv | |
import logging | |
import os |
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 pandas as pd | |
import numpy as np | |
import logging | |
from google.cloud import storage | |
from lightgbm import LGBMRegressor | |
from sklearn.externals import joblib | |
from sklearn.impute import SimpleImputer | |
from sklearn.preprocessing import OrdinalEncoder | |
num_feat = ['MSSubClass', 'LotFrontage', 'LotArea', |
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
General configuration for OpenCV 3.4.1 ===================================== | |
-- Version control: unknown | |
-- | |
-- Extra modules: | |
-- Location (extra): /root/opencv_contrib-3.4.1/modules | |
-- Version control (extra): unknown | |
-- | |
-- Platform: | |
-- Timestamp: 2018-04-27T12:18:50Z | |
-- Host: Linux 4.9.87-linuxkit-aufs x86_64 |
NewerOlder