Skip to content

Commit 3b04b83

Browse files
committed
docs: use autosummary to split documentation pages
1 parent c62e553 commit 3b04b83

File tree

42 files changed

+64
-652
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+64
-652
lines changed

bigframes/ml/base.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
"""
1616
Wraps primitives for machine learning with BQML
1717
18-
This library is an evolving attempt to
19-
- implement BigQuery DataFrames API for BQML
20-
- follow as close as possible the API design of SKLearn
18+
This library is an evolving attempt to:
19+
20+
* implement BigQuery DataFrames API for BQML
21+
* follow as close as possible the API design of SKLearn
2122
https://arxiv.org/pdf/1309.0238.pdf
23+
2224
"""
2325

2426
import abc
@@ -46,12 +48,16 @@ class BaseEstimator(bigframes_vendored.sklearn.base.BaseEstimator, abc.ABC):
4648
assumed to be the list of hyperparameters.
4749
4850
All descendents of this class should implement:
51+
52+
.. code-block:: python
53+
4954
def __init__(self, hyperparameter_1=default_1, hyperparameter_2=default_2, hyperparameter3, ...):
5055
'''Set hyperparameters'''
5156
self.hyperparameter_1 = hyperparameter_1
5257
self.hyperparameter_2 = hyperparameter_2
5358
self.hyperparameter3 = hyperparameter3
5459
...
60+
5561
Note: the object variable names must be exactly the same with parameter names. In order to utilize __repr__.
5662
5763
fit(X, y) method is optional.

bigframes/pandas/__init__.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,11 +306,22 @@ def clean_up_by_session_id(
306306

307307
# pandas dtype attributes
308308
NA = pandas.NA
309+
"""Alias for :class:`pandas.NA`."""
310+
309311
BooleanDtype = pandas.BooleanDtype
312+
"""Alias for :class:`pandas.BooleanDtype`."""
313+
310314
Float64Dtype = pandas.Float64Dtype
315+
"""Alias for :class:`pandas.Float64Dtype`."""
316+
311317
Int64Dtype = pandas.Int64Dtype
318+
"""Alias for :class:`pandas.Int64Dtype`."""
319+
312320
StringDtype = pandas.StringDtype
321+
"""Alias for :class:`pandas.StringDtype`."""
322+
313323
ArrowDtype = pandas.ArrowDtype
324+
"""Alias for :class:`pandas.ArrowDtype`."""
314325

315326
# Class aliases
316327
# TODO(swast): Make these real classes so we can refer to these in type
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../third_party/bigframes_vendored/pandas/doc/_templates/autosummary/class.rst

docs/reference/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
api/*

docs/reference/bigframes.bigquery/ai.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/reference/bigframes.bigquery/index.rst

Lines changed: 0 additions & 13 deletions
This file was deleted.

docs/reference/bigframes.geopandas/geoseries.rst

Lines changed: 0 additions & 17 deletions
This file was deleted.

docs/reference/bigframes.geopandas/index.rst

Lines changed: 0 additions & 9 deletions
This file was deleted.

docs/reference/bigframes.ml/README.rst

Lines changed: 0 additions & 125 deletions
This file was deleted.

docs/reference/bigframes.ml/cluster.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)