[Tutor] Higher-Order Function Examples

2011-02-13 Thread Carla Jenkins
Hello everyone: I am new to Python and am looking for higher-order function programming examples.  The programming codes do not feature the corresponding equation so I am lost. Please help me.   Sincerely, Carla Jenkins ___ Tutor maillist - Tu

Re: [Tutor] How to group data?

2011-02-13 Thread Dave Angel
On 02/13/2011 07:03 PM, tee chwee liong wrote: How about some clues as to what you're trying to accomplish? This code is surprisingly verbose, and probably totally wrong. Anyway, each time you pop an item from the list, all the following ones change their index. So presumably there weren't stil

Re: [Tutor] How to group data?

2011-02-13 Thread tee chwee liong
> How about some clues as to what you're trying to accomplish? This code > is surprisingly verbose, and probably totally wrong. Anyway, each time > you pop an item from the list, all the following ones change their > index. So presumably there weren't still 79 items in the list by the > time y

Re: [Tutor] How to group data?

2011-02-13 Thread tee chwee liong
> for i in range(0, len(values), 128): > # Step through the list of values, starting at 0, > # taking 128 items at a time. > temp = values[i:i+128] > # Join the values into a string. > s = ''.join(temp) > # And make a row with a label. > row = "Row" + str(counter) + " = " + s > print row > rows.ap

Re: [Tutor] How to group data?

2011-02-13 Thread Dave Angel
On 01/-10/-28163 02:59 PM, tee chwee liong wrote: hi, i'm using Python 2.5 and Win XP. i want to extract the last column of the attached text file and group 128 characters to each row. want the result to look like: Row1=X.1XXX (total of 128 char) Row2=11XX.

Re: [Tutor] How to group data?

2011-02-13 Thread C or L Smith
>>temp_values1 = >> (x.pop(9))+(x.pop(8))+(x.pop(7))+(x.pop(6))+(x.pop(5))+(x.pop(4))+(x.pop(3))+(x.pop(2))+(x.pop(1))+(x.pop(0)) >> temp_values2 = >> (x.pop(19))+(x.pop(18))+(x.pop(17))+(x.pop(16))+(x.pop(15))+(x.pop(14))+(x.pop(13))+(x.pop(12))+(x.pop(11))+(x.pop(10)) When you pop a valu

Re: [Tutor] How to group data?

2011-02-13 Thread Steven D'Aprano
tee chwee liong wrote: hi, i'm using Python 2.5 and Win XP. i want to extract the last column of the attached text file and group 128 characters to each row. want the result to look like: Did you have to flood us with the ENTIRE text file? Please show some respect! Next time, just show us

Re: [Tutor] Backpropagation Learning in Python

2011-02-13 Thread Corey Richardson
On 02/13/2011 03:54 AM, Jaidev Deshpande wrote: > Dear All > > Please suggest a link to tutorials for backpropagation and other neural > network training algorithms through Python. > > Any other commentary is welcome, as I am new to both Python and Neural > Networks. > > http://lmgtfy.com/?q=n

[Tutor] How to group data?

2011-02-13 Thread tee chwee liong
hi, i'm using Python 2.5 and Win XP. i want to extract the last column of the attached text file and group 128 characters to each row. want the result to look like: Row1=X.1XXX (total of 128 char) Row2=11XX...X1XX (total of 128 char)

[Tutor] Backpropagation Learning in Python

2011-02-13 Thread Jaidev Deshpande
Dear All Please suggest a link to tutorials for backpropagation and other neural network training algorithms through Python. Any other commentary is welcome, as I am new to both Python and Neural Networks. ___ Tutor maillist - Tutor@python.org To unsu