# 環境を作る
conda create -y -n env名 tensorflow-gpu keras ipykernel pandas matplotlib scikit-learn seaborn
conda install -y -c conda-forge category_encoders
# jupyter-notebookを起動可能にする
conda activate env名
python -m ipykernel install --user --name env名
- colortool.exe -d OneHalfDark (https://github.com/Microsoft/console/releases …)
colortoolはterminalのカラースキームを設定するもの。dos promptで設定する。 - .bashrc: デフォルトのもの
- .vimrc: https://github.com/vim/vim/blob/master/runtime/defaults.vim
http://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html
- 演算子[]と.は便利だが最適化されたものではないので、productionでは別のものを使うべき
- set演算に伴い参照とコピーのどちらが返るかは文脈に依存する。chained assignment と呼ばれるもので避けるべき。 詳しくはhttp://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#indexing-view-versus-copy
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
| " The default vimrc file. | |
| " | |
| " Maintainer: Bram Moolenaar <[email protected]> | |
| " Last change: 2017 Jun 13 | |
| " | |
| " This is loaded if no vimrc file was found. | |
| " Except when Vim is run with "-u NONE" or "-C". | |
| " Individual settings can be reverted with ":set option&". | |
| " Other commands can be reverted as mentioned below. |
https://beta.atcoder.jp/contests/soundhound2018-summer-qual のB問題 https://beta.atcoder.jp/contests/soundhound2018-summer-qual/tasks/soundhound2018_summer_qual_b の誤答例.
次のコードのようにstringに変換してから標準出力するとWAとなった。
#include <iostream>
#include
- create meshgrid data and plot contour
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
x = np.linspace(-np.pi, np.pi, 360) # linearly spaced numbers
y = np.linspace(-1,1,100) # linearly spaced numbers
xx, yy = np.meshgrid(x, y)
Useful sources
- methods: fit, transform, predict
- IO: numpy.ndarray with the shape that has sample data number in the first placeholder. ex. (number_of_samples, feature_dim).
some classes expect 1D array as y. ex. SGDRegressor
- gistのバックアップについて
gistは1つのgist毎にrepositoryが作られる。従って複数のgistを作成した場合は、別々のrepositoryになる。 バックアップをとるのであれば、すべてのgistに対してとる必要がある。 個別にrepositoryをクローンすることはできるが、すべてを対象にする公式の機能はないようだ。