topic Numerical Vectors as projected properties in Neo4j Graph Platform
https://community.neo4j.com/t5/neo4j-graph-platform/numerical-vectors-as-projected-properties/m-p/58434#M34834
<P>Question for the Neo4j GDS Team: <BR />Given that Neo4j permits node embeddings as a node property in a projected graph, I figured that Neo4j GDS Library would permit the projection of a numerical vector as a projected relationship property. This has been unsuccessful. This capability is important given that we have many categorical features for which we execute <SPAN>gds.alpha.ml.oneHotEncoding() and then need to project. Two questions:<BR />1. Is this possible because I am getting the following error: <BR /></SPAN></P>
<PRE><SPAN class="ansi-red-fg">ClientError</SPAN>: {code: Neo.ClientError.Procedure.ProcedureCallFailed} {message: Failed to invoke procedure `gds.graph.project`: Caused by: java.lang.IllegalArgumentException: Unsupported type [NUMBER_ARRAY] of value LongArray[0, 0, 0, 1, 0, 0, 0]. Please use a numeric property.}</PRE>
<P><SPAN>2. If not possible, can you suggest an alternative approach? </SPAN></P>
<P>Thanks!</P>
<P><SPAN>#GDS</SPAN></P>Sun, 31 Jul 2022 23:04:14 GMTstu_v_kerr2022-07-31T23:04:14ZNumerical Vectors as projected properties
https://community.neo4j.com/t5/neo4j-graph-platform/numerical-vectors-as-projected-properties/m-p/58434#M34834
<P>Question for the Neo4j GDS Team: <BR />Given that Neo4j permits node embeddings as a node property in a projected graph, I figured that Neo4j GDS Library would permit the projection of a numerical vector as a projected relationship property. This has been unsuccessful. This capability is important given that we have many categorical features for which we execute <SPAN>gds.alpha.ml.oneHotEncoding() and then need to project. Two questions:<BR />1. Is this possible because I am getting the following error: <BR /></SPAN></P>
<PRE><SPAN class="ansi-red-fg">ClientError</SPAN>: {code: Neo.ClientError.Procedure.ProcedureCallFailed} {message: Failed to invoke procedure `gds.graph.project`: Caused by: java.lang.IllegalArgumentException: Unsupported type [NUMBER_ARRAY] of value LongArray[0, 0, 0, 1, 0, 0, 0]. Please use a numeric property.}</PRE>
<P><SPAN>2. If not possible, can you suggest an alternative approach? </SPAN></P>
<P>Thanks!</P>
<P><SPAN>#GDS</SPAN></P>Sun, 31 Jul 2022 23:04:14 GMThttps://community.neo4j.com/t5/neo4j-graph-platform/numerical-vectors-as-projected-properties/m-p/58434#M34834stu_v_kerr2022-07-31T23:04:14ZRe: Numerical Vectors as projected properties
https://community.neo4j.com/t5/neo4j-graph-platform/numerical-vectors-as-projected-properties/m-p/58625#M34922
<P>As the error indicates we only support scalar numeric properties on relationships at the moment. Regarding #2, what is it your trying to accomplish? Can you use different relationship types instead of a property? or move properties to source and target nodes instead?</P>Wed, 03 Aug 2022 21:13:48 GMThttps://community.neo4j.com/t5/neo4j-graph-platform/numerical-vectors-as-projected-properties/m-p/58625#M34922zach_blumenfeld2022-08-03T21:13:48ZRe: Numerical Vectors as projected properties
https://community.neo4j.com/t5/neo4j-graph-platform/numerical-vectors-as-projected-properties/m-p/59412#M35354
<P>Thanks for the reply Zach (and for your GDS postings in general). <BR />The reason why i wanted to put a numerical vector property on a relationship is that I have temporally linked each person's (could be 20K people) activities (could be thousands of activities) where the activity destination are the only linked nodes (the person node has been removed) and the relationships contain properties to uniquely identify the person associated with that relationship. Each person belongs to a particular categorical category, so i one-hot-encoded those categories into a vector - which is what i wanted to place on the relationship (where i wanted a single relationship type).<BR />Again, appreciate the response. </P>Mon, 22 Aug 2022 16:22:37 GMThttps://community.neo4j.com/t5/neo4j-graph-platform/numerical-vectors-as-projected-properties/m-p/59412#M35354stu_v_kerr2022-08-22T16:22:37Z