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
from google.colab import files | |
files.upload() | |
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
p = \frac{e^{0.5rt}}{2e^{0.5rt}+c} | |
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
while(LIFE) | |
{ | |
string* state = readState(); | |
if (state == "見た目に恵まれている") | |
state = "気持ちに余裕がある"; | |
if (state == "気持ちに余裕がある") | |
state = "他人に優しくできる"; | |
if (state == "他人に優しくできる") | |
state = "内面が磨かれる"; |
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
likelihood : P(x|\theta) | |
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
P(銀行窓口係) \geq P(銀行窓口係)P(フェミニスト運動に参加) | |
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 numpy as np # linear algebra | |
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) | |
# for visualization | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
# import data | |
train = pd.read_csv('../input/train.csv') |
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 libraries | |
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
# EUR to JPY ======================================= | |
def eur2jpy(x): | |
y = np.round(x*130/10000) |
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 numpy as np | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
# Entropy as a function of probability -------- | |
# random sample for probabilities | |
p = np.arange(0.01,1,0.01) | |
# compute binary entropy |
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
%% play with the extracted objects (line) | |
% - change width of the both lines | |
% - green dash regression line | |
% - black dotted unity line | |
% regression line | |
plot(lines(2).XData, lines(2).YData, '--g','linewidth', 2) | |
hold on; |
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
# library | |
from scipy.stats import norm | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
# A-kun data | |
p = 42/100 | |
n = 100 |
NewerOlder