Skip to content

Commit b59ac95

Browse files
committed
Document Model.__init__
1 parent dab9bf0 commit b59ac95

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

docs/index.rst

+2
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ lleaves 🍃
1717
:members:
1818
:noindex:
1919

20+
.. automethod:: __init__
21+

lleaves/lleaves.py

+6
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ class pd_DataFrame:
2121

2222

2323
class Model:
24+
"""
25+
The base class of lleaves.
26+
"""
27+
2428
# machine-targeted compiler & exec engine.
2529
_execution_engine = None
2630

@@ -32,6 +36,8 @@ class Model:
3236

3337
def __init__(self, model_file=None):
3438
"""
39+
Initialize the uncompiled model.
40+
3541
:param model_file: Path to the model.txt.
3642
"""
3743
self.model_file = model_file

0 commit comments

Comments
 (0)