neo4j-graph-analytics / ml-models

Machine Learning Procedures and Functions for Neo4j
https://github.com/neo4j-graph-analytics/ml-models/releases/tag/1.0.0
Apache License 2.0
64 stars 23 forks source link

DeepGL algo doesnt seem to finish #5

Open tomasonjo opened 5 years ago

tomasonjo commented 5 years ago

Load data:

:play movies

Run algorithm:

CALL embedding.deepgl(null ,null)

Inspecting the logs it seems that algorithm get quickly to:

2018-10-06 08:03:38.268+0000 INFO  [neo4j.BoltWorker-3 [bolt] [/127.0.0.1:54242] ] DeepGL 100% Size of combined embedding: [171, 28379]
2018-10-06 08:03:38.268+0000 INFO  [neo4j.BoltWorker-3 [bolt] [/127.0.0.1:54242] ] DeepGL 100% Number of prev features: 767
2018-10-06 08:03:38.268+0000 INFO  [neo4j.BoltWorker-3 [bolt] [/127.0.0.1:54242] ] DeepGL 100% Creating AdjacencyMatrix
2018-10-06 08:03:38.268+0000 INFO  [neo4j.BoltWorker-3 [bolt] [/127.0.0.1:54242] ] DeepGL 100% Adding columns to array
2018-10-06 08:03:38.268+0000 INFO  [neo4j.BoltWorker-3 [bolt] [/127.0.0.1:54242] ] DeepGL 100% Added columns to array
2018-10-06 08:03:38.268+0000 INFO  [neo4j.BoltWorker-3 [bolt] [/127.0.0.1:54242] ] DeepGL 100% Populating adjacency matrix 2

but the next step doesn't finish more than 10 minutes after.

mneedham commented 5 years ago

How many iterations has it run at that stage? It should say just above what you pasted in the logs.

I think our default number of iterations may be too high.

tomasonjo commented 5 years ago

Ok looking at iterations...

It takes 45s to get to the fifth iteration

Then it really slows down with taking just under 4 minutes to finish fifth iteration and 13 minutes to finish sixth iteration