Skip to content
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

Create spam classification tutorial #112

Merged
merged 48 commits into from
Jan 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
3bf2dd2
initial creation of spam tutorial and update of data download script
bkmgit Aug 24, 2020
aa5cec5
Update spam/tutorial.md
bkmgit Aug 28, 2020
0236200
Update spam/tutorial.md
bkmgit Aug 28, 2020
65d1df2
Update spam/tutorial.md
bkmgit Aug 28, 2020
9b04377
Update spam/tutorial.md
bkmgit Aug 28, 2020
943266c
Update spam/tutorial.md
bkmgit Aug 28, 2020
ea562e7
Update spam/tutorial.md
bkmgit Aug 28, 2020
1586e9b
Update spam/tutorial.md
bkmgit Aug 28, 2020
0c6ba9c
Update spam/tutorial.md
bkmgit Sep 17, 2020
11a07b7
Update spam/tutorial.md
bkmgit Sep 17, 2020
d7c4891
Update spam/tutorial.md
bkmgit Sep 17, 2020
1ed293c
Update spam/tutorial.md
bkmgit Sep 17, 2020
b4df918
Update spam/tutorial.md
bkmgit Sep 17, 2020
1e57f69
Update spam/tutorial.md
bkmgit Sep 17, 2020
da82a46
Update spam/tutorial.md
bkmgit Sep 17, 2020
7e5de02
Update tutorial.md
bkmgit Sep 17, 2020
3884cfc
add tutorial as a bash script
bkmgit Sep 17, 2020
a2ce18a
Merge branch 'mlpack:master' into master
bkmgit May 23, 2021
5c0ff28
update example lists in README
bkmgit May 23, 2021
4cd27f5
Merge branch 'master' of https://github.com/bkmgit/examples-1
bkmgit May 23, 2021
486eab5
minor update of spam classification tutorial
bkmgit May 23, 2021
3dba2c7
update to download spam dataset
bkmgit May 23, 2021
9013136
Update spam/spam_classification.sh
bkmgit Jul 16, 2021
e7b27b2
Update spam/spam_classification.sh
bkmgit Jul 16, 2021
6f4e7f3
Update spam/spam_classification.sh
bkmgit Jul 16, 2021
5b1205d
Update spam/spam_classification.sh
bkmgit Jul 16, 2021
62e1044
Update spam/tutorial.md
bkmgit Jul 16, 2021
710c017
Update spam/spam_classification.sh
bkmgit Jul 16, 2021
19f3803
fix conflict
bkmgit Jul 16, 2021
6cc39bd
Merge branch 'mlpack-master'
bkmgit Jul 16, 2021
c495d4b
remove tutorial.sh
bkmgit Jul 16, 2021
fd0d1e4
Merge branch 'mlpack:master' into master
bkmgit Jul 30, 2021
a1219a1
Test whether SPAM example runs
bkmgit Jul 30, 2021
a38bce1
implement @zoqs' suggestion
bkmgit Jul 30, 2021
8132776
Improve comment formatting
bkmgit Jul 30, 2021
0677b0a
Update version of Ubuntu
bkmgit Jul 30, 2021
a58a6f4
check if build will work without build script
bkmgit Jul 30, 2021
9d9c401
update script permissions
bkmgit Jul 30, 2021
72460e6
remove spam pre-processing in CI
bkmgit Aug 1, 2021
745e953
fix error in ordering of commands
bkmgit Aug 1, 2021
fef1858
enable building of command line executables
bkmgit Aug 1, 2021
4285f0e
remove example builds due to time constraint
bkmgit Aug 1, 2021
a518cb2
temporarily disable dataset download, travis
bkmgit Aug 1, 2021
2db8885
update data files
bkmgit Aug 1, 2021
1ced319
Merge branch 'master' into master
bkmgit Nov 17, 2021
32fec35
remove file as it can be pre-processed
bkmgit Nov 17, 2021
cbd31c3
remove file as it can be pre-processed
bkmgit Nov 17, 2021
f483f4e
skip processing of spam
bkmgit Nov 17, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 21 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sudo: required
dist: xenial
dist: focal
language: cpp

before_install:
Expand Down Expand Up @@ -46,7 +46,7 @@ before_install:
- cd mlpack
- mkdir build
- cd build
- cmake -DCMAKE_INSTALL_PREFIX=/usr -DUSE_OPENMP=OFF -DBUILD_CLI_EXECUTABLES=OFF -DBUILD_JULIA_BINDINGS=OFF -DBUILD_PYTHON_BINDINGS=OFF -DBUILD_MARKDOWN_BINDINGS=OFF -DBUILD_R_BINDINGS=OFF -DBUILD_TESTS=OFF ..
- cmake -DCMAKE_INSTALL_PREFIX=/usr -DUSE_OPENMP=ON -DBUILD_CLI_EXECUTABLES=ON -DBUILD_JULIA_BINDINGS=OFF -DBUILD_PYTHON_BINDINGS=OFF -DBUILD_MARKDOWN_BINDINGS=OFF -DBUILD_R_BINDINGS=OFF -DBUILD_TESTS=OFF ..
- make -j2
- sudo make install
- cd ../
Expand All @@ -58,32 +58,38 @@ install:
# Download datasets.
- pwd
- pip install tqdm
- cd tools/
- ./download_data_set.py
- cd ../
- ls data/
- cd tools/
- ./download_data_set.py
- cd ../
- ls data/

script:
# Finally, build all the examples.
- pwd
- ls
- ls data/
- |
- ls
- ls data/
- |
for f in */Makefile; do
dir=`dirname $f`;

# TODO: this takes too long right now.
if [ "$dir" == "mnist_cnn" ];
then
continue;
fi

# TODO: the dataset cannot be loaded.
if [ "$dir" == "mnist_vae_cnn" ];
then
continue;
fi


# TODO: the dataset cannot be loaded.
if [ "$dir" == "spam" ];
then
continue;
fi

cd $dir;
target_name=`grep 'TARGET := ' Makefile | awk -F ' := ' '{ print $2 }'`;
echo "Make target $target_name in directory $dir.";
Expand All @@ -98,17 +104,16 @@ script:
fi
cd ../;
done
# Print any failures.
- ls
- |
# Print any failures.
- ls
- |
if [ -f faillog ]; then
echo "Some examples failed!";
echo "";
cat faillog;
exit 1;
fi


notifications:
email:
- [email protected]
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ description (just a little bit more than the title):
- `lstm_stock_prediction`: predict Google's historical stock price (daily high
_and_ low) using an LSTM-based recurrent neural network

- `spam`: predict whether a mobile phone text message in Indonesian is spam
or not using logistic regression

- `mnist_batch_norm`: use batch normalization in a simple feedforward neural
network to recognize the MNIST digits

Expand Down
Loading