]> granicus.if.org Git - liblinear/log
liblinear
5 years agoChange version number to 221 for 2.21 release
Wei-Lin Chiang [Tue, 2 Oct 2018 11:58:00 +0000 (19:58 +0800)]
Change version number to 221 for 2.21 release

5 years agoChanges due to a modification of the same file in LIBSVM:
ppetter1025 [Mon, 10 Sep 2018 12:24:54 +0000 (20:24 +0800)]
Changes due to a modification of the same file in LIBSVM:

use array for reading data in python/commonutil.py to lower the memory usage

5 years agoChanges due to a bug of the same file in LIBSVM:
ppetter1025 [Mon, 10 Sep 2018 11:50:26 +0000 (19:50 +0800)]
Changes due to a bug of the same file in LIBSVM:

fix a bug in python/commonutil.py for reading pre-computed kernel

5 years agoRename get_diagH to get_diag_preconditioner
Wei-Lin Chiang [Tue, 18 Sep 2018 12:04:55 +0000 (20:04 +0800)]
Rename get_diagH to get_diag_preconditioner

5 years agoChanges due to a bug of the same file in LIBSVM:
Chih-Jen Lin [Mon, 30 Jul 2018 14:21:00 +0000 (22:21 +0800)]
Changes due to a bug of the same file in LIBSVM:

    Fix a bug in python/commonutil.py that the function "csr_scale" does not return the scaled data

5 years ago Include LIBSVM's svm-scale.c in the package.
Chih-Jen Lin [Thu, 26 Jul 2018 15:11:23 +0000 (23:11 +0800)]
Include LIBSVM's svm-scale.c in the package.

    Add two functions (csr_find_scale_param, csr_scale) for data scaling in python interface.

    Remove utility functions (svm_read_problem, evaluations) in liblinearutil.py and directly use them from LIBSVM's commonutil.py. Functions for scaling are also put in commonutil.py.

5 years agoIn svm_read_problem we removed zeros while reading data. Changed to keep them for...
ppetter1025 [Thu, 26 Jul 2018 14:39:36 +0000 (22:39 +0800)]
In svm_read_problem we removed zeros while reading data. Changed to keep them for consistency with LIBSVM (for which zeros must be kept for pre-computed kernels)

5 years agoadd section title "Quick Start with Scipy" in table of contents
ppetter1025 [Thu, 26 Jul 2018 14:38:28 +0000 (22:38 +0800)]
add section title "Quick Start with Scipy" in table of contents

5 years agoPrint more digit of predicted labels (%.17g) as more accurate target values may be...
Chih-Jen Lin [Sat, 30 Jun 2018 00:04:32 +0000 (08:04 +0800)]
Print more digit of predicted labels (%.17g) as more accurate target values may be needed for regression. This change follows from the recent changes in LIBSVM.

5 years agoFix a bug in svm_read_problem of python/liblinearutil.py so float(val) rather than...
ppetter1025 [Tue, 12 Jun 2018 14:10:12 +0000 (22:10 +0800)]
Fix a bug in svm_read_problem of python/liblinearutil.py so float(val) rather than val is used to detect zero fearue values.

6 years agoprint more digits of model parameter: %.16g to %.17g
Chou Hung-Yi [Wed, 23 May 2018 14:51:51 +0000 (22:51 +0800)]
print more digits of model parameter: %.16g to %.17g

6 years agoFixed bug and optimize code in TRON::tron
b92paul [Thu, 8 Mar 2018 07:02:51 +0000 (15:02 +0800)]
Fixed bug and optimize code in TRON::tron

Variable "iter" and "w" won't change in the
while loop of function TRON::tron when the
direction does not lead to sufficient
function-value decrease, so using expression
"iter == 1" as a flag to initialize variables
will cause problems in the first step.
We introduce a new variable "delta_adjusted" to
fix the bug.

The function call "fun_obj->get_diagH(M)" and the
calculation of "(1-alpha_pcg) I + alpha_pcg M"
can be saved if "iter" and "w" remains the same.
We move some lines of code to save the
calculation.

6 years agoInstructions in README for building windows dynamic library: libsvm.dll
Chih-Jen Lin [Mon, 25 Dec 2017 07:56:02 +0000 (15:56 +0800)]
Instructions in README for building windows dynamic library: libsvm.dll
should be liblinear.dll

