Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit631103e

Browse files
committed
Merge commit 'daaf1ec50410fb4e6dc7acd66504dc95acb3a4e4' into PGPROEE9_6_DEV
1 parent44b0521 commit631103e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎machine_learning.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,14 @@ OkNNr_predict(int matrix_rows, int matrix_cols,
116116
if (idx[i]!=-1)
117117
result+=targets[idx[i]]*w[i] /w_sum;
118118

119-
pfree(distances);
120-
pfree(idx);
121-
pfree(w);
122-
123119
/* this should never happen */
124120
if (idx[0]==-1)
125121
return-1;
126122

123+
pfree(distances);
124+
pfree(idx);
125+
pfree(w);
126+
127127
if (result<0)
128128
result=0;
129129
returnresult;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp