-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor refactors - cleaning models (#524)
* autoencoders * detection * gans * vision * rl * regression * mnist_module * models/__init__ * yapf * yapf * minor refactor * Remove re-import
- Loading branch information
1 parent
da35d3d
commit 6c307c1
Showing
28 changed files
with
152 additions
and
88 deletions.
There are no files selected for viewing
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
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
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
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,5 +1,7 @@ | ||
try: | ||
from pl_bolts.models.detection import components # noqa: F401 | ||
from pl_bolts.models.detection.faster_rcnn import FasterRCNN # noqa: F401 | ||
except ModuleNotFoundError: # pragma: no-cover | ||
pass # pragma: no-cover | ||
from pl_bolts.models.detection import components # noqa: F401 | ||
from pl_bolts.models.detection.faster_rcnn import FasterRCNN # noqa: F401 | ||
|
||
__all__ = [ | ||
"components", | ||
"FasterRCNN", | ||
] |
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,2 +1,7 @@ | ||
from pl_bolts.models.gans.basic.basic_gan_module import GAN # noqa: F401 | ||
from pl_bolts.models.gans.dcgan.dcgan_module import DCGAN # noqa: F401 | ||
|
||
__all__ = [ | ||
"GAN", | ||
"DCGAN", | ||
] |
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
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,2 +1,7 @@ | ||
from pl_bolts.models.regression.linear_regression import LinearRegression # noqa: F401 | ||
from pl_bolts.models.regression.logistic_regression import LogisticRegression # noqa: F401 | ||
|
||
__all__ = [ | ||
"LinearRegression", | ||
"LogisticRegression", | ||
] |
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
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,10 +1,17 @@ | ||
try: | ||
from pl_bolts.models.rl.double_dqn_model import DoubleDQN # noqa: F401 | ||
from pl_bolts.models.rl.dqn_model import DQN # noqa: F401 | ||
from pl_bolts.models.rl.dueling_dqn_model import DuelingDQN # noqa: F401 | ||
from pl_bolts.models.rl.noisy_dqn_model import NoisyDQN # noqa: F401 | ||
from pl_bolts.models.rl.per_dqn_model import PERDQN # noqa: F401 | ||
from pl_bolts.models.rl.reinforce_model import Reinforce # noqa: F401 | ||
from pl_bolts.models.rl.vanilla_policy_gradient_model import VanillaPolicyGradient # noqa: F401 | ||
except ModuleNotFoundError: | ||
pass | ||
from pl_bolts.models.rl.double_dqn_model import DoubleDQN # noqa: F401 | ||
from pl_bolts.models.rl.dqn_model import DQN # noqa: F401 | ||
from pl_bolts.models.rl.dueling_dqn_model import DuelingDQN # noqa: F401 | ||
from pl_bolts.models.rl.noisy_dqn_model import NoisyDQN # noqa: F401 | ||
from pl_bolts.models.rl.per_dqn_model import PERDQN # noqa: F401 | ||
from pl_bolts.models.rl.reinforce_model import Reinforce # noqa: F401 | ||
from pl_bolts.models.rl.vanilla_policy_gradient_model import VanillaPolicyGradient # noqa: F401 | ||
|
||
__all__ = [ | ||
"DoubleDQN", | ||
"DQN", | ||
"DuelingDQN", | ||
"NoisyDQN", | ||
"PERDQN", | ||
"Reinforce", | ||
"VanillaPolicyGradient", | ||
] |
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
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
Oops, something went wrong.