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 codecs | |
f=codecs.open('../input/phone_brand_device_model.csv', encoding='UTF-8'); | |
m = { | |
"三星": "samsung", | |
"天语": "Ktouch", | |
"海信": "hisense", | |
"联想": "lenovo", | |
"欧比": "obi", | |
"爱派尔": "ipair", | |
"努比亚": "nubia", |
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
expected=open('../output/expected.csv').readlines() | |
actual=open('../output/actual.csv').readlines() | |
#actual=open('../input/sample_submission.csv').readlines() | |
#actual=open('../output/rec24.csv').readlines() | |
c=-25671 | |
t=0 | |
for i in range(len(expected)): | |
a=actual[i] | |
e=expected[i] | |
if a==e: |
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 java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.Objects; | |
import java.util.concurrent.CountDownLatch; | |
import java.util.concurrent.TimeUnit; | |
import junit.framework.Assert; | |
import org.junit.Test; | |
import rx.Observable; | |
import rx.schedulers.TestScheduler; |