Skip to content

Commit

Permalink
docs: update README.md and model interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghefira233 committed May 29, 2024
1 parent a82a86e commit 6f05573
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions interface/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ the Kumparan team for what is the input and the output
of the method.

In this interface, we implement `save` method to helps you
save your trained model. You may not edit this method
directly.
save your trained model, fitted preprocessor, and label encoder.
You may not edit this directly.

You can add more initialization parameter and define
new methods to the `Model` class.
Expand All @@ -34,4 +34,6 @@ Run
python model.py

It will run the training and save your trained model to
file `model.pickle`.
file `model.pickle` for scikit-learn and `model.keras`
for TensorFlow. It will also save your fitted preprocessor
and label_encoder to file 'preprocessor_label_encoder.pickle'.
4 changes: 2 additions & 2 deletions interface/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
You may not edit this directly.
You can add more initialization parameter and define
new methods to the Model class.
new methods to the `Model` class.
Usage:
Install `kumparanian` first:
Expand All @@ -32,7 +32,7 @@
python model.py
It will run the training and save your trained model to
file `model.pickle` for scikit-learn and 'model.keras'
file `model.pickle` for scikit-learn and `model.keras`
for TensorFlow. It will also save your fitted preprocessor
and label_encoder to file 'preprocessor_label_encoder.pickle'.
"""
Expand Down

0 comments on commit 6f05573

Please sign in to comment.