GithubHelp home page GithubHelp logo

Topic Term Matrix about labeled-lda-python HOT 11 OPEN

joezjh avatar joezjh commented on August 22, 2024
Topic Term Matrix

from labeled-lda-python.

Comments (11)

JoeZJH avatar JoeZJH commented on August 22, 2024

You can output them in order with the following code:
the topic list: print llda_model.topics
the term(word) list: print llda_model.terms

from labeled-lda-python.

nabilariefm-hi avatar nabilariefm-hi commented on August 22, 2024

aaa i see2 thankyouu again!!

from labeled-lda-python.

nabilariefm-hi avatar nabilariefm-hi commented on August 22, 2024

from labeled-lda-python.

nabilariefm-hi avatar nabilariefm-hi commented on August 22, 2024

Halo Joe, I really confused with the result, why the beta (topic-word)
result same number (probability) for every label (my label is rating
1,2,3,4,5). Do you know why? Should I increase the iteration number? Really
appreciate your answer because this is for my undergraduate thesis.
Thankyouu
fyi : differensial is (5+4) - (1+2)
messageImage_1660958430922

from labeled-lda-python.

JoeZJH avatar JoeZJH commented on August 22, 2024

How many iterations did you use? may be you can try more iterations.

from labeled-lda-python.

nabilariefm-hi avatar nabilariefm-hi commented on August 22, 2024

I use 1000 iteration

from labeled-lda-python.

JoeZJH avatar JoeZJH commented on August 22, 2024

Probably because you have too little data.

from labeled-lda-python.

nabilariefm-hi avatar nabilariefm-hi commented on August 22, 2024

aaah i see2 maybe thats the reason. Also I want to ask which one better I use to train a model? the (1) or (2)?

Training

(1) --> #llda_model.training(iteration=100, log=True)
(2) --> #while True:
print("iteration %s sampling..." % (llda_model.iteration + 1))
llda_model.training(1)
print("after iteration: %s, perplexity: %s" % (llda_model.iteration, llda_model.perplexity()))
print("delta beta: %s" % llda_model.delta_beta)
if llda_model.is_convergent(method="beta", delta=0.01):
break

from labeled-lda-python.

JoeZJH avatar JoeZJH commented on August 22, 2024

Both of them will be ok. If you do not know how many iterations it takes for the model to converge, you can use (2) to get a convergent model.

from labeled-lda-python.

nabilariefm-hi avatar nabilariefm-hi commented on August 22, 2024

Aaaah I see2 , okee Joe thankyouu so much for all the answer😊

from labeled-lda-python.

JoeZJH avatar JoeZJH commented on August 22, 2024

Happy to help!

from labeled-lda-python.

Related Issues (6)

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.