|
| 1 | +<!-- |
| 2 | +If your issue is a usage question, submit it here instead: |
| 3 | +- The imbalanced learn gitter: https://gitter.im/scikit-learn-contrib/imbalanced-learn |
| 4 | +--> |
| 5 | + |
| 6 | +<!-- Instructions For Filing a Bug: https://github.com/scikit-learn-contrib/imbalanced-learn/blob/master/CONTRIBUTING.md#filing-bugs --> |
| 7 | + |
| 8 | +#### Description |
| 9 | +<!-- Example: Joblib Error thrown when calling fit on LatentDirichletAllocation with evaluate_every > 0--> |
| 10 | + |
| 11 | +#### Steps/Code to Reproduce |
| 12 | +<!-- |
| 13 | +Example: |
| 14 | +``` |
| 15 | +from sklearn.feature_extraction.text import CountVectorizer |
| 16 | +from sklearn.decomposition import LatentDirichletAllocation |
| 17 | +
|
| 18 | +docs = ["Help I have a bug" for i in range(1000)] |
| 19 | +
|
| 20 | +vectorizer = CountVectorizer(input=docs, analyzer='word') |
| 21 | +lda_features = vectorizer.fit_transform(docs) |
| 22 | +
|
| 23 | +lda_model = LatentDirichletAllocation( |
| 24 | + n_topics=10, |
| 25 | + learning_method='online', |
| 26 | + evaluate_every=10, |
| 27 | + n_jobs=4, |
| 28 | +) |
| 29 | +model = lda_model.fit(lda_features) |
| 30 | +``` |
| 31 | +If the code is too long, feel free to put it in a public gist and link |
| 32 | +it in the issue: https://gist.github.com |
| 33 | +--> |
| 34 | + |
| 35 | +#### Expected Results |
| 36 | +<!-- Example: No error is thrown. Please paste or describe the expected results.--> |
| 37 | + |
| 38 | +#### Actual Results |
| 39 | +<!-- Please paste or specifically describe the actual output or traceback. --> |
| 40 | + |
| 41 | +#### Versions |
| 42 | +<!-- |
| 43 | +Please run the following snippet and paste the output below. |
| 44 | +import platform; print(platform.platform()) |
| 45 | +import sys; print("Python", sys.version) |
| 46 | +import numpy; print("NumPy", numpy.__version__) |
| 47 | +import scipy; print("SciPy", scipy.__version__) |
| 48 | +import sklearn; print("Scikit-Learn", sklearn.__version__) |
| 49 | +import imblearn; print("Imbalanced-Learn", imblearn.__version__) |
| 50 | +--> |
| 51 | + |
| 52 | + |
| 53 | +<!-- Thanks for contributing! --> |
0 commit comments