Merge pull request #8 from shreyasbapat/further_changes

Some more fixes
This commit is contained in:
William Falcon 2019-04-03 14:29:11 -04:00 committed by GitHub
commit ea2f50f1a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 43 additions and 10 deletions

9
MANIFEST.in Normal file
View File

@ -0,0 +1,9 @@
graft docs
include COPYING
include AUTHORS
recursive-include src/einsteinpy/tests *.py *.html
prune docs/source/examples/.ipynb_checkpoints
global-exclude *.py[cod] __pycache__ *.so *.dylib

View File

View File

@ -2,9 +2,9 @@ import os
import sys
from test_tube import HyperOptArgumentParser, Experiment
from pytorch_lightning.models.trainer import Trainer
from pytorch_lightning.utils.arg_parse import add_default_args
from pytorch_lightning.utils.pt_callbacks import EarlyStopping, ModelCheckpoint
from pytorch-lightning.models.trainer import Trainer
from pytorch-lightning.utils.arg_parse import add_default_args
from pytorch-lightning.utils.pt_callbacks import EarlyStopping, ModelCheckpoint
from demo.example_model import ExampleModel

View File

@ -1,6 +1,6 @@
import torch.nn as nn
import numpy as np
from pytorch_lightning.root_module.root_module import RootModule
from pytorch-lightning.root_module.root_module import RootModule
from test_tube import HyperOptArgumentParser
from torchvision.datasets import MNIST
import torchvision.transforms as transforms

View File

@ -5,10 +5,10 @@ from time import sleep
import torch
from test_tube import HyperOptArgumentParser, Experiment, SlurmCluster
from pytorch_lightning.models.trainer import Trainer
from pytorch_lightning.utils.arg_parse import add_default_args
from pytorch-lightning.models.trainer import Trainer
from pytorch-lightning.utils.arg_parse import add_default_args
from pytorch_lightning.utils.pt_callbacks import EarlyStopping, ModelCheckpoint
from pytorch-lightning.utils.pt_callbacks import EarlyStopping, ModelCheckpoint
SEED = 2334
torch.manual_seed(SEED)
@ -27,7 +27,7 @@ AVAILABLE_MODELS = {
"""
Allows training by using command line arguments
Run by:
Run by:
# TYPE YOUR RUN COMMAND HERE
"""
@ -199,4 +199,3 @@ if __name__ == '__main__':
nb_trials=hyperparams.nb_hopt_trials,
nb_workers=len(gpu_ids)
)

5
pyproject.toml Normal file
View File

@ -0,0 +1,5 @@
[build-system]
requires = [
"setuptools",
"wheel",
]

21
setup.cfg Normal file
View File

@ -0,0 +1,21 @@
[tool:pytest]
norecursedirs =
.git
dist
build
python_files =
test_*.py
doctest_plus = disabled
addopts = --strict
markers =
slow
remote_data
filterwarnings
[pycodestyle]
ignore = E731,W504
max-line-length = 120
[flake8]
ignore = E731,W504,F401,F841
max-line-length = 120

View File

@ -40,7 +40,6 @@ setup(
},
packages=find_packages("src"),
package_dir={"": "src"},
entry_points={"console_scripts": ["pytorch-lightning=pytorch-lightning.cli:main"]},
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Education",