This file contains hidden or 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 python3 | |
# -*- coding: utf-8 -*- | |
import cv2 | |
import numpy as np | |
src = cv2.imread("./Lenna.bmp", -1) | |
dst = np.zeros_like(src) | |
def pickup_pixel(img, x, y): |
This file contains hidden or 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
Copyright (c) 2016 Kosuke Akizuki | |
Released under the MIT license | |
http://opensource.org/licenses/mit-license.php |
これは、下記のサイトを参考にpython(scikit-learn)で決定木を試したソースコード
http://data-hacker.blogspot.jp/2014/05/pythonscikit-learn.html
This file contains hidden or 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 | |
set -u | |
set -e | |
sudo apt-get install -y \ | |
build-essential \ | |
curl \ | |
git \ | |
m4 \ |
This file contains hidden or 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
package main | |
import ( | |
"fmt" | |
"net" | |
"os" | |
) | |
/* A Simple function to verify error */ | |
func CheckError(err error) { |