Skip to content

Instantly share code, notes, and snippets.

View yumatsuoka's full-sized avatar

YumaMatsuoka yumatsuoka

  • Tokyo
View GitHub Profile
/* このプログラムでは、コピーコンストラクタを使用して
strtypeオブジェクトを関数に渡す */
#include <iostream>
#include <cstdlib>
#include <string.h>
using namespace std;
class User{
int id;
char *name;
@yumatsuoka
yumatsuoka / p124_4-5-5.cpp
Created November 19, 2018 08:51
2018_cpp_class_example_p124_4-5-5
#include <iostream>
using namespace std;
class samp{
int i, j;
public:
void set_ij(int a, int b){i=a; j=b;}
/* 引数1つのコンストラクタを実装して、
引数なしのコンストラクタをコメントアウトしてみる。
"no matching constructor for initialization of samp[10]"。
@yumatsuoka
yumatsuoka / work_log.md
Last active April 17, 2017 21:43
GPUマシンのセットアップ(ubuntu14.04, cuda8.0, cudnn6.0)

とりあえず実行

sudo apt-get update
sudo apt-get upgrade

普段使い用マシンのセットアップ

sudo apt-get install ibus-mozc
sudo ibus-setup
env LANGUAGE=C LC_MESSAGES=C xdg-user-dirs-gtk-update
sudo timedatectl set-local-rtc true
wget -q https://www.ubuntulinux.jp/ubuntu-ja-archive-keyring.gpg -O- | sudo apt-key add -

@yumatsuoka
yumatsuoka / .tmux.conf
Last active April 17, 2017 05:57
setup_ubuntu14.04GUI
#prefix$B%-!<$r(BC-a$B$KJQ99$9$k(B
set -g prefix C-a
# C-b$B$N%-!<%P%$%s%I$r2r=|$9$k(B
unbind C-b
# $B%-!<%9%H%m!<%/$N%G%#%l%$$r8:$i$9(B
set -sg escape-time 1
# $B%&%#%s%I%&$N%$%s%G%C%/%9$r(B1$B$+$i;O$a$k(B

log which is making cuda env with tensorflow by yumatsuoka

environments

local machine

Ubuntu: 14.04

AWS machine

@yumatsuoka
yumatsuoka / pca+svm_gridsearch.ipynb
Created December 22, 2016 15:14
PCA + SVM with GridSearch using Scikit-learn
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yumatsuoka
yumatsuoka / make shuffle and combination.ipynb
Last active November 8, 2016 04:50
Make a batch size of shuffle and combination array on a dataset
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yumatsuoka
yumatsuoka / [numpy]3 layer neural net.py
Created August 16, 2016 04:09
python script version former numpy neural network
# coding: utf-8
# 非線形問題を解くNeuralNetwork(Numpy)
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import six, time
import numpy as np
import pandas as pd
@yumatsuoka
yumatsuoka / [numpy]3 layer neural net.ipynb
Created August 16, 2016 03:59
reconstruct former 3 layer neural net applied to XOR and Iris dataset with Numpy
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yumatsuoka
yumatsuoka / 3+layer+neural+net+smarter+.py
Created August 14, 2016 18:52
Python script version. It's same content as the former jupyter script.
# coding: utf-8
# XOR, UCI_Iris datasetを解くNeuralNetwork
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import six, math, random, time
import pandas as pd
import matplotlib.pyplot as plt