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(
4343 self ,
4444 graph_name : str ,
4545 model_name : str ,
46- feature_properties : List [str ],
47- relationship_types : List [str ],
4846 mutateProperty : str ,
49- target_node_label : str = None ,
50- node_labels : List [str ] = None ,
47+ predictedProbabilityProperty : str = None ,
5148 ) -> "Series[Any]" : # noqa: F821
5249 mlConfigMap = {
53- "featureProperties" : feature_properties ,
5450 "job_type" : "predict" ,
55- "nodeProperties" : feature_properties ,
56- "relationshipTypes" : relationship_types ,
5751 "mutateProperty" : mutateProperty
5852 }
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
6355
6456 mlTrainingConfig = json .dumps (mlConfigMap )
6557 self ._query_runner .run_query (
You can’t perform that action at this time.
0 commit comments