I am working on a Neo4j database on which we are running various machine learning algorithms. We would like to hold out some data for training, e.g. treating certain relationships in the data as our training data and others as validation or test data. We are looking for a way to query the graph in a flexible way (i.e. we don't want to have to do careful logic checking on the query itself) where we can specify that specific relationship ids are not used in the query. Does anyone know how this could be done without having to delete these relationships from the underlying database?
We are currently using the neo4j python driver to interact with the graph, however I think the implementation is flexible.
Thanks in advance,