#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    1
    Rep Power
    0

    Unhappy Need a help in Naive bayesian classifier .. pleas :(


    hello everybody !

    i'm a beginner python programmer and i have to write a Naive bayes classifier .. any one can help me please ??

    i need a good programmer helping me because i found an open source code but i still have an error and i have been tried since 2 week ago ..

    this part of code :
    Code:
    usage = ('Usage: %s <file> <expected doctype> <other doctype>' % sys.argv[0])
    
    
    if len(sys.argv) !=4:
    		raise ValueError(usage)
    
    input_file = sys.argv[1]
    doctype_expected = sys.argv[2]
    doctype_other = sys.argv[3]
    
    classifier.set_doctypes(doctype_expected, doctype_other)
    
    results = None
  2. #2
  3. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,850
    Rep Power
    481
    ((Probability of A given B) times the (probability of B)) equals
    P(B|A)P(A)

    What is your question?
    [code]Code tags[/code] are essential for python code and Makefiles!

IMN logo majestic logo threadwatch logo seochat tools logo