Skip to content
Snippets Groups Projects
  • Xiangrui Meng's avatar
    135ade90
    [MINOR][ML] fix doc warnings · 135ade90
    Xiangrui Meng authored
    Without an empty line, sphinx will treat doctest as docstring. holdenk
    
    ~~~
    /Users/meng/src/spark/python/pyspark/ml/feature.py:docstring of pyspark.ml.feature.CountVectorizer:3: ERROR: Undefined substitution referenced: "label|raw |vectors | +-----+---------------+-------------------------+ |0 |[a, b, c] |(3,[0,1,2],[1.0,1.0,1.0])".
    /Users/meng/src/spark/python/pyspark/ml/feature.py:docstring of pyspark.ml.feature.CountVectorizer:3: ERROR: Undefined substitution referenced: "1 |[a, b, b, c, a]|(3,[0,1,2],[2.0,2.0,1.0])".
    ~~~
    
    Author: Xiangrui Meng <meng@databricks.com>
    
    Closes #9188 from mengxr/py-count-vec-doc-fix.
    135ade90
    History
    [MINOR][ML] fix doc warnings
    Xiangrui Meng authored
    Without an empty line, sphinx will treat doctest as docstring. holdenk
    
    ~~~
    /Users/meng/src/spark/python/pyspark/ml/feature.py:docstring of pyspark.ml.feature.CountVectorizer:3: ERROR: Undefined substitution referenced: "label|raw |vectors | +-----+---------------+-------------------------+ |0 |[a, b, c] |(3,[0,1,2],[1.0,1.0,1.0])".
    /Users/meng/src/spark/python/pyspark/ml/feature.py:docstring of pyspark.ml.feature.CountVectorizer:3: ERROR: Undefined substitution referenced: "1 |[a, b, b, c, a]|(3,[0,1,2],[2.0,2.0,1.0])".
    ~~~
    
    Author: Xiangrui Meng <meng@databricks.com>
    
    Closes #9188 from mengxr/py-count-vec-doc-fix.