1. 02 12月, 2011 4 次提交
  2. 01 12月, 2011 5 次提交
  3. 30 11月, 2011 4 次提交
  4. 29 11月, 2011 12 次提交
  5. 28 11月, 2011 1 次提交
  6. 27 11月, 2011 12 次提交
  7. 26 11月, 2011 2 次提交
    • nouiz's avatar
      Merge pull request #232 from delallea/srb_fix · 3e6c5da6
      nouiz 提交于
      Fixed test_linalg.py:test_spectral_radius_bound
      3e6c5da6
    • Olivier Delalleau's avatar
      Fixed optimization for exp(x) * sigmoid(-x) · c42a7494
      Olivier Delalleau 提交于
      This stability optimization didn't work for at least three reasons:
      1. It used tensor.neg(x) to identify -x, while in canonicalized form -x
         is written -1 * x.
      2. There was a typo (calling a function sigm that didn't exist).
      3. It wasn't able to parse a tree of multiplications, for instance
         something like (exp(x) * 2) * sigmoid(-x).
      
      This new version fixes all three issues. In order to solve problem #3,
      it uses a different approach that consists in parsing the optimized node
      into a so-called "multiplication tree".
      
      Currently, the structure of this tree is left unchanged. It would be
      possible to have this optimization also flatten the tree, which would
      make the code simpler (but potentially undo work performed by some other
      optimizations).
      c42a7494