Commit Graph

2363 Commits

Author SHA1 Message Date
Davis King
ad64c286ff Fixed the code so that it works properly with the new row vector
range() rather than the previous column vector range().

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402901
2009-03-07 05:10:29 +00:00
Davis King
aa76eec386 Changed the cross_validate_trainer() function so that it catches
invalid_svm_nu_error exceptions and just gives them a bad score rather
than letting them get out and annoy the user.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402900
2009-03-06 21:55:39 +00:00
Davis King
f61ef323e0 updated the docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402899
2009-03-06 20:56:28 +00:00
Davis King
cceadf370e Updated matrix example.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402898
2009-03-06 20:33:23 +00:00
Davis King
484d51039b - Added some tests for the new linspace, logspace, and cartesian_product functions.
- Updated old tests now that range() gives row vectors instead of column vectors.
  - Fixed a bug in subm() that showed up when statically dimensioned row vectors
    were used to select a sub matrix.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402897
2009-03-06 20:21:22 +00:00
Davis King
3d55900934 - Added the randm(), linspace(), logspace() and cartesian_product()
functions
  - Added an overload of pow() for pow(scalar, matrix)
  - Changed the range() function so that it returns row vectors
    instead of column vectors.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402896
2009-03-06 19:24:38 +00:00
Davis King
983b200bf9 Fixed invalid message in an assert statement.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402895
2009-03-06 17:15:34 +00:00
Davis King
bf2796069d Templated the matrix_range_exp so that it can use types other than long.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402894
2009-03-06 04:42:21 +00:00
Davis King
e3c0792968 Added a try catch block to catch invalid_svm_nu_error exceptions.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402893
2009-03-06 04:16:45 +00:00
Davis King
70b7137c1f updated the docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402892
2009-03-03 02:00:51 +00:00
Davis King
d0f6641004 updated the docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402891
2009-03-02 03:37:38 +00:00
Davis King
d35d27bf0f Added missing std:: qualifier.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402890
2009-03-02 03:15:28 +00:00
Davis King
ed52af2229 Added an initial cut of the pegasos stuff.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402889
2009-03-02 03:11:07 +00:00
Davis King
a55250c790 Removed unnecessary #include.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402888
2009-03-02 03:01:32 +00:00
Davis King
27f9e6ef67 Modified the svm_nu_trainer so that it uses its kernel
matrix cache more efficiently.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402887
2009-03-01 21:29:45 +00:00
Davis King
3cb6611d61 updated the docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402886
2009-03-01 16:04:15 +00:00
Davis King
f2de334c2c Added some functions to the kcentroid to allow the user to
compute the inner_product() of kcentroids as well as a few
other useful things.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402885
2009-03-01 16:03:26 +00:00
Davis King
3846bc63e8 Added the offset_kernel
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402884
2009-03-01 14:58:00 +00:00
Davis King
20008940ac Made the spec more clear.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402883
2009-03-01 14:50:27 +00:00
Davis King
815cac30b6 updated the docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402882
2009-02-28 19:38:30 +00:00
Davis King
2d7982cf41 Added a trace() function.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402881
2009-02-28 19:32:57 +00:00
Davis King
d4072818c3 cleanup spec
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402880
2009-02-28 19:24:50 +00:00
Davis King
543da8097c updated the docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402879
2009-02-28 19:13:52 +00:00
Davis King
4deccf5036 Added some tests for the new min/max functions.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402878
2009-02-28 19:08:35 +00:00
Davis King
af25d30ad3 Added functions to find the index of the min and max element of a vector.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402877
2009-02-28 19:03:56 +00:00
Davis King
050b2409af Fixed incorrect message in an assert.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402876
2009-02-19 03:27:23 +00:00
Davis King
49532acf87 Added licensing comments to the example programs.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402875
2009-02-17 01:45:57 +00:00
Davis King
6f7b7211c3 updated the docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402874
2009-02-16 03:08:06 +00:00
Davis King
9ccab1b21a Added the find_min_and_max() function. I also changed the code in the
lu_decomposition::is_singular() function to avoid what appears to be a
bug in gcc 4.2.4 that caused one of the regression tests to segfault
when built with -O3.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402873
2009-02-16 03:03:19 +00:00
Davis King
3919e4d51a Added some functions to the rectangle to make it easy
to get the corner points.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402872
2009-02-15 18:57:51 +00:00
Davis King
c6d4e03f55 Fixed a bug in the way Content-type was handled in HTTP posts.
(See bug #2600378)

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402871
2009-02-15 17:50:41 +00:00
Davis King
2712f4e361 Made the howto more clear.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402870
2009-02-15 17:14:50 +00:00
Davis King
ea7f4e65dd Update cmake file so it doesn't give warnings
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402869
2009-02-12 11:34:43 +00:00
Davis King
5130d89f2f Fixed a bug in an assert statement and also changed the code to avoid
potential compiler warnings.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402868
2009-02-09 23:00:17 +00:00
Davis King
cdec582070 Adjusted the epsilon to avoid false positives.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402867
2009-02-08 19:30:19 +00:00
Davis King
465d0763eb Changed cmake file so that it can find the 64bit Intel MKL when
appropriate.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402866
2009-02-08 14:42:35 +00:00
Davis King
31a4736c76 Changed code to avoid a potential race condition during program termination.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402865
2009-02-05 03:09:58 +00:00
Davis King
d4d79c64de Renamed cdiv to cdiv_ to avoid conflicts with code that #defines cdiv
to some macro.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402864
2009-02-05 02:41:15 +00:00
Davis King
46e1791568 updated the docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402863
2009-02-05 02:34:34 +00:00
Davis King
1c1730c1d0 Made a release
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402861
2009-02-04 03:50:08 +00:00
Davis King
5cc628479b - Added a bool to protect the unregister_thread_end_handler() function from
being called from the destructor of a global object when the state object
    the unregister_thread_end_handler() function uses has already been destroyed.
  - Changed the thread pool so that it only gets destroyed if there aren't any
    outstanding threads when the program ends.  If there are threads still
    running user tasks then the thread pool never attempts to destruct.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402860
2009-02-04 03:24:29 +00:00
Davis King
e2ea265fc6 updated the docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402859
2009-02-04 02:21:56 +00:00
Davis King
01efae59a1 Fixed a race condition in the logger object. It was missing a needed call
to unregister_thread_end_handler().  What could happen in some scenarios is,
during program termination, a global part of the logger object could be destructed
when it still had outstanding thread end handlers registered to it.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402858
2009-02-04 01:59:41 +00:00
Davis King
d0ec0fbeeb updated the docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402857
2009-02-04 00:30:31 +00:00
Davis King
3ae82ec017 Cleaned up the way the BLAS prototypes were declared.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402856
2009-02-04 00:12:19 +00:00
Davis King
e1a15ce101 updated the docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402855
2009-02-03 03:29:55 +00:00
Davis King
0e02ea50d1 Added some missing comments and asserts.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402854
2009-02-03 03:19:10 +00:00
Davis King
ea575d03bf Added the real_eigenvalues() function and also cleaned up a few things.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402853
2009-02-03 03:06:15 +00:00
Davis King
3e664e8d95 Removed a confusing comment.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402852
2009-02-03 03:02:50 +00:00
Davis King
0eac1d2134 updated the docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402851
2009-02-02 04:26:44 +00:00