2012-11-11T01:35:40 *** amstan has quit IRC (Quit: Konversation terminated!) 2012-11-11T01:37:21 *** amstan has joined #aichallenge 2012-11-11T01:37:22 *** ChanServ sets mode: +o amstan 2012-11-11T01:57:49 *** antimatroidl has joined #aichallenge 2012-11-11T03:11:49 *** UncleVasya has joined #aichallenge 2012-11-11T03:28:46 *** djr_ has quit IRC (Ping timeout: 246 seconds) 2012-11-11T03:44:06 *** scribble has quit IRC () 2012-11-11T04:06:06 *** thestinger has quit IRC (Quit: sleep) 2012-11-11T04:08:55 *** pairofdice has joined #aichallenge 2012-11-11T04:13:34 *** foRei has joined #aichallenge 2012-11-11T05:27:31 *** amstan has quit IRC (Read error: Connection reset by peer) 2012-11-11T05:28:01 *** ramn[mba] has joined #aichallenge 2012-11-11T05:46:51 *** phildunstan has joined #aichallenge 2012-11-11T06:32:35 *** antimatroidl has quit IRC (Ping timeout: 260 seconds) 2012-11-11T06:33:47 *** antimatroidl has joined #aichallenge 2012-11-11T06:51:15 *** mcstar has joined #aichallenge 2012-11-11T06:51:27 rpscontest doest support numpy :( 2012-11-11T06:53:02 i like to keep my loc count low 2012-11-11T07:01:56 *** phildunstan has quit IRC (Ping timeout: 245 seconds) 2012-11-11T07:02:20 is there a matrix abstraction based on python lists? 2012-11-11T07:02:30 well, tensor, not matrix 2012-11-11T07:02:37 i want higher ranks than 2 2012-11-11T07:02:57 this is joke, that they dont provide numpy 2012-11-11T07:12:02 no numpy ? but every other contest in the world links in the platform math library ! 2012-11-11T07:12:57 it is not the platform's math library 2012-11-11T07:13:03 there is a 'math' module for python 2012-11-11T07:13:28 *** antimatroidl has quit IRC (Ping timeout: 260 seconds) 2012-11-11T07:13:33 numpy is just damn convenient, and given the nature of the contest, it is not understandable why they dont provide it 2012-11-11T07:14:06 they run the python code with google app engine 2012-11-11T07:14:07 yes there is also some math.h for c++, but usually the constest link against -lm for some extra math ^^ 2012-11-11T07:14:28 so i guess, numpy is not provided by that, and they didnt bother.. 2012-11-11T07:15:30 mleise: it takes more time to write a necessary utility functions for the list, than it took to write the whole algorithm :( 2012-11-11T07:15:50 a->the 2012-11-11T07:16:27 is numpy also adding big integers or is that a python core feature ? 2012-11-11T07:16:45 core 2012-11-11T07:19:21 http://hpaste.org/77570 2012-11-11T07:19:24 that was the code 2012-11-11T07:20:12 and now it is 2 times longer ? 2012-11-11T07:20:39 that wasn't even a screen page 2012-11-11T07:20:40 we'll see 2012-11-11T07:21:07 im not finished yet, im still angry XD 2012-11-11T07:21:28 *** antimatroidl has joined #aichallenge 2012-11-11T07:23:38 question is, can i pass back a reference to a position, on which i can use [] 2012-11-11T07:24:14 well, no, it doesnt make sense 2012-11-11T07:27:47 great, ugly hack applied 2012-11-11T07:34:08 mleise: i think i made a mistake, it plays much worse than before 2012-11-11T07:34:46 yeah, i definitely f'd up something 2012-11-11T07:35:14 you mean with the same code, just numpy replaced by your code ? 2012-11-11T07:35:25 yes 2012-11-11T07:37:34 lol 2012-11-11T07:37:43 i forgot a 'return' 2012-11-11T07:37:47 how annoying 2012-11-11T07:38:29 def argmax(lst): return lst.index(max(lst)) 2012-11-11T07:38:37 i forgot to write that return 2012-11-11T07:39:16 mleise: +20 lines 2012-11-11T07:39:29 barely tolerable 2012-11-11T07:40:03 almost 60% increase in loc 2012-11-11T07:42:07 mleise: http://www.rpscontest.com/entry/661002 2012-11-11T07:44:46 nice win rate of 100% ;) 2012-11-11T07:45:07 i like their human vs. computer mode 2012-11-11T07:47:05 shit at first I won most of the rounds, but at round 18 your bot got me 2012-11-11T07:49:57 *** phildunstan has joined #aichallenge 2012-11-11T07:50:34 mleise: where? 2012-11-11T07:50:39 are you running it locally? 2012-11-11T07:50:57 ah 2012-11-11T07:50:58 no on their website "Human vs. Computer" 2012-11-11T07:51:01 ok i get it 2012-11-11T07:51:06 i didnt see that 2012-11-11T07:51:40 mleise: first 50 rounds are random 2012-11-11T07:51:51 if len(history_op) < 50: 2012-11-11T07:52:08 49 then 2012-11-11T07:52:14 lol 2012-11-11T07:52:59 well the leader bot is totally killing me. 6 throws: 3 compurer wins, 3 draws 2012-11-11T07:52:59 the matches last for 1000 rounds 2012-11-11T07:53:37 I just can't get a single right click against it 2012-11-11T07:53:40 yay, win rate is still 100% after 3 games 2012-11-11T07:55:08 a human doesnt stand a chance against these bots 2012-11-11T07:55:26 the only strategy is to play truly randomly, which humans cant do 2012-11-11T07:55:58 *** UncleVasya has quit IRC (Quit: UncleVasya) 2012-11-11T08:01:49 my mouse wants to tell me something 2012-11-11T08:01:54 i think he is hungry 2012-11-11T08:02:08 *** Scooper has joined #aichallenge 2012-11-11T08:31:58 *** sigh has quit IRC (Remote host closed the connection) 2012-11-11T08:34:00 *** sigh has joined #aichallenge 2012-11-11T09:01:00 *** cyphase has quit IRC (Ping timeout: 260 seconds) 2012-11-11T09:08:10 *** Accoun has quit IRC (Ping timeout: 245 seconds) 2012-11-11T09:09:54 *** dici has joined #aichallenge 2012-11-11T09:12:40 *** cyphase has joined #aichallenge 2012-11-11T09:22:13 *** phildunstan has quit IRC () 2012-11-11T09:25:23 *** yashar_sb_sb has joined #aichallenge 2012-11-11T09:27:22 fuck 2012-11-11T09:27:26 this was intense 2012-11-11T09:28:06 mleise: i clicked on the first rosalind problem set, to download the input data 2012-11-11T09:28:13 damn thins is timed, 5 minutes 2012-11-11T09:28:16 thing* 2012-11-11T09:28:37 and i didnt even have anything open to solve the problem 2012-11-11T09:28:51 *** dici has quit IRC (Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )) 2012-11-11T09:28:54 i solved it, with 10s remaining 2012-11-11T09:29:06 but what an adrenaline rush! 2012-11-11T09:29:23 i felt like the hacker guy in Swordfish 2012-11-11T09:30:03 *** dici has joined #aichallenge 2012-11-11T09:31:06 oh, shit 2012-11-11T09:31:15 i was doing this: 2012-11-11T09:31:17 with f as open('rosalind_dna.txt','r'): s = f.readline() 2012-11-11T09:31:22 and wondered why it didnt work 2012-11-11T09:31:37 with open('rosalind_dna.txt','r') as f: s = f.readline() 2012-11-11T09:31:47 this is the correct one, and it makes sense too 2012-11-11T09:36:52 hm 2012-11-11T09:37:12 maybe only the upload window is times, since it says, you can have unlimited tries... 2012-11-11T09:37:17 timed* 2012-11-11T09:47:13 *** iglo has joined #aichallenge 2012-11-11T10:12:35 *** epicmonkey has joined #aichallenge 2012-11-11T10:42:33 *** yashar_sb_sb has quit IRC (Quit: Page closed) 2012-11-11T11:16:10 *** amstan has joined #aichallenge 2012-11-11T11:16:10 *** ChanServ sets mode: +o amstan 2012-11-11T12:07:06 *** phildunstan has joined #aichallenge 2012-11-11T12:28:28 lol wtf happened? 2012-11-11T12:28:47 solifugid beats accoun! 2012-11-11T12:30:36 smiley1983: is solifugid_final your lastly submitted bot for aichallenge? 2012-11-11T12:47:27 *** thestinger has joined #aichallenge 2012-11-11T12:48:04 *** thestinger is now known as Guest56041 2012-11-11T12:48:32 *** Guest56041 is now known as thestinger 2012-11-11T12:53:16 heh, i didnt know there was science behind spirit boards 2012-11-11T13:23:27 136th 2012-11-11T13:25:28 thestinger: do you know of a better way to index nested python lists then using repeated []? 2012-11-11T13:25:33 than* 2012-11-11T13:26:19 all equally long? 2012-11-11T13:26:38 i dont think that should matter 2012-11-11T13:27:07 (better, i.e. wrt what i have now) 2012-11-11T13:27:17 mcstar: what kind of structure do they have? 2012-11-11T13:27:23 nestedness 2012-11-11T13:27:27 XD 2012-11-11T13:27:43 rank-n tensor 2012-11-11T13:28:00 so it's a known size? 2012-11-11T13:28:06 as in, it doesn't just grow to N long 2012-11-11T13:28:08 yeah, that doesnt change 2012-11-11T13:28:26 tuple unpacking :P 2012-11-11T13:28:32 perhaps flatten them 2012-11-11T13:28:47 add offset to index 2012-11-11T13:29:01 yeah, and why not allocate memory with malloc, while at it 2012-11-11T13:29:01 tho that is probably much worse than what you are doing 2012-11-11T13:29:11 aren 2012-11-11T13:29:12 t you 2012-11-11T13:29:14 mcstar: you can do stuff like ((a, b), (c, d)) = [[1,2],[3,4]] 2012-11-11T13:29:27 thestinger: no, i want indexing, not unpacking 2012-11-11T13:29:58 make a class and overload [] how you want it? :P 2012-11-11T13:30:05 numpy is nice, since you can say: array[(i1,i2,...)] 2012-11-11T13:30:15 yeah, overload __getitem__ 2012-11-11T13:30:26 so you can have a list of indices, turn that into a tuple, and index the multi dim array with that 2012-11-11T13:30:26 sec 2012-11-11T13:31:06 thestinger: i was asking about []before, you said it is a bytecode operation, there is no function call 2012-11-11T13:31:19 mcstar: well for built-ins, there isn't 2012-11-11T13:31:19 so there is, after all 2012-11-11T13:31:29 ok 2012-11-11T13:31:47 then sublassing is the easiest way probably 2012-11-11T13:31:47 c 2012-11-11T13:32:01 also, * doesnt copy the list! 2012-11-11T13:32:09 [1,2,3]*4 2012-11-11T13:32:15 I know 2012-11-11T13:32:22 but that makes it useless 2012-11-11T13:32:29 mcstar: http://sprunge.us/bTFX 2012-11-11T13:32:49 that's python3 though 2012-11-11T13:32:53 yeah, that was i had in mind 2012-11-11T13:33:02 incorrect 2012-11-11T13:33:08 that was what i had in mind 2012-11-11T13:33:44 also that's why you should never use type() :P 2012-11-11T13:33:59 isinstance works with subclassed stuff too 2012-11-11T13:34:04 whats the equivalent of super in python2? 2012-11-11T13:34:16 mcstar: super, but you have to manually pass args 2012-11-11T13:34:52 super(Foo, self) 2012-11-11T13:34:59 thestinger: how is this handled? list[i] += 1 2012-11-11T13:35:28 lets say, that list is not list but Foo that you just wrote 2012-11-11T13:35:35 __setitem__ ? 2012-11-11T13:35:41 works for slices too 2012-11-11T13:35:45 xs[2:3] = [1,2] 2012-11-11T13:36:01 but it is not set, but incerement 2012-11-11T13:36:09 isnt that different? 2012-11-11T13:36:16 mcstar: __getitem__ and __setitem__ 2012-11-11T13:36:19 maybe 2012-11-11T13:36:22 try it 2012-11-11T13:36:47 maybe it calles __setitem__ with 1+old_value ? 2012-11-11T13:36:52 calls* 2012-11-11T13:37:31 thestinger: rpscontest doesnt provide numpy, so i had to simulate arrays with lists :( 2012-11-11T13:37:45 well, not simulate, but replace 2012-11-11T13:37:49 substitute 2012-11-11T13:37:55 imitate 2012-11-11T13:37:56 oh also I forgot to put self in that 2012-11-11T13:38:02 mcstar: array.array 2012-11-11T13:38:09 oh 2012-11-11T13:38:27 i was asking about if there is non-numpy multidemensional array support 2012-11-11T13:38:41 not really 2012-11-11T13:39:05 then what is array? 2012-11-11T13:39:13 it is not in the stdlib 2012-11-11T13:39:24 it is 2012-11-11T13:39:26 http://docs.python.org/3.3/library/array.html 2012-11-11T13:39:36 wait 2012-11-11T13:39:38 it is 2012-11-11T13:40:05 it's a typed array with specific sized types, basically 2012-11-11T13:41:31 i think the old style looked better 2012-11-11T13:41:38 the blue and green theme 2012-11-11T13:42:55 mcstar: http://sprunge.us/WAYb 2012-11-11T13:43:09 it just uses __getitem__, increments it, and passed the result to __setitem__ 2012-11-11T13:47:49 *** jacob_strauss has joined #aichallenge 2012-11-11T14:02:50 *** amstan_ has joined #aichallenge 2012-11-11T14:02:51 *** ChanServ sets mode: +o amstan_ 2012-11-11T14:04:52 *** amstan has quit IRC (Ping timeout: 246 seconds) 2012-11-11T14:34:21 *** djr_ has joined #aichallenge 2012-11-11T14:57:43 *** thestinger has quit IRC (Ping timeout: 246 seconds) 2012-11-11T15:15:07 *** iglo has quit IRC (Remote host closed the connection) 2012-11-11T15:54:21 *** pairofdice has quit IRC (Quit: In girum imus nocte et consumimur igni.) 2012-11-11T16:08:22 *** jacob_strauss has quit IRC (Quit: jacob_strauss) 2012-11-11T16:16:20 *** Accoun has joined #aichallenge 2012-11-11T16:21:22 *** epicmonkey has quit IRC (Ping timeout: 246 seconds) 2012-11-11T16:44:09 *** scribble has joined #aichallenge 2012-11-11T17:41:32 *** foRei has quit IRC (Read error: Connection reset by peer) 2012-11-11T18:07:17 *** jacob_strauss has joined #aichallenge 2012-11-11T18:09:19 *** sigh has quit IRC (Remote host closed the connection) 2012-11-11T18:13:35 *** Dici_ has joined #aichallenge 2012-11-11T18:13:35 *** dici has quit IRC (Disconnected by services) 2012-11-11T18:13:37 *** Dici_ is now known as dici 2012-11-11T18:17:18 *** antimatroidl has quit IRC (Quit: Leaving.) 2012-11-11T18:18:43 *** mceier has quit IRC (Remote host closed the connection) 2012-11-11T18:19:33 *** mceier has joined #aichallenge 2012-11-11T18:19:58 *** mceier has quit IRC (Client Quit) 2012-11-11T18:20:24 *** mceier has joined #aichallenge 2012-11-11T18:22:13 *** ramn[mba] has quit IRC (Quit: ramn[mba]) 2012-11-11T18:22:24 *** jacob_strauss has quit IRC (Quit: jacob_strauss) 2012-11-11T18:22:47 *** dici has quit IRC (Ping timeout: 248 seconds) 2012-11-11T18:23:17 *** tsc has joined #aichallenge 2012-11-11T18:23:46 *** ramn[mba] has joined #aichallenge 2012-11-11T18:42:02 *** ramn[mba] has quit IRC (Quit: ramn[mba]) 2012-11-11T19:12:13 *** djr_ has quit IRC (Ping timeout: 268 seconds) 2012-11-11T19:15:26 *** phildunstan has quit IRC () 2012-11-11T19:30:38 *** Scooper has quit IRC (Quit: Leaving) 2012-11-11T19:30:53 *** mcstar has quit IRC (Quit: mcstar) 2012-11-11T20:06:59 *** amstan has joined #aichallenge 2012-11-11T20:06:59 *** ChanServ sets mode: +o amstan 2012-11-11T20:23:42 *** amstan has quit IRC (Ping timeout: 255 seconds) 2012-11-11T20:29:18 *** tsc_ has joined #aichallenge 2012-11-11T20:32:22 *** tsc has quit IRC (Ping timeout: 245 seconds) 2012-11-11T20:37:52 *** oldassurancenuts has joined #aichallenge 2012-11-11T21:09:02 *** tsc_ has quit IRC (Ping timeout: 245 seconds) 2012-11-11T21:09:40 *** mleise has quit IRC (Quit: Leaving.) 2012-11-11T21:11:19 *** mleise has joined #aichallenge 2012-11-11T21:17:47 *** mleise has quit IRC (Quit: Leaving.) 2012-11-11T21:19:22 *** mleise has joined #aichallenge 2012-11-11T22:00:48 *** oldassurancenuts has quit IRC (Read error: Connection reset by peer) 2012-11-11T22:31:14 *** tsc has joined #aichallenge 2012-11-11T23:30:34 *** epicmonkey has joined #aichallenge 2012-11-11T23:38:26 *** coeus has quit IRC (Ping timeout: 252 seconds) 2012-11-11T23:56:45 *** antimatroidl has joined #aichallenge 2012-11-11T23:59:37 *** epicmonkey has quit IRC (Ping timeout: 260 seconds) 2012-11-11T23:59:53 *** amstan_ has quit IRC (Quit: Konversation terminated!)