Use scikit http://scikit-learn.org/stable/ - we've found that it works
better than the classifiers in nltk. For the spam/ham problem, I've heard
(circa 2006!!) that naive bayes works as well as any other classifier. For
the label classification problem, since there is dependency between words,
On Mon, 2011-12-26 at 10:01 +0530, Pratap Chakravarthy wrote:
# Initialize variables
holes, bk = HOLES[:], {} ;
random.shuffle( holes )
# Make buckets
[ bk.setdefault(y, []).append((x,y)) for x, y in holes ]
# Result
print [ bk[3].pop(0), bk[4].pop(0), bk[5].pop(0) ] + random.sample(
Kenneth Gonsalves law...@gmail.com writes:
[...]
just curious - why do you and Noufal think this is a crude method?
I don't like special casing stuff and the 3 selections outside the
main flow sticks out in my solution.
--
~noufal
http://nibrahim.net.in
Parting is such sweet sorrow.
I don't like special casing stuff and the 3 selections outside the main
flow sticks out in my solution.
I guess that is right. Any logic that is outside the main flow breaks
the beauty
and create kludge.
Attempted to solve the same problem using Erlang, and surprisingly what was
looking like
Is there anyway to print a check online using Django/Python?
I see a possibility of making PDF on the fly, and sending it to the
printer, but I want some opinion
___
BangPypers mailing list
BangPypers@python.org
On Mon, 2011-12-26 at 17:34 +0530, Pratap Chakravarthy wrote:
Attached is the file.
I think the attachment got stripped.
--
regards
Kenneth Gonsalves
___
BangPypers mailing list
BangPypers@python.org
Ramdas S ram...@gmail.com writes:
Is there anyway to print a check online using Django/Python?
I see a possibility of making PDF on the fly, and sending it to the
printer, but I want some opinion
I think you'd have best control with a PDF but it might also be possible
to create the page in
Ramdas S ram...@gmail.com writes:
Is there anyway to print a check online using Django/Python?
I see a possibility of making PDF on the fly, and sending it to the
printer, but I want some opinion
I think you'd have best control with a PDF but it might also be possible
to create the page in