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
# coding: utf-8 | |
import numpy as np | |
import time | |
import chainer | |
from chainer import cuda, Function, gradient_check, Variable, optimizers, serializers, utils | |
from chainer import Link, Chain, ChainList | |
import chainer.functions as F | |
import chainer.links as L |
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
above codes emulated https://gist.github.com/stefanopalmieri/2efec0e09c14de06fb93fbb91e18a93a | |
[Run] | |
git clone https://github.com/CodeReclaimers/neat-python.git | |
cd neat-python | |
sudo python setup.py install | |
# at dir contains script and xor2.config | |
python walker_neat.py |
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
from __future__ import print_function | |
import gym | |
import numpy as np | |
import itertools | |
import os | |
from neat import nn, population, statistics | |
np.set_printoptions(threshold=np.inf) |
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
2009/1/1 | 0 | 0 | |
---|---|---|---|
2009/1/2 | 0 | 9034.69043 | |
2009/1/3 | 0 | 0 | |
2009/1/4 | 0 | 0 | |
2009/1/5 | 0 | 8952.889648 | |
2009/1/6 | 0 | 9015.099609 | |
2009/1/7 | 0 | 8769.700195 | |
2009/1/8 | 0 | 8742.459961 | |
2009/1/9 | 0 | 8599.179688 | |
2009/1/10 | 0 | 0 |
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/python | |
import numpy as np | |
import scipy.sparse | |
import xgboost as xgb | |
import pickle | |
import talib as ta | |
from datetime import datetime as dt | |
import pytz | |
INPUT_LEN = 3 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import time | |
import pysnmp.hlapi | |
import ambient | |
import traceback | |
import sys | |
SNMP_COMMUNITY = "xxxxxxxxx" | |
IP = "115.179.143.xxx" | |
PORT = 161 | |
IF_IN_OCTETS_OID_PREFIX = "1.3.6.1.2.1.2.2.x.xx." |
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
# coding: utf-8 | |
# to execute this code, you must install 'numpy' and 'wave' pip packages | |
# translate GLSL to python code: https://www.shadertoy.com/view/4l3GD2 | |
# explanation of above shadertoy page: https://qiita.com/notargs/items/be2fa153e62e3554a773 | |
import numpy as np | |
import wave | |
import struct | |
import math |
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
CentOS6.1なVPSにdocker環境を構築して、公式イメージを立ち上げて、サンプルプログラムを動かしてみる。 | |
[ryo@v133-18-203-78 ~]$ sudo yum install https://get.docker.com/rpm/1.7.1/centos-6/RPMS/x86_64/docker-engine-1.7.1-1.el6.x86_64.rpm | |
(略) | |
Resolving Dependencies | |
--> Running transaction check | |
---> Package docker-engine.x86_64 0:1.7.1-1.el6 will be installed | |
--> Finished Dependency Resolution | |
Dependencies Resolved |
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
% 分散KVSシミュレータ(Chordシミュレータ) & 分散KVS(Rust製の実システム) | |
理想的(いくらか恣意的)なノードの振る舞いを前提とした条件下で、put と get が DHT の枠組みで動作するところまで | |
シミュレーションが行えた後の記録。 | |
以下より前の消化済みTODOは記録していなかったか、コード中のTODOコメントですましていた。 | |
● joinとstabilizeとputとsuccessorを辿っていくget(実装する)を並行に動かしたときにワークするか確認 | |
・【完】joinとstabilize_successorとstabilize_ftableを並列にに実行させる形で最初からノードを追加していく | |
・【完】getは見つからなかった場合にsuccessorを一定数辿るようにする(※)。 | |
これはつまり、ノード間でノード情報をやりとりする際に、実システムでも、アドレスだけでなくsuccessorの情報を併せて |
OlderNewer