[Tutor] HELP- Regarding working with python

2013-01-01 Thread Gayathri S
Hi.. I am using python 2.7 and scikit-learn for machine learning. And OS is Windows 7. Wanna know how to import our own data sets in scikit-learn? Regards, G

Re: [Tutor] Please help

2013-01-01 Thread Asokan Pichai
I saw the code; I see too many formatting errors: Line No 24 starts a function definition and the next few lines are indented by two spaces, but Line 29 is a print statement that is in line with the def; IOW it completes the function. It is very likely wrong. You are defining functions within fun

Re: [Tutor] Please help

2013-01-01 Thread Jack Little
Maybe tomorrow I can just email you the code ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Please help

2013-01-01 Thread Steven D'Aprano
On 02/01/13 13:02, Jack Little wrote: I do not understand my error (it says something about an out-of-function return on line 179) You cannot use "return" unless it is inside a function. # This is okay. def test(): print "test" return "testing complete" # indented, therefore inside t

Re: [Tutor] Please help

2013-01-01 Thread Ryan Macy
Jack Little wrote: I do not understand my error (it says something about an out-of-function return on line 179) my code is at the link http://www.mediafire.com/download.php?4ga0weu4ifc6s1u ___ Tutor maillist - Tutor@python.org To unsubscribe or change

Re: [Tutor] Tutor Digest, Vol 106, Issue 74

2013-01-01 Thread Steven D'Aprano
Brandon, Please trim your response to only the parts of the email that are actually relevant. As given, you have duplicated SIX emails which we have already seen and don't need to see again, at least not in full, multiple hundreds of lines of text. Also, please ensure that you use a sensible, me

Re: [Tutor] another for loop question - latin square (was: Tutor Digest, Vol 106, Issue 74)

2013-01-01 Thread Dave Angel
On 01/01/2013 08:27 PM, Brandon Merritt wrote: > Sorry, I should have been more clear in what I was trying to accomplish. I > am trying to build the latin square as follows: > > 1234567 > 2345671 > 3456712 > 4567123 > 5671234 > 6712345 > 7123456 > > So, the "scaleorder" is the n*n scale of the squa

[Tutor] Please help

2013-01-01 Thread Jack Little
I do not understand my error (it says something about an out-of-function return on line 179)   my code is at the link http://www.mediafire.com/download.php?4ga0weu4ifc6s1u___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription optio

Re: [Tutor] Tutor Digest, Vol 106, Issue 74

2013-01-01 Thread Brandon Merritt
Sorry, I should have been more clear in what I was trying to accomplish. I am trying to build the latin square as follows: 1234567 2345671 3456712 4567123 5671234 6712345 7123456 So, the "scaleorder" is the n*n scale of the square - in this case, a 7x7. The key is that there should be no duplicat