@@ -36,27 +36,6 @@ Training, using, listing, and dropping named models are management operations bo
36
36
Models trained by a different Neo4j user are not accessible at any time.
37
37
====
38
38
39
- == Example setup
40
-
41
- In the below code examples, we assume that a graph exists in Neo4j like this:
42
-
43
- [source, cypher, role=setup-query]
44
- ----
45
- CREATE (:Node)-[:T]->(:Node)
46
- ----
47
-
48
- And that a graph projection has been made and a model trained and inserted in the Model Catalog.
49
- In this case we use a GraphSage model, but any model will work the same.
50
-
51
- [source, cypher, role=setup-query]
52
- ----
53
- CALL gds.graph.create('myGraph', 'Node', 'T') YIELD graphName
54
- CALL gds.beta.graphSage.train('myGraph', {
55
- modelName: 'my-model', degreeAsProperty: true
56
- }) YIELD trainMillis
57
- RETURN *
58
- ----
59
-
60
39
61
40
[.beta]
62
41
[[catalog-model-exists]]
@@ -94,17 +73,16 @@ Once we have trained models in the catalog we can see information about either a
94
73
CALL gds.beta.model.list()
95
74
YIELD
96
75
modelInfo,
97
- graphSchema,
98
76
loaded,
99
77
stored,
100
78
shared
101
79
----
102
80
103
81
.Results
104
- [opts="header",cols="1m,1m,1m,1m,1m "]
82
+ [opts="header",cols="1m,1m,1m,1m"]
105
83
|===
106
- | modelInfo | graphSchema | loaded | stored | shared
107
- | {modelName=my-model, modelType=graphSage } | {relationships={T={}}, nodes={Node={}}} | true | false | false
84
+ | modelInfo | loaded | stored | shared
85
+ | {modelName=my-model, modelType=example-model-type } | true | false | false
108
86
|===
109
87
--
110
88
@@ -116,17 +94,16 @@ YIELD
116
94
CALL gds.beta.model.list('my-model')
117
95
YIELD
118
96
modelInfo,
119
- graphSchema,
120
97
loaded,
121
98
stored,
122
99
shared
123
100
----
124
101
125
102
.Results
126
- [opts="header",cols="1m,1m,1m,1m,1m "]
103
+ [opts="header",cols="1m,1m,1m,1m"]
127
104
|===
128
- | modelInfo | graphSchema | loaded | stored | shared
129
- | {modelName=my-model, modelType=graphSage } | {relationships={T={}}, nodes={Node={}}} | true | false | false
105
+ | modelInfo | loaded | stored | shared
106
+ | {modelName=my-model, modelType=example-model-type } | true | false | false
130
107
|===
131
108
--
132
109
@@ -158,17 +135,16 @@ If we no longer need a trained model we can remove it from the catalog.
158
135
CALL gds.beta.model.drop('my-model')
159
136
YIELD
160
137
modelInfo,
161
- graphSchema,
162
138
loaded,
163
139
stored,
164
140
shared
165
141
----
166
142
167
143
.Results
168
- [opts="header",cols="1m,1m,1m,1m,1m "]
144
+ [opts="header",cols="1m,1m,1m,1m"]
169
145
|===
170
- | modelInfo | graphSchema | loaded | stored | shared
171
- | {modelName=my-model, modelType=graphSage } | {relationships={T={}}, nodes={Node={}}} | true | false | false
146
+ | modelInfo | loaded | stored | shared
147
+ | {modelName=my-model, modelType=example-model-type } | true | false | false
172
148
|===
173
149
--
174
150
0 commit comments