6 years agomove l2r_lr_fun::get_diagH(double *M) to an earlier place to be consistent
Chih-Jen Lin [Sun, 24 Dec 2017 01:52:27 +0000 (09:52 +0800)]
move l2r_lr_fun::get_diagH(double *M) to an earlier place to be consistent
with l2r_l2_svc_fun::get_diagH(double *M)

6 years agoversion number in linear.h changed to 220 for 2.20 release v220
Wei-Lin Chiang [Thu, 30 Nov 2017 08:53:25 +0000 (16:53 +0800)]
version number in linear.h changed to 220 for 2.20 release

6 years agoUpdate windows and matlab binaries
Wei-Lin Chiang [Tue, 28 Nov 2017 15:15:46 +0000 (23:15 +0800)]
Update windows and matlab binaries

The binaries are built by VC 2015 & matlab R2016b on Windows 10

6 years agoAdd mixed diagonal preconditioner to TRON method
b92paul [Tue, 17 Oct 2017 10:51:40 +0000 (18:51 +0800)]
Add mixed diagonal preconditioner to TRON method

We use (1-alpha)*I + alpha*diag(H_k) with
alpha=0.01 as a preconditioner to run PCG in TRON
method.

Following lines are the changes:
- Change TRON::trcg to TRON::trpcg with
additional argument M for PCG iterations
- Add l2r_l2_svc_fun::get_diagH and
l2r_l2_svc_fun::get_diagH to get diagonal
component of Hessian
- Add static function uTMv for weighted dot
for vector u and v with weight M

For detailed analysis, please check
http://www.csie.ntu.edu.tw/~cjlin/papers/tron_pcg/precondition.pdf

7 years agochange year info in COPYRIGHT
Chih-Jen Lin [Wed, 10 May 2017 08:32:29 +0000 (16:32 +0800)]
change year info in COPYRIGHT

7 years ago in load_model() of linear.cpp, parameters for training only won't be assigned...
Chih-Jen Lin [Sat, 8 Apr 2017 06:47:35 +0000 (14:47 +0800)]
in load_model() of linear.cpp, parameters for training only won't be assigned after reading the model. However, we initialize arrays as NULL for safety. This follows the earlier change in libsvm

7 years agoUpdate windows and matlab binaries v211
Wei-Lin Chiang [Tue, 28 Mar 2017 13:15:59 +0000 (21:15 +0800)]
Update windows and matlab binaries

The binaries are built by VC 2010 & matlab 2013a on Windows 10

7 years agoMerge branch 'master' of svm.csie.ntu.edu.tw:liblr
Hsin-Yuan Huang [Mon, 27 Mar 2017 04:46:53 +0000 (12:46 +0800)]
Merge branch 'master' of svm.csie.ntu.edu.tw:liblr

7 years agoAdd Scipy Support for Python Interface
Hsin-Yuan Huang [Mon, 27 Mar 2017 04:46:25 +0000 (12:46 +0800)]
Add Scipy Support for Python Interface

7 years agoRemove unused fscanf in load_model in linear.cpp
b92paul [Tue, 21 Mar 2017 06:08:53 +0000 (14:08 +0800)]
Remove unused fscanf in load_model in linear.cpp

Since FSCANF() function will check if the program
successfully read a double each time in for loop
(line 2887 in linear.cpp), the lines from 2888 to
2891 in linear.cpp are redundant and may cause
error in new version of VS compiler (14.0).

7 years agoFix coding style
b92paul [Tue, 21 Mar 2017 06:08:05 +0000 (14:08 +0800)]
Fix coding style

7 years agoModify README for better clarification
Hsin-Yuan Huang [Tue, 14 Mar 2017 12:46:53 +0000 (20:46 +0800)]
Modify README for better clarification

7 years agoAdd version information in LIBLINEAR README
Hsin-Yuan Huang [Mon, 13 Mar 2017 14:57:05 +0000 (22:57 +0800)]
Add version information in LIBLINEAR README

7 years agoAdd version number for LIBLINEAR
Hsin-Yuan Huang [Mon, 13 Mar 2017 13:03:13 +0000 (21:03 +0800)]
Add version number for LIBLINEAR

7 years agoremove trailing spaces and tabs
Kevin [Mon, 13 Mar 2017 07:22:41 +0000 (15:22 +0800)]
remove trailing spaces and tabs

7 years agofix a description in README: the size of w is nr_feature*nr_class but we didn't menti...
Chih-Jen Lin [Wed, 22 Feb 2017 05:14:38 +0000 (13:14 +0800)]
fix a description in README: the size of w is nr_feature*nr_class but we didn't mention the exception when nr_class = 2.

7 years agoAdd new region updating rule in TRON method
b92paul [Tue, 21 Feb 2017 08:52:58 +0000 (16:52 +0800)]
Add new region updating rule in TRON method

The new rule will change delta to delta*sigma3 when
actred >= eta2*prered and step reach trust region boundary in CG
iterations.

Following lines are the changes:
- Add new argument reach_boundary in TRON::trcg method to return whether
step from CG iterations reached boundary or not.
- Add new enlarge rule using the result reach_boundary returned from
TRON::trcg in TRON::tron method.

7 years agoRemove an unnecessary check for actural reduction
Wei-Lin Chiang [Fri, 7 Oct 2016 04:49:42 +0000 (12:49 +0800)]
Remove an unnecessary check for actural reduction

7 years agoRemove a redundant array in Hv functions
Wei-Lin Chiang [Wed, 7 Sep 2016 04:54:09 +0000 (12:54 +0800)]
Remove a redundant array in Hv functions

8 years agoremove unnecessary space in README, linear.cpp and matlab/README
b92paul [Tue, 5 Jan 2016 15:18:06 +0000 (23:18 +0800)]
remove unnecessary space in README, linear.cpp and matlab/README

8 years agoMerge branch 'master' of svm.csie.ntu.edu.tw:liblr
Chih-Jen Lin [Tue, 5 Jan 2016 14:28:11 +0000 (22:28 +0800)]
Merge branch 'master' of svm.csie.ntu.edu.tw:liblr

8 years agoremove unnecessary tab in linear.cpp
Chih-Jen Lin [Tue, 5 Jan 2016 14:25:25 +0000 (22:25 +0800)]
remove unnecessary tab in linear.cpp

8 years agoRevert "initial commit of line search branch"
leepei [Thu, 31 Dec 2015 12:39:06 +0000 (20:39 +0800)]
Revert "initial commit of line search branch"

This reverts commit 2f55d046ff6aa48171ceee85572d4783cedb2f38.

8 years agoinitial commit of line search branch
leepei [Thu, 31 Dec 2015 12:25:44 +0000 (20:25 +0800)]
initial commit of line search branch

8 years agoMerge branch 'master' of svm.csie.ntu.edu.tw:liblr
Chih-Jen Lin [Thu, 31 Dec 2015 11:02:08 +0000 (19:02 +0800)]
Merge branch 'master' of svm.csie.ntu.edu.tw:liblr

8 years agothe array D for the diagonal matrix in Hessian isn't needed for l2_loss problems
Chih-Jen Lin [Thu, 31 Dec 2015 11:01:15 +0000 (19:01 +0800)]
the array D for the diagonal matrix in Hessian isn't needed for l2_loss problems
so we remove it. It's now only used for lr.

8 years agoFix minor issues in describing the build of windows binaries
Chih-Jen Lin [Wed, 25 Nov 2015 00:55:02 +0000 (08:55 +0800)]
Fix minor issues in describing the build of windows binaries

8 years agoin "Building Windows Binaries" of README stress that binaries are
Chih-Jen Lin [Thu, 22 Oct 2015 08:32:24 +0000 (16:32 +0800)]
in "Building Windows Binaries" of README stress that binaries are
already available and they need to do it only if they want to
"re-build" the binaries.

8 years agofixed repeated declaration of variable j in function train.
jeremy89183 [Mon, 19 Oct 2015 05:19:10 +0000 (13:19 +0800)]
fixed repeated declaration of variable j in function train.

8 years agoWindows and matlab binaries built on KKT v210
Winston [Sat, 26 Sep 2015 15:08:28 +0000 (23:08 +0800)]
Windows and matlab binaries built on KKT

8 years agoCombine Xv and XTv and add sparse operator class
Wei-Lin Chiang [Thu, 24 Sep 2015 16:57:09 +0000 (00:57 +0800)]
Combine Xv and XTv and add sparse operator class

In Hv function, we combine the Xv and XTv operations to
significantly improve the performance.
For detailed analysis, please check Fig. 3 in
http://www.csie.ntu.edu.tw/~cjlin/papers/multicore_liblinear_icdm.pdf
In addition, we replace some repeated linear operations with functions
in the new class, sparse_operator, to improve the readability.

8 years agoMerge branch 'master' of svm.csie.ntu.edu.tw:liblr
Chih-Jen Lin [Wed, 5 Aug 2015 05:06:30 +0000 (22:06 -0700)]
Merge branch 'master' of svm.csie.ntu.edu.tw:liblr

8 years agofix a spelling error in a comment
Chih-Jen Lin [Wed, 5 Aug 2015 05:05:44 +0000 (22:05 -0700)]
fix a spelling error in a comment

8 years agoChange %lf to %g in do_find_parameter_C() for Readability
momohuang [Mon, 3 Aug 2015 05:11:22 +0000 (13:11 +0800)]
Change %lf to %g in do_find_parameter_C() for Readability

8 years agoFix the python interface for windows
Wei-Lin Chiang [Sat, 1 Aug 2015 09:13:02 +0000 (17:13 +0800)]
Fix the python interface for windows

Add find_parameter_C to linear.def,
and add lib to all target in Makefile.win.

8 years agoWe fix the warning messege of the 'fscanf' function in this commit.
willchen [Mon, 20 Jul 2015 12:47:19 +0000 (20:47 +0800)]
We fix the warning messege of the 'fscanf' function in this commit.

In the last one 'fscanf', we use the 'if' statment to check the 'return value'
because its 'return value' is different from the others.

Note that '__VA_ARGS__' in the 'define' function is not support in C89.

8 years agoCatch the exception to display the error message
Hsiang-Fu Yu [Fri, 17 Jul 2015 06:57:35 +0000 (01:57 -0500)]
Catch the exception to display the error message

Wrap entire make.m into a function such that we dont't
pollute the variable namespace. Without this, make.m
will introduce a variable called "err".

8 years agofix an indentation problem in python/liblinearutil.py
Chih-Jen Lin [Thu, 16 Jul 2015 06:21:38 +0000 (23:21 -0700)]
fix an indentation problem in python/liblinearutil.py

8 years agochange 2014 to 2015 in copyright v201
boyu [Wed, 8 Jul 2015 13:19:30 +0000 (21:19 +0800)]
change 2014 to 2015 in copyright

8 years agoWindows and matlab binaries built on KKT
boyu [Wed, 8 Jul 2015 09:10:34 +0000 (17:10 +0800)]
Windows and matlab binaries built on KKT

8 years agoFix bug and memory leaks in 2.0
boyu [Tue, 7 Jul 2015 16:16:29 +0000 (00:16 +0800)]
Fix bug and memory leaks in 2.0
- For SVR, model_->w was not initialized.
  Now it is initialized in train().
- For parameter search, subprob of CV and its x, y are not freed
  at the end of find_parameter_C().
- There were problems in checking prev_w for stopping condition.
  It wrongly allocated memory for num_unchange_w < 0.
  Flow control is modified.
- Reposition w_new in tron to reduce peak memory usage.
- Now print nr_fold when parameter search starts.

8 years agoREADME: example for -c with -C
Chia-Hua Ho [Tue, 7 Jul 2015 15:26:55 +0000 (23:26 +0800)]
README: example for -c with -C

8 years agoMerge branch 'master' of svm.csie.ntu.edu.tw:liblr
Chia-Hua Ho [Mon, 29 Jun 2015 06:21:01 +0000 (14:21 +0800)]
Merge branch 'master' of svm.csie.ntu.edu.tw:liblr

8 years agoWindows binary (with matlab binaries) compiled on KKT v200
boyu [Sun, 28 Jun 2015 21:25:11 +0000 (05:25 +0800)]
Windows binary (with matlab binaries) compiled on KKT

8 years agowarm start parameter search supported
boyu [Sun, 28 Jun 2015 20:56:32 +0000 (04:56 +0800)]
warm start parameter search supported
 -add functions for parameter search
 -add init_sol in struct parameter
 -modify function train to support initial solution for L2R_LR and L2R_L2LOSS_SVC
 -interface and train.c update: option -C is added

8 years agoWindows binary (with matlab binaries) compiled on KKT
boyu [Sun, 28 Jun 2015 21:25:11 +0000 (05:25 +0800)]
Windows binary (with matlab binaries) compiled on KKT

8 years agoSquashed commit of the following:
boyu [Sun, 28 Jun 2015 20:56:32 +0000 (04:56 +0800)]
Squashed commit of the following:

commit 3f867438140182ad5edeb7b5fff11fbe39216052
Author: boyu <r02222047@ntu.edu.tw>
Date:   Mon Jun 29 04:23:22 2015 +0800

    num_unchanged_w

