Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with prediciton #1

Open
f-izzat opened this issue Jan 10, 2024 · 0 comments
Open

Issue with prediciton #1

f-izzat opened this issue Jan 10, 2024 · 0 comments

Comments

@f-izzat
Copy link

f-izzat commented Jan 10, 2024

Followed the same procedure as in CATCHM_demo.ipynb with my own dataset. However got the error

"""
Traceback (most recent call last):
  File "/Users/faiz/miniconda3/envs/ccfraud/lib/python3.7/multiprocessing/pool.py", line 121, in worker
    result = (True, func(*args, **kwds))
  File "/Users/faiz/Desktop/work/code/credit_card_fraud/catchm.py", line 130, in inductive_pooling_chunk
    pooled_embedding = get_pooled_embedding(receiver_neighbors, embeddings, gamma)
  File "/Users/faiz/Desktop/work/code/credit_card_fraud/catchm.py", line 143, in get_pooled_embedding
    embeddings_to_pool = embeddings[neighbors, :]
IndexError: index 268273 is out of bounds for axis 0 with size 10285
"""

Format for X_train, X_test, y_train, y_test remains the same as in the notebook. Running with the transactions.txt dataset works fine. I wonder what is required to make my dataset work?

FYI: I put all functions and classes into a single catchm.py file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant