-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change dtype string to str of numpy&pandas object
- Loading branch information
Weichen Shen
committed
May 4, 2019
1 parent
0c0a718
commit 6713b8c
Showing
4 changed files
with
39 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,41 @@ | ||
#!/usr/bin/env bash | ||
|
||
function run_py(){ | ||
|
||
code_path=./ | ||
for file in `ls` | ||
do | ||
if [[ $file =~ .py ]] | ||
then | ||
python $code_path$file | ||
if [ $? -eq 0 ] | ||
then | ||
echo run $code_path$file succeed in $python_version | ||
else | ||
echo run $code_path$file failed in $python_version | ||
exit -1 | ||
fi | ||
fi | ||
done | ||
|
||
|
||
} | ||
#python2 | ||
python_version=python2 | ||
cd .. | ||
pip install deepctr -e . | ||
cd ./examples | ||
code_path=./ | ||
run_py | ||
echo "all examples run succeed in python2.7" | ||
|
||
python $code_path"run_classification_criteo.py" | ||
python $code_path"run_classification_criteo_hash.py" | ||
python $code_path"run_regression_movielens.py" | ||
python $code_path"run_multivalue_movielens.py" | ||
python $code_path"run_multivalue_movielens_hash.py" | ||
python $code_path"run_dien.py" | ||
python $code_path"run_din.py" | ||
## python3 | ||
python_version=python3 | ||
source activate py36 | ||
cd .. | ||
pip install deepctr -e . | ||
cd ./examples | ||
run_py | ||
|
||
echo "all examples run succeed in python3.6" | ||
|
||
echo "examples run done!!" | ||
echo "all examples run succeed in python2.7 and python3.6" |
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