- sofia-ml https://code.google.com/p/sofia-ml/
- scikit-learn
- gensim http://radimrehurek.com/gensim/
- StatsModels http://statsmodels.sourceforge.net/
- PyMC http://pymc-devs.github.io/pymc/
- emcee http://dan.iel.fm/emcee/current/
- Goodman & Weare’s Affine Invariant Markov chain Monte Carlo (MCMC) Ensemble sampler
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
#!/usr/bin/env python | |
help = ''' | |
python one liner | |
Usage: pyone [OPTIONS] code [OPTIONS] [--] [file1, file2, ...] | |
-e code | |
-E code | |
-l | |
-Mmodule[,module,...] | |
-n |
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
escape ^Tt | |
term xterm | |
termcap xterm hs@ | |
terminfo xterm hs@ | |
defscrollback 100000 | |
startup_message off | |
vbell off | |
bind h focus left | |
bind j focus down | |
bind k focus up |
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
reduce(lambda x, y: x + y, map(lambda x: Counter(**{x: 1}), 'aba')) |
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 os.path | |
class Path: | |
def __init__(self, path = os.path.curdir): | |
assert isinstance(path, str) or isinstance(path, self.__class__) | |
if isinstance(path, str): | |
self.path = path | |
else: | |
self.path = path.path |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
'abc' rlike 'b'
は true
になる。これは java.util.regex.Matcher.find()
を使っているから (rlike
の実体は UDFRegExp
。詳しくは FunctionRegistry.java
と UDFRegExp.java
を参照)。もし matches()
だと全体が一致しないとマッチしない。
http://docs.oracle.com/javase/jp/7/api/java/util/regex/Matcher.html
import matplotlib.pyplot as plt
import numpy as np
fig, ax = plt.subplots()
ax.hist(np.random.randn(10000), 20, label = 'series 1', alpha=0.3, color='r')
ax.hist(np.random.randn(10000), 20, label = 'series 2', alpha=0.3, color='b')
legend = ax.legend(loc = 'upper left')
plt.savefig('a.png')
- hivemall https://github.com/myui/hivemall
- hive で machine learning
- http://qiita.com/myui/items/f726ca3dcc48410abe45
OlderNewer