Git Product home page Git Product logo

rumourmining's People

Contributors

oenayet avatar

Watchers

 avatar

Forkers

isspek yli999

rumourmining's Issues

Task B-IndexError: list index out of range

When I ran task B, I have received following error:

---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
<ipython-input-39-33ef87bee411> in <module>()
    683 #         Conf = 0.8
    684     print(target_names)
--> 685     ResultDict[DevTweetsIDs[i]] = [target_names[predicted[i]], 0.5]
    686     i+= 1
    687 

IndexError: list index out of range

The problem might be the code in the below:

#Write dev results to file

#decisionFunc = clf.decision_function(devFts)

ResultDict = {}
i = 0
while i < len(DevTweetsIDs):
    #Conf = max(decisionFunc[i])
    Conf = 0
    #print(Conf)
#     if Conf < -0.2:
#         Conf = 0.2
#     if Conf < 0:
#         Conf = 0.4
#     elif Conf < 0.2:
#         Conf = 0.6
#     else:
#         Conf = 0.8
    print(target_names)
    ResultDict[DevTweetsIDs[i]] = [target_names[predicted[i]], 0.5]
    i+= 1
    

Do you have any idea, how can it be worked?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.