Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f96263a

Browse files
author
Fabian Pedregosa
committed
FIX: fix segfault in cases of infeasible nu (NuSVM)
____ __ __ _ ___ _ _____ _ _ _ ___ | __ ) __\ \ / / __ __/ \ ___ |_ _| |_ | ___| _| \ | | | |_ / _ \ | _ \ / _ \ V / \ \ /\ / / _ \ / __| | || __| | |_ | | | | \| | | __| | | | | |_) | (_) | | \ V V / ___ \\__ \ | || |_ | _|| |_| | |\ | | |_| |_| | |____/ \___/|_| \_/\_/_/ \_\___/ |___|\__| |_| \__,_|_| \_| \__|\___/ _ ____ ____ _ ____ __ __ _ _ _ | |_| _ \ __ _ / ___| | __ | _ \ __\ \ / / __ | | | | | __| |_) / _` | | | |/ / | | | |/ _ \ \ /\ / / '_ \ | | | | | |_| _ < (_| | |___| < | |_| | (_) \ V V /| | | | |_|_|_| \__|_| \_\__,_|\____|_|\_\ |____/ \___/ \_/\_/ |_| |_| (_|_|_)
1 parent e17ae1f commit f96263a

File tree

1 file changed

+1
-1
lines changed
  • scikits/learn/svm/src/libsvm

1 file changed

+1
-1
lines changed

scikits/learn/svm/src/libsvm/svm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3038,7 +3038,7 @@ const char *PREFIX(check_parameter)(const PREFIX(problem) *prob, const svm_param
30383038
{
30393039
max_nr_class *= 2;
30403040
label = (int *)realloc(label,max_nr_class*sizeof(int));
3041-
count = (double *)realloc(count,max_nr_class*sizeof(int));
3041+
count = (double *)realloc(count,max_nr_class*sizeof(double));
30423042

30433043
}
30443044
label[nr_class] = this_label;

0 commit comments

Comments
 (0)