Giter Club home page Giter Club logo

opendeep's People

Contributors

adammenges avatar erogol avatar gregretkowski avatar jimmycallin avatar mbeissinger avatar vitruvianscience avatar warvito avatar

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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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

opendeep's Issues

Spurious warning about default file name

On line 729 of opendeep/models/model.py the default file name is set to "config":

def save_args(self, args_file="config"):

A call to file_ops.get_extension_type() in the method logs a warning "Didn't recognize file extension..." which is spurious because save_args() later appends ".pkl" to the args_file in this case. Suggested fix is to make the default file name "config.pkl" in the first place. This will have exactly the same default behaviour without the warning.

Error by MemoryDataset 2

I try to use my custom dataset with the given AutoEncoder example but when it starts it raises following error

aining)
    225                      str(type(self.model)), func_i+1, len(self.train_functions), self.n_epoch, str(continue_training))
    226 
--> 227             log.debug("Train dataset size is: %s", self.dataset.getDataShape(datasets.TRAIN))
    228             if self.dataset.hasSubset(datasets.VALID):
    229                 log.debug("Valid dataset size is: %s", self.dataset.getDataShape(datasets.VALID))

/home/retina18/Downloads/opendeep/opendeep/data/dataset.py in getDataShape(self, subset)
    111         if subset is TRAIN:
    112             log.error("No training shape implemented")
--> 113             raise NotImplementedError("No training shape implemented")
    114         elif subset is VALID:
    115             log.error("No valid shape implemented")

NotImplementedError: No training shape implemented

Training assumes float32, but uses float64 if that's the default configuration

When installing Theano on a 64 bit computer, it uses float64 as default. Running through the hello world example, this causes an error where the training assumes the input is float32.

from opendeep.models.container import Prototype
from opendeep.models.single_layer.basic import BasicLayer, SoftmaxLayer
from opendeep.optimization.adadelta import AdaDelta
from opendeep.data.standard_datasets.image.mnist import MNIST

mlp = Prototype()
mlp.add(BasicLayer(input_size=28*28, output_size=512, activation='rectifier', noise='dropout'))
mlp.add(BasicLayer(output_size=512, activation='rectifier', noise='dropout'))
mlp.add(SoftmaxLayer(output_size=10))

trainer = AdaDelta(model=mlp, dataset=MNIST())
trainer.train()

This raises:

TypeError: Cannot convert Type TensorType(float64, matrix) (of Variable Subtensor{int32:int32:}.0) into Type TensorType(float32, matrix). You can try to manually convert Subtensor{int32:int32:}.0 into a TensorType(float32, matrix).

Bokeh API change: cursession gone

On line 18 of build/lib/opendeep/monitor/plot.py, symbol cursession is imported from bokeh.plotting:

from bokeh.plotting import (curdoc, cursession, figure, output_server, push, show)

The symbol cursession no longer exists in the latest bokeh version (0.11) available via pip. Work around: install version 0.10.

Error by MemoryDataset

If I init MemoryDataset it raise

OD_DATA = datasets.MemoryDataset(train_np, valid_X=val_np)

ValueError Traceback (most recent call last)
in ()
----> 1 OD_DATA = datasets.MemoryDataset(train_np, valid_X=val_np)

/home/retina18/Downloads/opendeep/opendeep/data/dataset.pyc in init(self, train_X, train_Y, valid_X, valid_Y, test_X, test_Y)
283 self.train_Y = sharedX(numpy.array(train_Y))
284
--> 285 if valid_X:
286 valid_X = numpy.array(valid_X)
287 self._valid_shape = valid_X.shape

Python3 build

Howdy! OpenDeep looks great and I'm keen to get it working on Kaggle Scripts. I had a go at building it in our Python Docker container, but hit a string/bytes error in the setup script:

File "setup.py", line 49, in <module>
  long_description=read('README.rst'),
File "setup.py", line 28, in read
  return sep.join(buf)
TypeError: sequence item 0: expected str instance, bytes found

Tried a few hacky workarounds, but couldn't get it to land. Is this a Python3 issue? Any ideas on how to fix it?

Import Errors

Hi!
I just installed OpenDeep for a workshop at the OSDC, but I am getting some importing errors:

ImportError: cannot import name DenoisingAutoencoder
ImportError: cannot import name SoftmaxLayer

Do you have any suggestions as to what I am doing wrong?

Thanks,
Rick

ImportError

I tried your sample code provided under the title "Tutorial: Your First Model". However, it seems that there is no such file called "cost" in the directory "utils". As a result, I fail to import binary_crossentropy from opendeep.utils.cost.

multivariate time series example

Hi!
Great library!!
Was wondering if there were plans for a multivariate time series example.
For a multi sequence vectors to predict a single sequence output.
ie Time series prediction with multiple sequences input mapped to a single output.
Many thanks,
Best,
Andrew

Zip objects not indexable in Python3

On line 111 of opendeep/models/container/prototype.py, current inputs is calculated as follows:

current_inputs = zip(previous_out_sizes, previous_outs)

In Python2, zip() returns a list, but in Python3 it returns an iterable zip object. This causes a failure later, when calling code tries to index the result. A simple fix is to wrap the expression in list().

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.