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
/.idea/ | |
/cmake-build-debug/ | |
/dungeon |
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
sudo add-apt-repository ppa:graphics-drivers -y | |
sudo apt-get update | |
sudo apt-get install nvidia-driver-418 nvidia-utils-418 nvidia-settings -y | |
wget -N https://developer.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda_10.1.105_418.39_linux.run | |
wget -N http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/libcudnn7_7.5.0.56-1+cuda10.1_amd64.deb | |
sudo ./cuda_10.1.105_418.39_linux.run --override --silent --toolkit --no-opengl-libs | |
sudo dpkg -i libcudnn7_7.5.0.56-1+cuda10.1_amd64.deb | |
sudo apt-get install libcupti-dev -y |
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
{ | |
"transcript": "the Roman letter was used side by side with the Gothic.", | |
"words": [ | |
{ | |
"case": "success", | |
"end": 0.11, | |
"endOffset": 3, | |
"phones": [ | |
{ | |
"duration": 0.05, |
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
# Author: Kyle Kastner | |
# License: BSD 3-Clause | |
import os | |
import copy | |
import numpy as np | |
import matplotlib | |
matplotlib.use("TkAgg") | |
import matplotlib.pyplot as plt | |
from scipy.io import wavfile | |
import scipy.signal as sg |
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
# Author: Kyle Kastner | |
# License: BSD 3-Clause | |
# A port of the code from | |
# "Griffin-Lim Like Phase Recovery via Alternating Direction Method of Multipliers", Yoshiki Masuyama, Kohei Yatabe, Yasuhiro Oikawa | |
# https://ieeexplore.ieee.org/document/8552369 | |
# https://codeocean.com/capsule/1284665/tree/v1 | |
# into numpy | |
import numpy as np | |
import scipy.signal as sg | |
import scipy |
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
# https://ubuntuforums.org/archive/index.php/t-751169.html | |
sudo apt-get install -y festival festlex-cmu festlex-poslex festlex-oald libestools1.2 unzip | |
sudo apt-get install -y festvox-don festvox-rablpc16k festvox-kallpc16k festvox-kdlpc16k | |
mkdir cmu_tmp | |
pushd . | |
cd cmu_tmp/ | |
wget -c http://www.speech.cs.cmu.edu/cmu_arctic/packed/cmu_us_awb_arctic-0.90-release.tar.bz2 | |
wget -c http://www.speech.cs.cmu.edu/cmu_arctic/packed/cmu_us_bdl_arctic-0.95-release.tar.bz2 |
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
# Author: Kyle Kastner | |
# License: BSD 3-Clause | |
# Vectorized, alternating update CFR+ for Kuhn poker | |
# For specific algorithmic details see | |
# http://jeskola.net/cfrp_mt.pdf | |
# https://pdfs.semanticscholar.org/ed52/8594465e96f51fd9a3cf00401bfba20597fa.pdf | |
# An alternate overview using scalar, simultaneous updates | |
# https://justinsermeno.com/posts/cfr/ |
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
# Author: Kyle Kastner | |
# License: BSD 3-Clause | |
# Inspired from blogpost by Justin Sermeno https://justinsermeno.com/posts/cfr/ | |
# Extended with algorithms described by Oskari Tammelin http://jeskola.net/cfr/demo/ by | |
# Particularly, solve has core game logic | |
# http://jeskola.net/cfr/demo/solve.js | |
# basecfr: http://poker.cs.ualberta.ca/publications/NIPS07-cfr.pdf | |
# cfrplus: https://arxiv.org/abs/1407.5042 |
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
# Author: Kyle Kastner | |
# License: BSD 3-Clause | |
# Drectly lifted from the great blogpost by Justin Sermeno https://justinsermeno.com/posts/cfr/ | |
# References: | |
# https://int8.io/counterfactual-regret-minimization-for-poker-ai/ | |
# http://cs.gettysburg.edu/~tneller/modelai/2013/cfr/cfr.pdf | |
# https://github.com/Limegrass/Counterfactual-Regret-Minimization/blob/notes/Learning_to_Play_Poker_using_CounterFactual_Regret_Minimization.pdf | |
# http://poker.cs.ualberta.ca/publications/Burch_Neil_E_201712_PhD.pdf | |
# http://mlanctot.info/files/papers/PhD_Thesis_MarcLanctot.pdf |
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
# extending on code from | |
# https://github.com/58402140/Fruit | |
import os | |
import numpy as np | |
import matplotlib | |
matplotlib.use('TkAgg') | |
from matplotlib import pyplot as plt | |
import copy | |
import time | |
from collections import Counter |