commit d8fce5f7a19fa14bcfe0245be1217741706bb913
Author: boyu <r02222047@ntu.edu.tw>
Date:   Sun Jun 28 14:57:25 2015 +0800

    windows math.h log ambiguous fix

commit 52d5addd8179f247f56df8eb098fa24751b8bf0c
Author: Chia-Hua Ho <b95082@csie.ntu.edu.tw>
Date:   Sat Jun 27 16:38:04 2015 +0800

    c_double * 0 => None

commit 24e0fac8d23b31de54c28ab4a790d4fe56f5f3b0
Author: Chia-Hua Ho <b95082@csie.ntu.edu.tw>
Date:   Sat Jun 27 15:04:27 2015 +0800

    default of -C: L2R_LR => L2R_L2LOSS_SVC

commit fd170647d2808ff3ff97e4af7d2e76734a5ffd7a
Author: Chia-Hua Ho <b95082@csie.ntu.edu.tw>
Date:   Sat Jun 27 00:11:36 2015 +0800

    Fix NULL pointer bug, python README

commit 947cfa1226a774e79675c7280d2de6719545ff29
Author: boyu <r02222047@ntu.edu.tw>
Date:   Fri Jun 26 23:50:34 2015 +0800

    fix

commit 225d35ed39d2b9028ae4da1005183ea65a30d5f1
Merge: adf59e5 5d5b3a6
Author: boyu <r02222047@ntu.edu.tw>
Date:   Fri Jun 26 23:49:37 2015 +0800

    Merge branch 'parasearch' of svm:liblr into parasearch

commit adf59e5ecc60e5b943bf0083a8d53156463125a9
Author: boyu <r02222047@ntu.edu.tw>
Date:   Fri Jun 26 23:49:12 2015 +0800

    fix

commit 5d5b3a60edd41b4585c669f210b0bb67f83900b4
Author: Chia-Hua Ho <b95082@csie.ntu.edu.tw>
Date:   Fri Jun 26 21:07:31 2015 +0800

    README

commit bcdde0a776b6f7f1023ec65733d689834c9c445d
Author: boyu <r02222047@ntu.edu.tw>
Date:   Fri Jun 26 19:52:57 2015 +0800

    num_unchanged_w; README

commit 97b4b7a2af81767effadaaa3549f29e5866320e3
Author: Chih-Jen Lin <cjlin@csie.ntu.edu.tw>
Date:   Thu Jun 25 20:07:24 2015 -0700

    minor changes to ensure consistency

commit b982e1c0fed146c82efc616de49f10323fb9ae8f
Author: boyu <r02222047@ntu.edu.tw>
Date:   Fri Jun 26 02:56:29 2015 +0800

    naming and indent

commit a46ba8359de45401f9693ef27c1bfd2ed968118e
Author: boyu <r02222047@ntu.edu.tw>
Date:   Fri Jun 26 02:40:07 2015 +0800

    comments except 67 and interface

commit 75b8a547eb742240127f39599f94427d1bf9300e
Merge: 83dc99b 1c9b998
Author: boyu <r02222047@ntu.edu.tw>
Date:   Thu Jun 25 23:05:58 2015 +0800

    Merge branch 'parasearch' of svm:liblr into parasearch

commit 83dc99b843569c4fa868ad0c9eb669a7e1e9ac9b
Author: boyu <r02222047@ntu.edu.tw>
Date:   Thu Jun 25 23:05:22 2015 +0800

    solver specified

commit 1c9b9989046244ba6b983abffc742f931290c692
Merge: 1be6f38 e25481b
Author: Chia-Hua Ho <b95082@csie.ntu.edu.tw>
Date:   Thu Jun 25 22:24:21 2015 +0800

    Merge branch 'parasearch' of svm.csie.ntu.edu.tw:liblr into parasearch

commit 1be6f384358d79b86d602dcfbae0d2bd0c0ff951
Author: Chia-Hua Ho <b95082@csie.ntu.edu.tw>
Date:   Thu Jun 25 22:23:58 2015 +0800

    MATLAB interface README

commit e25481bd5325a6d2fc076af20ed55c3afd02b62b
Author: boyu <r02222047@ntu.edu.tw>
Date:   Thu Jun 25 20:56:16 2015 +0800

    unchanged_w undo

commit e41852838bae0acec5e64e20e6de308179456597
Author: boyu <r02222047@ntu.edu.tw>
Date:   Thu Jun 25 13:03:41 2015 +0800

    python fix

