-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from bartvm/move_examples
Move examples to separate folder
- Loading branch information
Showing
20 changed files
with
38 additions
and
28 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
from __future__ import print_function | ||
from abc import ABCMeta, abstractmethod | ||
|
||
from six import add_metaclass | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Empty file.
Empty file.
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import logging | ||
import os | ||
|
||
import pylearn2 | ||
|
||
import blocks | ||
from examples.mnist import main as mnist_test | ||
from examples.pylearn2.markov_chain import main as pylearn2_test | ||
|
||
|
||
def setup(): | ||
# Silence Pylearn2's logger | ||
logger = logging.getLogger(pylearn2.__name__) | ||
logger.setLevel(logging.ERROR) | ||
|
||
# Silence Block's logger | ||
logger = logging.getLogger(blocks.__name__) | ||
logger.setLevel(logging.ERROR) | ||
|
||
|
||
def test_mnist(): | ||
mnist_test() | ||
|
||
test_mnist.setup = setup | ||
|
||
|
||
def test_pylearn2(): | ||
filename = 'unittest_markov_chain' | ||
pylearn2_test('train', filename, 0, 3, False) | ||
os.remove(filename) | ||
|
||
test_pylearn2.setup = setup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters