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 random | |
import sys | |
alpha = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"] | |
hand1 = 22 #Change | |
hand2 = 5 #Change | |
rot_state1 = 0 #Change | |
rot_state2 = 1 #Change | |
rot_state3 = 2 #Change | |
rot_state0 = 3 #Change | |
chr1 = 23 #Change |
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 matplotlib import pyplot as plt | |
from matplotlib import patches | |
import pandas as pd | |
import numpy as np | |
def BrierScores(actual_outcome, fitted_value): | |
X = np.array(actual_outcome) | |
p = np.array(fitted_value) | |
B = sum((p-X)**2)/len(X) | |
return B |
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 math, random | |
from matplotlib import pyplot as plt | |
def normal_cdf(x, mu=0, sigma=1): | |
return (1 + math.erf((x - mu) / math.sqrt(2) / sigma)) / 2 | |
def inverse_normal_cdf(p, mu=0, sigma=1, tolerance=0.00001): | |
if mu != 0 or sigma != 1: | |
return mu + sigma * inverse_normal_cdf(p, tolerance=tolerance) |
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 functions as fn | |
from time import sleep | |
scale = 6 | |
kifu = {} | |
now = [] | |
end = 0 | |
t = 0 | |
while end == 0: | |
board = fn.board_set(kifu, now, scale) |
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
randomize | |
shiai_num = 10000 ;shiai_numの数値と等しい回数の試合を行います。 | |
;データ読み込み変数定義 | |
dim b1,10 | |
dim b2,10 | |
dim b3,10 | |
dim b4,10 | |
dim st,10 | |
dim std,10 | |
dim bunt,10 |
NewerOlder