File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -43,23 +43,15 @@ def predict(
43
43
self ,
44
44
graph_name : str ,
45
45
model_name : str ,
46
- feature_properties : List [str ],
47
- relationship_types : List [str ],
48
46
mutateProperty : str ,
49
- target_node_label : str = None ,
50
- node_labels : List [str ] = None ,
47
+ predictedProbabilityProperty : str = None ,
51
48
) -> "Series[Any]" : # noqa: F821
52
49
mlConfigMap = {
53
- "featureProperties" : feature_properties ,
54
50
"job_type" : "predict" ,
55
- "nodeProperties" : feature_properties ,
56
- "relationshipTypes" : relationship_types ,
57
51
"mutateProperty" : mutateProperty
58
52
}
59
- if target_node_label :
60
- mlConfigMap ["targetNodeLabel" ] = target_node_label
61
- if node_labels :
62
- mlConfigMap ["nodeLabels" ] = node_labels
53
+ if predictedProbabilityProperty :
54
+ mlConfigMap ["predictedProbabilityProperty" ] = predictedProbabilityProperty
63
55
64
56
mlTrainingConfig = json .dumps (mlConfigMap )
65
57
self ._query_runner .run_query (
You can’t perform that action at this time.
0 commit comments