Skip to content

Commit

Permalink
doc: guide to avoid importing module in wrong place
Browse files Browse the repository at this point in the history
  • Loading branch information
kyuwoo-choi committed Dec 9, 2024
1 parent 08a259d commit fde4981
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions example/model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
"outputs": [],
"source": [
"# The `NubisonModel` class serves as a base class for creating custom user model classes.\n",
"# Note that modules required by UserModel must be imported within the NubisonModel class.\n",
"# This is because the UserModel is cloudpickled, and using modules imported outside of the NubisonModel class will cause errors.\n",
"from nubison_model import NubisonModel\n",
"\n",
"class UserModel(NubisonModel):\n",
Expand Down

0 comments on commit fde4981

Please sign in to comment.