Skip to content

Website: link to lda broken in example #5876

Closed

Activity

  1. souravsingh commented on Nov 27, 2015

    @souravsingh
    Contributor

    I would like to work on this.

  2. GaelVaroquaux commented on Nov 27, 2015

    @GaelVaroquaux
    Member
  3. maniteja123 commented on Dec 6, 2015

    @maniteja123
    Contributor

    Hi devs, I was just browsing for a easy topic to start of contribution to scikit learn.

    While trying to add LatentDirichletAllocation to the page by inclusing class:sklearn.decomposition.LatentDirichletAnalysis``, the link is not pointing to the page of Latent Dirichlet Allocation. But it is working for other class in sklearn.decomposition.

    Since I am not that accustomed to sphinx, I tried debugging a bit. When the generated folder is built in doc\modules during running make html, there isn't any RST file being generated for sklearn.decomposition.LatentDirichletAllocation whereas there are RST files are generated for the other classes, say sklearn.decomposition.NMF in this case.

    I apologize for my ignorance regarding the generation of doc structure and any help in this direction would be appreciated

  4. raghavrv commented on Dec 7, 2015

    @raghavrv
    Member

    the link is not pointing to the page of Latent Dirichlet Allocation. But it is working for other class in sklearn.decomposition

    Where exactly is that link inside?

    sklearn.decomposition.LatentDirichletAllocation.rst is indeed found inside the doc/modules/generated... If you have any changes made, specific to some issue, you could raise a PR with your changes so we can have a look at it?

  5. added a commit that references this issue on Dec 8, 2015
    762f39b
  6. maniteja123 commented on Dec 8, 2015

    @maniteja123
    Contributor

    Hi, sorry for the lack of clarity. I added this to the file which renders the page.

    I couldn't find the sklearn.decomposition.LatentDirichletAllocation.rst inside the doc/modules/generated. When I build the docs in my local system, the link for NMF is active, but not the one for LDA.

    I have sent a pull request with this minor change #5984. This is my first contribution. Please let me know if something is done wrong.

    Thanks.

  7. tuliocasagrande commented on Dec 8, 2015

    @tuliocasagrande
    Contributor

    I think this not solve the trick, @maniteja123. It's not that introduction paragraph that lacks the link. It's the import line. Usually the classes are already linked, but sometimes they aren't.

    Here are others broken links, FeatureUnion and LabelBinarizer.

  8. maniteja123 commented on Dec 9, 2015

    @maniteja123
    Contributor

    Thanks. Apologies for tackling in wrong way. I understand the classes.rst file has the list of classes in various modules. It would be helpful if anyone can shed some light on how these links in imports of the code snippets will be linked to relevant pages. I am not sure how to proceed since I am not that aware of this process and couldn't find any particular place that explains link generation in code snippets sphinx.

  9. davidthaler commented on Dec 18, 2015

    @davidthaler
    Contributor

    There are a fair number of these. In addition to the 2 found by tuliocasagrade, the first section of examples has: euclidian_distances in the Johnson-Lindenstrauss example and learning_curve in the kernel ridge example. The applications section has randomized_svd in the Wikipedia example, in addition to the topics/LDA example. This isn't a spot fix.

  10. maniteja123 commented on Dec 18, 2015

    @maniteja123
    Contributor

    @davidthaler @tuliocasagrande thanks for these references. Just to add, I found that these things are being occurred in the auto_examples section, might be just a coincidence.

  11. flothesof commented on Jul 27, 2016

    @flothesof

    Hi all,

    I'm writing regarding the example on topic extraction found here.

    I believe there currently are 2 issues with the current source code used in the example:

    • the n_features parameter is not taken into account when setting up the tf_idf vectorizer
    tfidf_vectorizer = TfidfVectorizer(max_df=0.95, min_df=2, #max_features=n_features,
                                       stop_words='english')
    
    • there's an exit() statement right after fitting the NMF (this actually crashed my jupyter kernel when I executed the example):
    nmf = NMF(n_components=n_topics, random_state=1, alpha=.1, l1_ratio=.5).fit(tfidf)
    exit()
    

    Could someone fix these two issues for future users?
    If someone can point me to the file that needs fixing, I'd love to submit the patch myself (I couldn't find it by myself in the source).

    Best regards,
    Florian

  12. lesteve commented on Jul 27, 2016

    @lesteve
    Member

    @flothesof it seems like what you are describing is not related to this issue. Could you create a separate issue please ?

    About some links not being created in the example, it is known but nobody has had the bandwidth to understand its root cause. It is not specific to scikit-learn per se, see sphinx-gallery/sphinx-gallery#113. Help in understanding this problem is more than welcome !

  13. flothesof commented on Jul 28, 2016

    @flothesof

    @lesteve Ok, I'll create a new issue. Thanks.

  14. added a commit that references this issue on Oct 25, 2016
    9d535ad
  15. added a commit that references this issue on Feb 28, 2017
    e40e039
  16. added a commit that references this issue on Jun 14, 2017
    d76f2fc
  17. added a commit that references this issue on Aug 19, 2017
    8a96528
  18. added a commit that references this issue on Nov 15, 2017
    b3d2a44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions