Commit Graph
14342 Commits
Author SHA1 Message Date
Ryan Curtin 9e4e126589 Merge pull request #592 from kno10/patch-1
Bug fix for Elkan?
2016-03-25 23:59:24 -04:00
Ryan Curtin a0f1dd5632 Fix dual-tree k-means runtime bug.
The residue was being calculated incorrectly, and as a result it would run until
the maximum number of iterations.  Thanks to Erich Schubert for bringing this
one up and pointing it out.

The fascinating thing is that this did not trigger any test failures, because it
still converged to the correct results---it just took way longer than it should
have.
2016-03-25 21:17:32 -04:00
Ryan Curtin c14e81a563 Fix link. 2016-03-25 18:00:34 -07:00
Erich Schubert 04b0c0867f Minimal fix for bug in Elkan implementation.
Kill only one cluster, not all.
2016-03-25 22:50:01 +01:00
Erich Schubert 3988fc6987 Bug fix for Elkan?
AFAICT, the old code always killed all centroids if one cluster is empty.
Keeping the last centroids is much more stable.
2016-03-24 22:02:27 +01:00
Ryan Curtin 998cd7ff54 Loosen tolerance a bit so this test randomly fails less often. 2016-03-24 16:26:11 -04:00
Ryan Curtin 5af7dd9deb Merge pull request #591 from palashahuja/master
Adding name to the list of contributors
2016-03-24 15:36:44 -04:00
palashahuja 7d1bcd8233 Adding name to the list of contributors 2016-03-25 00:59:54 +05:30
Ryan Curtin e3b418918f Merge pull request #590 from MarcosPividori/master
Neighbor search: Fix error in adjustedScore calculation.
2016-03-23 15:44:19 -04:00
marcus 11b4b5e991 Use template parameters for the empty layer class (placeholder) to be usefull for all layer and minor style fixes. 2016-03-23 17:09:53 +01:00
marcus f13428ad89 Minor style fixes. 2016-03-23 17:07:32 +01:00
palashahuja 5775f3fbf2 small style changes in the test case file 2016-03-23 14:47:24 +01:00
palashahuja 6eba278ef0 small style changes 2016-03-23 14:47:24 +01:00
palashahuja 63a7f623d7 Adding complete implementation of dropconnect layer
with all the suggested changes.
2016-03-23 14:47:24 +01:00
MarcosPividori 3150b12118 Fix error in adjustedScore calculation. 2016-03-22 16:23:43 -03:00
Ryan Curtin 7199297dd0 Fix misspelling. Oops! 2016-03-22 15:06:21 -04:00
Ryan Curtin 501ffa545b The arma::hdf5_binary type already transposes on load and save.
In the future this will need to be changed, I think, because probably I will
attempt to change this behavior in upstream Armadillo.
2016-03-22 15:02:03 -04:00
Ryan Curtin 758d2773e4 Merge pull request #589 from cloudhan/warningC4267-patch
Manually set flag for _WIN64
2016-03-22 11:29:05 -04:00
Ryan Curtin 14273c052d Merge pull request #586 from ajjl/CMakeBlockendArguments
CMake blockend arguments
2016-03-22 11:25:33 -04:00
Cloud Han 1f75ba1ce2 Manually set flag for _WIN64
Manually set `ARMA_{64,32}BIT_WORD` for `{_WIN64,otherwise}` for windows build
This potentially eliminate tons of `warning C4267`
2016-03-22 11:47:20 +08:00
Alexander Leinoff 2330419b86 Removes CMake block termination arguments
Previously CMake block termination commands were required to have arguments
matching the command starting the block. This is no longer necessary and not
the preferred style. This type of change has been implemented in other open
source projects such as: ITK, vxl, and BRAINSTools. It is the preferred style
for KDE. Consistent style practices help improve readability and
maintainability of code.

This was implemented with the shell script:
NOTE: MUST USE GNU compliant version of sed
in else endif endforeach endfunction endmacro endwhile; do
        echo 's/\b'"$c"'\(\s*\)(.\+)/'"$c"'\1()/'
    done >convert.sed \
    && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' \
       | xargs -0 gsed -i -f convert.sed \
    && rm convert.sed

This is a reimplementation of ITK commit
e52dbe7fa476f6283c9b9d1507fca052355113a4