commit d86ef0693eb18e7b763b3e18581c56b2054283c4
Author: boyu <r02222047@ntu.edu.tw>
Date:   Thu Jun 25 13:00:50 2015 +0800

    comments 6/25

commit ffc1831a7a28113925ed4825ad57e67a4f26124b
Merge: fed01f9 a29f7b1
Author: boyu <r02222047@ntu.edu.tw>
Date:   Thu Jun 25 12:47:23 2015 +0800

    Merge branch 'parasearch' of svm:liblr into parasearch

commit fed01f95c27b720d9755a1f5a0601c76ae0e75f8
Author: boyu <r02222047@ntu.edu.tw>
Date:   Thu Jun 25 12:24:29 2015 +0800

    python

commit a29f7b111a5b464bcd612490da00b4952db95167
Author: Chia-Hua Ho <b95082@csie.ntu.edu.tw>
Date:   Thu Jun 25 11:22:28 2015 +0800

    comments 20150625: train.c matlab/train.c

commit d25ac8709c095be2406cf3eda6125e34197e5966
Merge: e45c874 4dc5739
Author: Chih-Jen Lin <cjlin@csie.ntu.edu.tw>
Date:   Thu Jun 25 02:30:18 2015 +0800

    Merge branch 'parasearch' of svm.csie.ntu.edu.tw:liblr into parasearch

    Conflicts:
     linear.cpp

commit e45c8742e8ef05a47c7c9613807ca7954ab21925
Author: Chih-Jen Lin <cjlin@csie.ntu.edu.tw>
Date:   Thu Jun 25 02:26:37 2015 +0800

    reorder variables' declaration in find_parameter_C

commit 4dc57397a193faf761cf3602d8daae027a6930de
Author: boyu <r02222047@ntu.edu.tw>
Date:   Wed Jun 24 23:25:31 2015 +0800

    fix

commit a37f6180940470d491fa7db0db88a7801903fbf8
Author: boyu <r02222047@ntu.edu.tw>
Date:   Wed Jun 24 18:32:21 2015 +0800

    fix

commit bf8dcd427e82f52da413406eac84189445ef12a9
Author: Chia-Hua Ho <b95082@csie.ntu.edu.tw>
Date:   Wed Jun 24 18:09:49 2015 +0800

    MATLAB interface

commit 10ec863e6560e16fa3edb5b45387961efbd3bbbe
Author: boyu <r02222047@ntu.edu.tw>
Date:   Wed Jun 24 15:55:07 2015 +0800

    comments 0618; merge the two new subroutine

commit 069daa543cfd6bb0f2b858a3a4c6ac60d385f32e
Author: boyu <r02222047@ntu.edu.tw>
Date:   Thu Jun 18 19:08:50 2015 +0800

    CV separate; init_sol in param; remove interactive

commit 64bdcf116bca2ecc2c6956dbe62a8c517c31528f
Author: boyu <r02222047@ntu.edu.tw>
Date:   Sat Jun 13 00:29:30 2015 +0800

    intial check on 2015 6 11

commit ae3fd7104ef587834ab06b5fdadaacaefb757ffe
Author: boyu <r02222047@ntu.edu.tw>
Date:   Fri Jun 12 18:50:06 2015 +0800

    nolable

8 years agoMerge branch 'master' of svm.csie.ntu.edu.tw:liblr
Chih-Jen Lin [Fri, 19 Jun 2015 03:30:02 +0000 (20:30 -0700)]
Merge branch 'master' of svm.csie.ntu.edu.tw:liblr

8 years agoExplain "Parameters" of the returned MATLAB/Octave model. It contains only solver...
Chih-Jen Lin [Fri, 19 Jun 2015 03:12:52 +0000 (20:12 -0700)]
Explain "Parameters" of the returned MATLAB/Octave model. It contains only solver type now

9 years agoUsing include "linear.h" instead of include "../linear.h"
b02902056 [Wed, 6 May 2015 12:05:24 +0000 (20:05 +0800)]
Using include "linear.h" instead of include "../linear.h"

Commented by CarnĂ« Draug <carandraug+dev@gmail.com>:

The Matlab Makefile already has .. on the -I option for the compiler
so this was not required. This was only required for the make.m Matlab
and Octave script, so it was modified to include .. on the search path.

This change is required to build the mex files using a libsvm library
different than the one in this distribution.  Maybe a system-wide
install of libsvm, or just another version for testing.

See the pull request for details: https://github.com/cjlin1/libsvm/pull/29

