GithubHelp home page GithubHelp logo

cae.py's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

cae.py's Issues

Matricies not aligned on minimal example?

Hi guys,

I cant get the code to run on a minimal example - see interactive python dump below. I have the strong feeling that I'm just missing something basic, here :)

Cheers and thanks
Malte

Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.

import numpy
import cae
mycae=cae.CAE(n_hiddens=3,batch_size=1)
x=numpy.matrix([[0,0,0,1],[0,0,1,1]])
mycae.fit(x,verbose=True)
Traceback (most recent call last):
File "", line 1, in
File "cae.py", line 276, in fit
self._fit(X[inds[minibatch::n_batches]])
File "cae.py", line 243, in _fit
W_rec, b_rec, c_rec = _fit_reconstruction()
File "cae.py", line 238, in _fit_reconstruction
dh = numpy.dot(dr, self.W) * h * (1. - h)
File "/usr/lib/python2.7/dist-packages/numpy/matrixlib/defmatrix.py", line 341, in mul
return N.dot(self, asmatrix(other))
ValueError: matrices are not aligned

Some questions about cae

How to run the cae.py? how to use the function sample()? and in function _jacobi_loss() has a Error:AxisError: axis 2 is out of bounds for array of dimension 2.
Please, THank you~

typo on line 26 docstring

Just browsing around, noticed a typo in the word Contractive.

class CAE(object):
    """
    A Contrative Auto-Encoder (CAE) with sigmoid input units and sigmoid

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.