This repository has been archived by the owner on Oct 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
81 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import sys | ||
import os | ||
from importlib import import_module | ||
|
||
|
||
# setup path | ||
chapter_name = "05-이미지_처리능력이_탁월한_CNN" | ||
dir_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), ".." , chapter_name) | ||
sys.path.append(dir_path) | ||
|
||
|
||
|
||
def test_chapter_exmaples(): | ||
mydir_tmp = os.path.join(dir_path) # add the testA folder name | ||
mydir_new = os.chdir(mydir_tmp) # change the current working directory | ||
mydir = os.getcwd() # set the main directory again, now it calls testA | ||
|
||
chapter_examples = [ | ||
"cnn", | ||
"resnet", | ||
] | ||
|
||
for example in chapter_examples: | ||
imported_package = import_module(example) | ||
|
||
if __name__ == "__main__": | ||
test_chapter_exmaples() |
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,27 @@ | ||
import sys | ||
import os | ||
from importlib import import_module | ||
|
||
|
||
# setup path | ||
chapter_name = "06-사람의_지도_없이_학습하는_Autoencoder" | ||
dir_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), ".." , chapter_name) | ||
sys.path.append(dir_path) | ||
|
||
|
||
|
||
def test_chapter_exmaples(): | ||
mydir_tmp = os.path.join(dir_path) # add the testA folder name | ||
mydir_new = os.chdir(mydir_tmp) # change the current working directory | ||
mydir = os.getcwd() # set the main directory again, now it calls testA | ||
|
||
chapter_examples = [ | ||
"basic_autoencoder", | ||
"denoising_autoencoder", | ||
] | ||
|
||
for example in chapter_examples: | ||
imported_package = import_module(example) | ||
|
||
if __name__ == "__main__": | ||
test_chapter_exmaples() |
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,27 @@ | ||
import sys | ||
import os | ||
from importlib import import_module | ||
|
||
|
||
# setup path | ||
chapter_name = "07-순차적인_데이터를_처리하는_RNN" | ||
dir_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), ".." , chapter_name) | ||
sys.path.append(dir_path) | ||
|
||
|
||
|
||
def test_chapter_exmaples(): | ||
mydir_tmp = os.path.join(dir_path) # add the testA folder name | ||
mydir_new = os.chdir(mydir_tmp) # change the current working directory | ||
mydir = os.getcwd() # set the main directory again, now it calls testA | ||
|
||
chapter_examples = [ | ||
"text_classification", | ||
"sequence_to_sequence", | ||
] | ||
|
||
for example in chapter_examples: | ||
imported_package = import_module(example) | ||
|
||
if __name__ == "__main__": | ||
test_chapter_exmaples() |