Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(22)  |  Call(12)  |  Derive(0)  |  Import(10)

src/p/y/pylearn2-HEAD/pylearn2/monitor.py   pylearn2(Download)
from pylearn2.config import yaml_parse
from pylearn2.datasets.dataset import Dataset
from pylearn2.space import Space, CompositeSpace, NullSpace
from pylearn2.utils import function, sharedX, safe_zip, safe_izip
from pylearn2.utils.iteration import is_stochastic
 
            if ipt is None:
                data_specs = (NullSpace(), '')
            elif len(ipt) == 0:
                data_specs = (CompositeSpace([]), ())

src/p/y/pylearn2-HEAD/pylearn2/utils/data_specs.py   pylearn2(Download)
See :ref:`data_specs` for a high level overview of the relevant concepts.
"""
from pylearn2.space import CompositeSpace, NullSpace, Space
from pylearn2.utils import safe_zip
 

src/p/y/pylearn2-HEAD/pylearn2/training_algorithms/bgd.py   pylearn2(Download)
from pylearn2.termination_criteria import TerminationCriterion
from pylearn2.utils import sharedX
from pylearn2.space import CompositeSpace, NullSpace
from pylearn2.utils.data_specs import DataSpecsMapping
from pylearn2.utils.rng import make_np_rng
                    ipt=None,
                    val=self.optimizer.ave_step_size,
                    data_specs=(NullSpace(), ''),
                    dataset=self.monitoring_dataset.values()[0])
            self.monitor.add_channel(
                    name='ave_grad_size',
                    ipt=None,
                    val=self.optimizer.ave_grad_size,
                    data_specs=(NullSpace(), ''),
                    ipt=None,
                    val=self.optimizer.ave_grad_mult,
                    data_specs=(NullSpace(), ''),
                    dataset=self.monitoring_dataset.values()[0])
 

src/p/y/pylearn2-HEAD/pylearn2/costs/cost.py   pylearn2(Download)
from pylearn2.utils import safe_zip
from pylearn2.utils import safe_union
from pylearn2.space import CompositeSpace, NullSpace
from pylearn2.utils.data_specs import DataSpecsMapping
 
        model : pylearn2.models.Model
        """
        return (NullSpace(), '')
 
class DefaultDataSpecsMixin(object):

src/p/y/pylearn2-HEAD/pylearn2/training_algorithms/sgd.py   pylearn2(Download)
 
from pylearn2.monitor import Monitor
from pylearn2.space import CompositeSpace, NullSpace
from pylearn2.train_extensions import TrainExtension
from pylearn2.training_algorithms.training_algorithm import TrainingAlgorithm
                                     ipt=None,
                                     val=learning_rate,
                                     data_specs=(NullSpace(), ''),
                                     dataset=monitoring_dataset)
 

src/p/y/pylearn2-HEAD/pylearn2/train.py   pylearn2(Download)
from pylearn2.utils.string_utils import preprocess
from pylearn2.monitor import Monitor
from pylearn2.space import NullSpace
from pylearn2.utils.timing import log_timing, total_seconds
from pylearn2.utils import sharedX
                    ipt=None,
                    val=self.training_seconds,
                    data_specs=(NullSpace(), ''),
                    dataset=self.model.monitor._datasets[0])
                self.total_seconds.__doc__ = """\
                    ipt=None,
                    val=self.total_seconds,
                    data_specs=(NullSpace(), ''),
                    dataset=self.model.monitor._datasets[0])
            self.run_callbacks_and_monitoring()

src/p/y/pylearn2-HEAD/pylearn2/training_algorithms/learning_rule.py   pylearn2(Download)
 
from theano.compat.python2x import OrderedDict
from pylearn2.space import NullSpace
from pylearn2.train_extensions import TrainExtension
from pylearn2.utils import sharedX
            ipt=None,
            val=self.momentum,
            data_specs=(NullSpace(), ''),
            dataset=monitoring_dataset)
 

src/p/y/pylearn2-HEAD/pylearn2/models/model.py   pylearn2(Download)
 
from pylearn2.model_extensions.model_extension import ModelExtension
from pylearn2.space import NullSpace
from pylearn2.utils import function
from pylearn2.utils import safe_zip
 
        """
        return (NullSpace(), '')
 
    def set_batch_size(self, batch_size):

src/p/y/pylearn2-HEAD/pylearn2/space/tests/test_space.py   pylearn2(Download)
# Can't use nose.tools.assert_raises, only introduced in python 2.7. Use
# numpy.testing.assert_raises instead
from pylearn2.space import (SimplyTypedSpace,
                            VectorSpace,
                            Conv2DSpace,

src/p/y/pylearn2-HEAD/pylearn2/testing/cost.py   pylearn2(Download)
 
from pylearn2.costs.cost import Cost
from pylearn2.space import NullSpace
from pylearn2.utils import CallbackOp
from pylearn2.utils import safe_zip
    def get_data_specs(self, model):
        # This cost does not need any data
        return (NullSpace(), '')
 
 
    def get_data_specs(self, model):
        # This cost does not need any data
        return (NullSpace(), '')