9 years agoMatlab/Octave: use the standard method of checking OCTAVE_VERSION to distinguish...
b02902056 [Wed, 6 May 2015 11:58:30 +0000 (19:58 +0800)]
Matlab/Octave: use the standard method of checking OCTAVE_VERSION to distinguish between the two.

Commented by CarnĂ« Draug <carandraug+dev@gmail.com>

See the pull request for details: https://github.com/cjlin1/libsvm/pull/30

9 years agoMake the indention of set_locale consistent with the group convention
leepei [Sat, 4 Apr 2015 21:58:42 +0000 (05:58 +0800)]
Make the indention of set_locale consistent with the group convention

9 years agosymbolic link of libsvmread/write.c changed to hardlink
Chih-Jen Lin [Tue, 24 Mar 2015 05:10:10 +0000 (13:10 +0800)]
symbolic link of libsvmread/write.c changed to hardlink
as files are not accessable in liblinear git directory

9 years ago[Update] set windows 64bit as default
yuanbowen [Sun, 1 Mar 2015 05:01:51 +0000 (13:01 +0800)]
[Update] set windows 64bit as default

9 years agoChange the access permissions to window binary from 644 to 755.
yong [Tue, 24 Feb 2015 03:33:22 +0000 (19:33 -0800)]
Change the access permissions to window binary from 644 to 755.

9 years agoCheck return value of setlocale().
Tavian Barnes [Wed, 3 Dec 2014 15:20:59 +0000 (10:20 -0500)]
Check return value of setlocale().

