これは、「scikit-learnで始める機械学習 チュートリアル」のテストコードです。
git clone https://gist.github.com/8bd959a3d71bf6ff6487bc8885f5c9de.git
cd 8bd959a3d71bf6ff6487bc8885f5c9de| #!/bin/bash | |
| set -u | |
| set -e | |
| sudo apt-get install -y \ | |
| build-essential \ | |
| curl \ | |
| git \ | |
| m4 \ |
これは、下記のサイトを参考にpython(scikit-learn)で決定木を試したソースコード
http://data-hacker.blogspot.jp/2014/05/pythonscikit-learn.html
| Copyright (c) 2016 Kosuke Akizuki | |
| Released under the MIT license | |
| http://opensource.org/licenses/mit-license.php |
| #! /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): |
Error: --with-openssl and --with-libressl are both specified and
curl can only use one at a time.
というエラーが出た時の対処法
| #! /usr/bin/env python3 | |
| from sklearn import datasets | |
| from sklearn.cross_validation import train_test_split | |
| from sklearn.preprocessing import StandardScaler | |
| from sklearn.linear_model import Perceptron | |
| from sklearn.metrics import accuracy_score | |
| import numpy as np | |
| iris = datasets.load_iris() |
| #include <string> | |
| #include <iostream> | |
| #include <stdio.h> | |
| #include <curl/curl.h> | |
| void check_verification() { | |
| #ifdef SKIP_PEER_VERIFICATION | |
| /* | |
| * If you want to connect to a site who isn't using a certificate that is | |
| * signed by one of the certs in the CA bundle you have, you can skip the |
Ubuntu 16.04 LST Docker Install スクリプト
from https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04