Issues with ArangoDB to DGL graph data exchange process

I am trying to organize a graph data exchange process between ArangoDB and DGL for learning graph neural networks on a data that I have in Arango collections.

Case 1

I am exporting data from ArangoDB to DGL using metagraph, teaching a GNN, updating target labels and importing results back into ArangoDB.

op_metagraph = {
    "vertexCollections" : {
        "tmp_v_accounts" : {
            "features" : {
                "creation_dt" : IdentityEncoder(dtype=torch.int),
                "foreign_flg" : CategoricalEncoder()
            }
        }
    },
    "edgeCollections" : {
        "tmp_e_operations" : {
            "features" : {
                "operation_dt" : IdentityEncoder(dtype=torch.int),
                "operation_sum" : IdentityEncoder(dtype=torch.int)
            },
            "label" : "fraud_flg"
        }
    }
}

dgl_tx = adbdgl_adapter.arangodb_to_dgl(
    "operations_graph",
    metagraph=op_metagraph
)

#learning...

adb_g = adbdgl_adapter.dgl_to_arangodb("new_graph", dgl_tx)

The initial problem is that, while the network did do some work, I couldn’t interpret the results because the import process created new collections and:

  • I could not add technical attributes (such as the element’s _key or _id) to the original graph data as it would be wrongfully used in the learning process;
  • I could not match the records from old and new collections using non-technical attributes as they were changed in the learning process, and even if they weren’t, there would be no guarantee a given record’s attributes are unique across all data.

Case 2

I tried including tech attributes into the metagraph, hoping to exclude them from learning later by editing the model itself.

Trying to include _key attribute as a string:

"features" : {
                ...,
                "_key" : CategoricalEncoder()
            }

Produces KeyError: <some arbitrary number>, which I assume (but cannot confirm) to be that DGL cannot upload that much categorical data into the graph.

Trying to create a new attribute as TO_NUMBER(_key) via AQL and include it as an integer:

"features" : {
                ...,
                "t_int_key" : IdentityEncoder(dtype=torch.int)
            }

Produces the following error:

Exception has occurred: DGLError
[12:18:17] C:UserspeizhouworkspaceDGL_scriptsreleasewin-64dglsrcgraphunit_graph.cc:69: Check failed: aten::IsValidIdArray(src): 

Which I could not find an explanation for. Stunning is the fact the my username is not peizhou, and I do not have such user on my computer. So the error seemingly doesn’t even originate from my own installation of DGL.

Summary

The question that stems from this is how can I either:
Update the existing ArangoDB collections with data that I obtained from the DGL, rather than imporing data into entirely new collections, or:
Include technical attributes, such as the elements’ keys, into the DGL graph, to be able to match the records in old and new collections after importing data into the new ones?

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật