-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More unit tests #515
Merged
weixuanfu
merged 20 commits into
EpistasisLab:development
from
weixuanfu:more_unit_tests
Jul 17, 2017
Merged
More unit tests #515
Changes from 10 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
1244138
add two unit tests for gp_deap.py and driver.py
dede2ba
add 3 more unit tests
72212b1
Update tpot_tests.py
rhiever 73d6d77
2 more tests for base.py
8a20919
Merge branch 'more_unit_tests' of github.com:weixuanfu2016/tpot into …
8672442
fix CLI
a357a03
fix CLI 2
f8ae352
clean codes
b2ad67a
fix no FileNotFoundError python 2 and add unit test for read_config_file
29050da
issue fix
c6ed906
use ValueError to replace FileNotFoundError
22af31f
add test_update_top_pipeline_3
55af5e5
add test_fit_predict
1f0024f
add some notes
4adb73e
add test_random_ind_2
5a8b057
clean codes
0ab737f
fix bugs in _pre_test
31ee85d
refine test_export
0e9d4f8
add test_driver_5
145eaa8
remove a useless "if ... else" statement
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
"""Copyright 2015-Present Randal S. Olson. | ||
|
||
This file is part of the TPOT library. | ||
|
||
TPOT is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Lesser General Public License as | ||
published by the Free Software Foundation, either version 3 of | ||
the License, or (at your option) any later version. | ||
|
||
TPOT is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Lesser General Public License for more details. | ||
|
||
You should have received a copy of the GNU Lesser General Public | ||
License along with TPOT. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
""" | ||
|
||
tpot_config = { | ||
'sklearn.naive_bayes.GaussianNB': { | ||
}, | ||
|
||
'sklearn.naive_bayes.BernoulliNB': { | ||
'alpha': [1e-3, 1e-2, 1e-1, 1., 10., 100.], | ||
'fit_prior': [True, False] | ||
}, | ||
|
||
'sklearn.naive_bayes.MultinomialNB': { | ||
'alpha': [1e-3, 1e-2, 1e-1, 1., 10., 100.]# miss a "," here | ||
'fit_prior': [True, False] | ||
} | ||
} |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rename this file to
test_config_bad.py
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would cause a error during unit tests since it is not in right format as python codes. Check this link
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's confusing. The CI systems are running that file? They shouldn't be?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nosetests -s -v
checks all the .py files in tests folder.