Skip to content

Commit

Permalink
[FSTORE-1285] Model Dependent Transformation Functions (#206)
Browse files Browse the repository at this point in the history
* load test

* adding udf decorator to hopsworks repo

* reverting pyproject modeified for loadtest

* reverting pyproject modeified for loadtest

* adding api documentation for udf decorator
  • Loading branch information
manu-sj authored Jul 11, 2024
1 parent f21ac7e commit e510018
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions auto_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
"mr_api": ["hopsworks.project.Project.get_model_registry"],
"ms_api": ["hopsworks.project.Project.get_model_serving"],
},
"api/udf.md": {
"udf": ["hopsworks.udf"],
},
"api/connection.md": {
"connection_create": ["hopsworks.connection.Connection.connection"],
"connection_properties": keras_autodoc.get_properties(
Expand Down
3 changes: 3 additions & 0 deletions docs/templates/api/udf.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# UDF API

{{udf}}
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ nav:
- Login: generated/api/login.md
- Connection: generated/api/connection.md
- Projects: generated/api/projects.md
- UDF: generated/api/udf.md
- Jobs: generated/api/jobs.md
- Executions: generated/api/executions.md
- FlinkCluster: generated/api/flink_cluster.md
Expand Down
4 changes: 3 additions & 1 deletion python/hopsworks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,16 @@
_secrets_api = None
_project_api = None

udf = hsfs.hopsworks_udf.udf


def hw_formatwarning(message, category, filename, lineno, line=None):
return "{}: {}\n".format(category.__name__, message)


warnings.formatwarning = hw_formatwarning

__all__ = ["connection"]
__all__ = ["connection", "udf"]

logging.basicConfig(
level=logging.INFO,
Expand Down

0 comments on commit e510018

Please sign in to comment.