Fixes #585
2016-03-21 17:23:25 -05:00
Ryan Curtin 5ca72999bd Handle loading and saving HDF5 datasets correctly. 2016-03-21 17:41:17 -04:00
Ryan Curtin 24a224ab04 Merge pull request #584 from ajjl/CMakeLowercaseCommands
Converts CMake commands to lower case
2016-03-21 16:57:44 -04:00
Alexander Leinoff 3f3d018ea4 Converts CMake commands to lower case
CMake commands are sometimes given in upper and lower case.
Previously uppercase commands had been required but now commands are
case-insensitive and lowercase commands are preferred. Conversion to lowercase
commands have been implemented in other open source projects such as ITK vxl
and BRAINSTools, and is the preferred style for KDE. Consistent style
practices help to improve readability and maintainability of code.

This was implemented with the shell script:
NOTE: MUST USE GNU compliant version of sed
    cmake --help-command-list \
    | grep -v "cmake version" \
    | while read c; do
        echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g'
      done >convert.sed \
    && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' \
       | xargs -0 gsed -i -f convert.sed \
    && rm convert.sed

This is a reimplementation of ITK commit
896f6b9220255bed1b3a1409af5257146b54e261
STYLE: Convert CMake-language commands lower case

Fixes #538
2016-03-21 13:44:09 -05:00
Ryan Curtin ca2519021e Fix spacing. 2016-03-21 14:35:29 -04:00
marcus a4e3260275 Remove reference to old ann optimizer header. 2016-03-18 17:03:02 +01:00
marcus 74d499aa05 Remove unused ann optimizer; For more information take a look at #555. 2016-03-18 16:44:26 +01:00
marcus 5641b4de32 Remove unused result variable from the AdaDelta test. 2016-03-18 13:41:42 +01:00
marcus 322ff1c062 Build the AdaDelta test. 2016-03-18 13:23:19 +01:00
marcus 3fbabd79fe Minor style fixes. 2016-03-18 13:21:10 +01:00
Ryan Curtin 80943dd398 Add some paranoia: what if sizeof(void*) isn't 4? 2016-03-15 20:29:54 -07:00
marcus ae6689c144 Use sum of square to calculate theta (see eq. 8: sum(x^2)) 2016-03-15 23:05:40 +01:00
Marcus Edel e3d701077a Merge pull request #572 from vasanthkalingeri/stdlogicerror
Fixed std::logic_error in the kathirvalavakumar subavathi init method use colvec instead of rowvec.
2016-03-15 23:00:48 +01:00
Ryan Curtin 3b5e67f9d9 Merge pull request #564 from na1taneja2821/master
Changes to CMakeLists to solve issue #553: Clean build in 32-bit systems
2016-03-15 17:48:02 -04:00
Ryan Curtin 05c6551fa6 I'm tired of this test failing. 2016-03-15 13:42:08 -07:00
Ryan Curtin c487c587fb Update version in documentation. 2016-03-15 13:20:28 -07:00
Ryan Curtin 4a2466b147 Update dependencies for binutils (libbfd and libdl). 2016-03-15 13:19:54 -07:00
Ryan Curtin a3ce99e25b Remove libxml2-devel from list of Fedora/RHEL dependencies. 2016-03-15 13:00:07 -07:00
Ryan Curtin eb1afa1189 libxml2 is no longer used; libbfd and libdl are used for the backtrace
functionality.
2016-03-15 12:59:39 -07:00
Ryan Curtin 91881a9ad7 Add documentation for new backtrace functionality. 2016-03-15 12:58:54 -07:00
Ryan Curtin e93f41525d Add comment describing the need for setting PACKAGE and PACKAGE_VERSION. 2016-03-15 12:55:55 -07:00
Ryan Curtin b3fe52318e Merge pull request #575 from u8sand/master
Fixes bfd.h: config.h must be included before this header
2016-03-15 15:54:32 -04:00
Ryan Curtin 086a75de12 Update names to avoid collisions. 2016-03-15 12:47:28 -07:00
Ryan Curtin eac547a6c2 Refactor: remove once-used function, wrap lines. 2016-03-15 12:47:28 -07:00
Ryan Curtin 4551dd09d7 Refactor for shorter lines. 2016-03-15 12:47:28 -07:00
Daniel Clarke eedd99da54 Fixes bfd.h: config.h must be included before this header 2016-03-15 13:47:56 -04:00
marcus 386138b317 Update the default step size (adam optimizer). 2016-03-14 23:20:33 +01:00
marcus b864df8cf1 Build the adam optimizer test. 2016-03-14 23:12:23 +01:00
marcus d673e3e33b Update the learning rate by calculating the bias correction values. 2016-03-14 23:12:23 +01:00
anamariabs ff76bc3e25 Optimizer transition Adam test file 2016-03-14 23:12:23 +01:00