unionai / unionai-examples

A collection of example workflows that run on Union
https://www.union.ai/
8 stars 2 forks source link

Adds credit default prediction A100 example #41

Closed thomasjpfan closed 3 months ago

thomasjpfan commented 4 months ago

Execution: https://serverless-1.us-east-2.s.union.ai/org/thomasjpfan/projects/default/domains/development/executions/f73be2fd767e74a9ab74/nodes

granthamtaylor commented 3 months ago

Unfortunately I am having issues running this one at well.

Traceback (most recent call last):

      File "/union/lib/venv/lib/python3.11/site-packages/flytekit/exceptions/scopes.py", line 242, in user_entry_point
        return wrapped(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^
      File "/root/credit.py", line 94, in train_xgboost
        X_train, y_train, X_test, y_test = prepare_for_training(train)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/root/credit.py", line 180, in prepare_for_training
        train["cid"], _ = train.stomer_ID.factorize()
                          ^^^^^^^^^^^^^^^
      File "/union/lib/venv/lib/python3.11/site-packages/cudf/utils/utils.py", line 229, in __getattr__
        raise AttributeError(

Message:

    AttributeError: DataFrame object has no attribute stomer_ID

User error.
thomasjpfan commented 3 months ago

Unfortunately I am having issues running this one at well.

@granthamtaylor I forgot to push the latest commit. It should work now