- perplexity:Melody RNN 代码里perplexity作为训练指标有实现
- Key consistency,生成旋律属于同一个调(C,B,D,E)的概率 A Classifying Variational Autoencoder with Application to Polyphonic Music Generation
- P_{dia} 等价于Key consistency
- P_{spi} 相邻两音符跨度不超过一个八度(short pitch interval)的概率
- P_{tri} 三和弦(triad)出现的概率 以上三种指标来自于Composing Music with Grammar Argumented Neural Networks and Note-Level Encoding
- 主观打分 MIDINET: A CONVOLUTIONAL GENERATIVE ADVERSARIAL NETWORK FOR SYMBOLIC-DOMAIN MUSIC GENERATION; DeepBach: a Steerable Model for Bach Chorales Generation
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 pythonds.basic.stack import Stack | |
def infixToPostfix(infixexpr): | |
prec = {} | |
prec["*"] = 3 | |
prec["/"] = 3 | |
prec["+"] = 2 | |
prec["-"] = 2 | |
prec["("] = 1 | |
opStack = Stack() |
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
class BinaryTree(): | |
def __init__(self,rootid): | |
self.left = None | |
self.right = None | |
self.rootid = rootid | |
def getLeftChild(self): | |
return self.left |
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
class BinaryTree(): | |
def __init__(self,rootid): | |
self.left = None | |
self.right = None | |
self.rootid = rootid | |
def getLeftChild(self): | |
return self.left |
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
class BinaryTree(): | |
def __init__(self,rootid): | |
self.left = None | |
self.right = None | |
self.rootid = rootid | |
def getLeftChild(self): | |
return self.left |
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/python3.5 | |
""" | |
"PYSTONE" Benchmark Program | |
Version: Python/1.2 (corresponds to C/1.1 plus 3 Pystone fixes) | |
Author: Reinhold P. Weicker, CACM Vol 27, No 10, 10/84 pg. 1013. | |
Translated from ADA to C by Rick Richardson. |
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
[ | |
{ | |
"domain": ".grammarly.com", | |
"expirationDate": 1587434763, | |
"hostOnly": false, | |
"httpOnly": false, | |
"name": "_ga", | |
"path": "/", | |
"sameSite": "no_restriction", | |
"secure": false, |
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 requests | |
#http://docs.python-requests.org/en/latest/user/quickstart/#post-a-multipart-encoded-file | |
url = "http://localhost:5000/" | |
fin = open('simple_table.pdf', 'rb') | |
files = {'file': fin} | |
try: | |
r = requests.post(url, files=files) | |
print r.text |
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 trueskill import Rating, rate_1vs1 | |
import sounddevice as sd | |
## Microsoft TrueSkill System | |
# [Ref](https://en.wikipedia.org/wiki/TrueSkill) | |
# [Package](http://trueskill.org/) | |
model_list = ['basic_rnn_emb_rate_0.5', 'lookback_rnn_emb_rate_0.5', 'attention_rnn_emb_rate_0.5', .........] |
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
### 唇语 | |
#### 经过标注人员挑选过正面清晰 唇部完整的小图 | |
/raid/data1/corpus/annotated/wellDone | |
#### 原始视频文件 | |
/raid/data1/corpus/video | |
/raid/data1/LipReadProject/oriVideo | |
### 音频 | |
#### 原始音频文件 420560条 | |
/raid/data1/corpus/audio/corpus_audio.tar | |
/raid/data1/LipReadProject/oriAudio |