def cost_from_cost_matrix(self, cost_matrix):

        raise NotImplementedError(
            str(type(self)) + " does not implement "
            "mlp.Layer.cost_from_cost_matrix.")
Imports in class scope can be used through self.
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/models/mlp.py/Layer.cost_from_cost_matrix--crossover with--dataset/ETHPy150Open patrys/PythonChecker/pyflakes/test/test_imports.py/Test.test_importedInClass