setlocale() is allowed to return NULL.  In particular, this happens on
Bionic (Android's libc) because it doesn't support C locales.

Signed-off-by: Chih-Jen Lin <cjlin@csie.ntu.edu.tw>
9 years agocompile new version windows binary v196
yuanbowen [Fri, 14 Nov 2014 12:58:17 +0000 (20:58 +0800)]
compile new version windows binary

9 years agoCompile 64-bit windows binary to replace 32-bit windows binary.
yong [Mon, 3 Nov 2014 03:12:03 +0000 (11:12 +0800)]
Compile 64-bit windows binary to replace 32-bit windows binary.

9 years agoexplicit list blas/*.c for consistency with octave v195
Chih-Jen Lin [Mon, 27 Oct 2014 02:47:21 +0000 (10:47 +0800)]
explicit list blas/*.c for consistency with octave
(as for octave explicit names are needed)

9 years agoCompile windows binary.
yong [Fri, 24 Oct 2014 11:57:06 +0000 (19:57 +0800)]
Compile windows binary.

9 years agoadd three functions:
yong [Fri, 24 Oct 2014 11:09:48 +0000 (19:09 +0800)]
add three functions:
get_decfun_coef, get_decfun_bias, and check_regression_model
to linear.def

9 years agoIn get_decfun_coef and get_decfun_bias, a zero value is returned in all invalid
Yu-Chin [Tue, 21 Oct 2014 19:32:51 +0000 (03:32 +0800)]
In get_decfun_coef and get_decfun_bias, a zero value is returned in all invalid
cases. We decide not to return NaN because we are not sure if it can be
properly assigned in all platforms. (For example, ``double nan = 0.0/0.0;''
won't compile in Visual Studio.)

9 years agoTo support nnz > 2^32, change the data type of the variables related to nnz.
b99902019 [Fri, 17 Oct 2014 03:19:07 +0000 (11:19 +0800)]
To support nnz > 2^32, change the data type of the variables related to nnz.
Data types of some other variables are also changed to be consistent with the
data types returned by matlab functions.

9 years agoremove ^M in the end of each line in make.m
Yu-Chin [Thu, 16 Oct 2014 13:41:23 +0000 (21:41 +0800)]
remove ^M in the end of each line in make.m

9 years ago1. use "extern C" in blas to make sure the compiled function names are always not...
Yu-Chin [Wed, 15 Oct 2014 15:17:41 +0000 (23:17 +0800)]
1. use "extern C" in blas to make sure the compiled function names are always not mangled.
2. replace ``#'' with ``='' in matlab/Makefile

9 years agoreplace long int with size_t in linear.cpp and train.c
Yu-Chin [Mon, 13 Oct 2014 16:13:36 +0000 (00:13 +0800)]
replace long int with size_t in linear.cpp and train.c

9 years agoadd two functions get_decfun_coef and get_decfun_bias
Hsiang-Fu Yu [Mon, 28 Jul 2014 18:22:42 +0000 (13:22 -0500)]
add two functions get_decfun_coef and get_decfun_bias

9 years agouse __all__ in Python interfaces to make sure only useful things are visible to the...
Yu-Chin [Fri, 25 Jul 2014 15:37:50 +0000 (23:37 +0800)]
use __all__ in Python interfaces to make sure only useful things are visible to the users

9 years agoExpand the expression of blas to fix the compiling error
coha [Thu, 16 Oct 2014 05:43:09 +0000 (13:43 +0800)]
Expand the expression of blas to fix the compiling error

9 years agoMerge branch 'master' of svm.csie.ntu.edu.tw:liblr
Chih-Jen Lin [Fri, 3 Oct 2014 04:18:08 +0000 (12:18 +0800)]
Merge branch 'master' of svm.csie.ntu.edu.tw:liblr

9 years agostopping condition of l1 solvers uses 1-norm rather than inf norm
Chih-Jen Lin [Fri, 3 Oct 2014 04:17:34 +0000 (12:17 +0800)]
stopping condition of l1 solvers uses 1-norm rather than inf norm
(wrong description in README)

9 years agoinitialize Gnorm1_init with -1
Yu-Chin [Fri, 29 Aug 2014 08:51:23 +0000 (16:51 +0800)]
initialize Gnorm1_init with -1

9 years agoinitialize Gnorm1_init with NAN
Yu-Chin [Tue, 26 Aug 2014 03:46:27 +0000 (11:46 +0800)]
initialize Gnorm1_init with NAN

9 years agoMerge branch 'master' of svm.csie.ntu.edu.tw:liblr
Chih-Jen Lin [Fri, 20 Jun 2014 14:15:39 +0000 (22:15 +0800)]
Merge branch 'master' of svm.csie.ntu.edu.tw:liblr

9 years agofix the following bug
Chih-Jen Lin [Fri, 20 Jun 2014 14:15:19 +0000 (22:15 +0800)]
fix the following bug

- model_->bias = (int)ptr[0];
+ model_->bias = ptr[0];

9 years agomodify matlab/train.c to check if the label vector is in dense format.
Tzu-Ming Kuo [Fri, 6 Jun 2014 15:42:35 +0000 (23:42 +0800)]
modify matlab/train.c to check if the label vector is in dense format.

10 years agoChange the year of COPYRIGHT from 2013 to 2014
yong [Wed, 23 Apr 2014 15:23:58 +0000 (23:23 +0800)]
Change the year of COPYRIGHT from 2013 to 2014

10 years agoModify SHVER from 1 to 2.
yong [Fri, 21 Mar 2014 14:54:24 +0000 (22:54 +0800)]
Modify SHVER from 1 to 2.

10 years agomatlab Makefile modified, octave removed
boyu [Tue, 10 Dec 2013 14:36:59 +0000 (22:36 +0800)]
matlab Makefile modified, octave removed

10 years agoModify README so that user can build 64 bit windows binary
b99902019 [Mon, 2 Dec 2013 04:32:14 +0000 (12:32 +0800)]
Modify README so that user can build 64 bit windows binary
Fix a bug in Makefile.win: __WIN32__ should be _WIN32

10 years agoremove one space in matlab/README v194
Chih-Jen Lin [Mon, 11 Nov 2013 10:12:19 +0000 (18:12 +0800)]
remove one space in matlab/README

10 years agocompiled windows binary
boyu [Sat, 9 Nov 2013 10:21:43 +0000 (18:21 +0800)]
compiled windows binary

10 years agoReplace long with long int in linear.cpp for consistency
Wei-Sheng Chin [Sat, 2 Nov 2013 06:45:49 +0000 (14:45 +0800)]
Replace long with long int in linear.cpp for consistency

10 years agoChange the type of nnz (counter of nonzero elements) in "transpose" in "linear.cpp...
Wei-Sheng Chin [Thu, 31 Oct 2013 10:09:08 +0000 (18:09 +0800)]
Change the type of nnz (counter of nonzero elements) in "transpose" in "linear.cpp" from "int" to "long."

10 years agorevert previous two accidental commits
Yu-Chin [Sat, 26 Oct 2013 06:19:48 +0000 (14:19 +0800)]
revert previous two accidental commits

10 years agoset number of threads
Yu-Chin [Sat, 26 Oct 2013 06:00:32 +0000 (14:00 +0800)]
set number of threads

10 years ago.
Yu-Chin [Fri, 25 Oct 2013 15:22:32 +0000 (23:22 +0800)]
.