python sklearn - mutual information
http://scikit-learn.org/stable/auto_examples/cluster/plot_adjusted_for_chance_measures.html
score function 이 많을 때 이렇게.. 관리할 수 있구낭..
how to use sk learn mi
http://scikit-learn.org/stable/modules/generated/sklearn.metrics.mutual_info_score.html
what is mi? (for nlp student)
http://nlp.stanford.edu/IR-book/html/htmledition/mutual-information-1.html
결국!
tag"system_action" 이 나온다 (문서번호 순서대로)[0,0,0,0,1,1,1]
unit"합니다"이 나온다 [0,1,1,1,1,1, 0 ]
이 두개 넘겨주면 된다는 것!
how to override method
http://stackoverflow.com/questions/10202938/how-do-i-use-method-overloading-in-python
esle if
http://stackoverflow.com/questions/2395160/what-is-the-correct-syntax-for-else-if
Getting key with maximum value in dictionary
http://stackoverflow.com/questions/268272/getting-key-with-maximum-value-in-dictionary
삼항연산자
http://hashcode.co.kr/questions/9/%ED%8C%8C%EC%9D%B4%EC%8D%AC%EC%97%90-%EC%82%BC%ED%95%AD%EC%97%B0%EC%82%B0%EC%9E%90%EA%B0%80-%EC%9E%88%EB%82%98%EC%9A%94
a if test else b
list size
len(list)
----
zero list maker
http://stackoverflow.com/questions/11509721/how-do-i-initialize-a-dictionary-of-empty-lists-in-python
----
2d list to 1d list python
use '+'
how to get unique values from a list in python
http://stackoverflow.com/questions/12897374/get-unique-values-from-a-list-in-python
what is mi? (for nlp student)
http://nlp.stanford.edu/IR-book/html/htmledition/mutual-information-1.html
결국!
tag"system_action" 이 나온다 (문서번호 순서대로)[0,0,0,0,1,1,1]
unit"합니다"이 나온다 [0,1,1,1,1,1, 0 ]
이 두개 넘겨주면 된다는 것!
how to override method
http://stackoverflow.com/questions/10202938/how-do-i-use-method-overloading-in-python
esle if
http://stackoverflow.com/questions/2395160/what-is-the-correct-syntax-for-else-if
Getting key with maximum value in dictionary
http://stackoverflow.com/questions/268272/getting-key-with-maximum-value-in-dictionary
삼항연산자
http://hashcode.co.kr/questions/9/%ED%8C%8C%EC%9D%B4%EC%8D%AC%EC%97%90-%EC%82%BC%ED%95%AD%EC%97%B0%EC%82%B0%EC%9E%90%EA%B0%80-%EC%9E%88%EB%82%98%EC%9A%94
a if test else b
list size
len(list)
----
zero list maker
http://stackoverflow.com/questions/11509721/how-do-i-initialize-a-dictionary-of-empty-lists-in-python
----
2d list to 1d list python
use '+'
how to get unique values from a list in python
http://stackoverflow.com/questions/12897374/get-unique-values-from-a-list-in-python
mylist = [u'nowplaying', u'PBS', u'PBS', u'nowplaying', u'job', u'debate', u'thenandnow']
myset = set(mylist)
print myset
댓글
댓글 쓰기