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
# Monte Carlo (virtual kodoku) | |
import gym | |
import numpy as np | |
import plotly.plotly as py | |
import plotly.graph_objs as go | |
from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot | |
import gym | |
import random | |
import math |
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
# Q-learning with designed reward | |
# import gym | |
import numpy as np | |
import plotly.plotly as py | |
import plotly.graph_objs as go | |
from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot | |
import gym | |
import random | |
init_notebook_mode(connected=True) |
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 gym | |
import numpy as np | |
import plotly.plotly as py | |
import plotly.graph_objs as go | |
from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot | |
import gym | |
import random | |
init_notebook_mode(connected=True) | |
env = gym.make('CartPole-v1') |
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 gym | |
import numpy as np | |
# import plotly.plotly as py | |
# import plotly.graph_objs as go | |
# from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot | |
# import random | |
# init_notebook_mode(connected=True) | |
env = gym.make('CartPole-v1') |
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 gym | |
import numpy as np | |
import plotly.plotly as py | |
import plotly.graph_objs as go | |
from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot | |
import gym | |
import random | |
init_notebook_mode(connected=True) | |
env = gym.make('CartPole-v1') |
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 gym | |
import numpy as np | |
import plotly.plotly as py | |
import plotly.graph_objs as go | |
from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot | |
import gym | |
init_notebook_mode(connected=True) | |
env = gym.make('CartPole-v1') | |
data = [] |
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
ar birthdate = new Date(1970, 1, 1); | |
var today = new Date(); | |
var dayMs = 1000*60*60*24; | |
var startAge = 10; | |
var startPoint = new Date(birthdate.getTime()); | |
startPoint.setYear(birthdate.getFullYear() + startAge); | |
var accum = startPoint.getTime(); | |
for (var i = startAge; i < 100; i ++) { |
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
# $Id$ | |
# このファイルは改行コードがLF、文字エンコーディングがEUC-JPでなければなりません。 | |
# 五つ目の項目は次状態です。無ければ項目自体を省略します。 | |
# エントリの順序には気を付けて下さい。例えば「ba」というエントリに出会うと、 | |
# AquaSKKはまず「b」という枝を探しますが、ここではまだ存在しないので | |
# 「b」という空の枝を作成します。この後に「b」というエントリが現れると | |
# そのエントリ「b」は既に定義されているのでどうなるか分かりません。 | |
# 最初の項目の,は半角カンマに置換されます。 |
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
# $Id$ | |
# このファイルは改行コードがLF、文字エンコーディングがEUC-JPでなければなりません。 | |
# 五つ目の項目は次状態です。無ければ項目自体を省略します。 | |
# エントリの順序には気を付けて下さい。例えば「ba」というエントリに出会うと、 | |
# AquaSKKはまず「b」という枝を探しますが、ここではまだ存在しないので | |
# 「b」という空の枝を作成します。この後に「b」というエントリが現れると | |
# そのエントリ「b」は既に定義されているのでどうなるか分かりません。 | |
# 最初の項目の,は半角カンマに置換されます。 |
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
# $Id$ | |
# このファイルは改行コードがLF、文字エンコーディングがEUC-JPでなければなりません。 | |
# 五つ目の項目は次状態です。無ければ項目自体を省略します。 | |
# エントリの順序には気を付けて下さい。例えば「ba」というエントリに出会うと、 | |
# AquaSKKはまず「b」という枝を探しますが、ここではまだ存在しないので | |
# 「b」という空の枝を作成します。この後に「b」というエントリが現れると | |
# そのエントリ「b」は既に定義されているのでどうなるか分かりません。 | |
# 最初の項目の,は半角カンマに置換されます。 |