Skip to content

Commit

Permalink
Document Model.__init__
Browse files Browse the repository at this point in the history
  • Loading branch information
siboehm committed Jun 26, 2021
1 parent dab9bf0 commit b59ac95
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ lleaves 🍃
:members:
:noindex:

.. automethod:: __init__

6 changes: 6 additions & 0 deletions lleaves/lleaves.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ class pd_DataFrame:


class Model:
"""
The base class of lleaves.
"""

# machine-targeted compiler & exec engine.
_execution_engine = None

Expand All @@ -32,6 +36,8 @@ class Model:

def __init__(self, model_file=None):
"""
Initialize the uncompiled model.
:param model_file: Path to the model.txt.
"""
self.model_file = model_file
Expand Down

0 comments on commit b59ac95

Please sign in to comment.