You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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?
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.
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.
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.
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.
@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.
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).
@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 !
Activity
souravsingh commentedon Nov 27, 2015
I would like to work on this.
GaelVaroquaux commentedon Nov 27, 2015
maniteja123 commentedon Dec 6, 2015
Hi devs, I was just browsing for a easy topic to start of contribution to scikit learn.
While trying to add
LatentDirichletAllocationto the page by inclusingclass:sklearn.decomposition.LatentDirichletAnalysis``, the link is not pointing to the page of Latent Dirichlet Allocation. But it is working for other class insklearn.decomposition.Since I am not that accustomed to sphinx, I tried debugging a bit. When the
generatedfolder is built indoc\modulesduring runningmake html, there isn't any RST file being generated forsklearn.decomposition.LatentDirichletAllocationwhereas there are RST files are generated for the other classes, saysklearn.decomposition.NMFin this case.I apologize for my ignorance regarding the generation of doc structure and any help in this direction would be appreciated
raghavrv commentedon Dec 7, 2015
Where exactly is that link inside?
sklearn.decomposition.LatentDirichletAllocation.rstis indeed found inside thedoc/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?DOC: Provide link to LDA and NMF in the example tutorial closes sciki…
maniteja123 commentedon Dec 8, 2015
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.rstinside thedoc/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.
tuliocasagrande commentedon Dec 8, 2015
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.
maniteja123 commentedon Dec 9, 2015
Thanks. Apologies for tackling in wrong way. I understand the
classes.rstfile 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.davidthaler commentedon Dec 18, 2015
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.
maniteja123 commentedon Dec 18, 2015
@davidthaler @tuliocasagrande thanks for these references. Just to add, I found that these things are being occurred in the
auto_examplessection, might be just a coincidence.flothesof commentedon Jul 27, 2016
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:
exit()statement right after fitting the NMF (this actually crashed my jupyter kernel when I executed the example):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
lesteve commentedon Jul 27, 2016
@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 !
flothesof commentedon Jul 28, 2016
@lesteve Ok, I'll create a new issue. Thanks.
DOC: Provide link to LDA and NMF in the example tutorial closes #5876 (…
DOC: Provide link to LDA and NMF in the example tutorial closes sciki…
DOC: Provide link to LDA and NMF in the example tutorial closes sciki…
DOC: Provide link to LDA and NMF in the example tutorial closes sciki…
DOC: Provide link to LDA and NMF in the example tutorial closes sciki…