Commit Graph

152 Commits (8145dedefac9e3d3aead8ea85827bd484208932c)

Author SHA1 Message Date
Matthew D. Scholefield 8145dedefa
Merge pull request #18 from mikhaildmitrienko/hyperparameter
Created train_optimizer.py
2018-07-12 17:27:01 -05:00
Matthew Scholefield 651901143d Add precise-train-optimize alias for train_optimize.py 2018-07-12 17:24:01 -05:00
Matthew Scholefield 7f915f939d Remove unused variables 2018-07-12 17:21:54 -05:00
Matthew Scholefield 3549765a84 Move module level code into main function 2018-07-12 17:21:54 -05:00
Matthew Scholefield f917a72f4c Add bbopt to dependencies 2018-07-12 17:21:54 -05:00
Matthew Scholefield 4d1f212c2b Remove environment specific definition 2018-07-12 17:21:54 -05:00
Matthew Scholefield c5dd7c891d Autoformat and remove unused imports 2018-07-12 17:21:54 -05:00
Matthew Scholefield 5818a101da Add license header 2018-07-12 17:21:54 -05:00
Matthew Scholefield 4f5df1b997 Make imports absolute 2018-07-12 17:21:54 -05:00
Matthew Scholefield ac43e4b6bb Add .py extension to train_optimize
Also rename to train_optimize to be consistent with verbiage
2018-07-12 17:21:54 -05:00
mikhaildmitrienko 01dc86896d Created train_optimizer.py 2018-07-12 17:21:54 -05:00
Matthew Scholefield 7d97cd2331 Add simulate script 2018-07-12 16:57:02 -05:00
Matthew Scholefield 04174efeb8 Remove executable flag from setup.py 2018-07-12 14:43:05 -05:00
Matthew Scholefield d32fb6fee3 Fix extra comma on assignment 2018-07-12 14:21:54 -05:00
Matthew Scholefield 8696ef80ba Extract TriggerDetector class to simplify PreciseRunner
This also makes it easier to perform similar functionality in an upcoming simulationn script
2018-07-12 13:38:39 -05:00
Matthew Scholefield 36804075b3 Fix Nan in false_neg and false_pos metrics
This was caused when small batches with no positive samples caused a divide-by-zero
2018-07-11 19:34:22 -05:00
Matthew Scholefield d8dd0f3240 Shuffle training and testing data before training
This fixes issues with small batch sizes and metrics
2018-07-11 19:32:39 -05:00
Matthew Scholefield 06d9669e79 Add sampled training support 2018-07-11 12:45:41 -05:00
Matthew Scholefield 1f5e17ba0a Formatting 2018-07-11 12:45:41 -05:00
Matthew Scholefield afbace91b1 Add logs to .gitignore 2018-07-11 12:45:41 -05:00
Matthew Scholefield 6a8b7b8ea8 Add delta vector support 2018-07-11 12:45:41 -05:00
Matthew Scholefield ebd5e09feb Rework train script to use new Trainer class
This allows IncrementalTrainer to share similar behavior
2018-07-11 12:45:41 -05:00
Matthew Scholefield 4da65d1f37 Quiet tensorflow when performing predictions 2018-07-11 12:45:41 -05:00
Matthew Scholefield a946de21ce Make ListenerParams proper class via attr 2018-07-11 12:45:41 -05:00
Matthew Scholefield 779ddd2d02 Use vectorize_raw instead of rewriting mfcc call 2018-07-11 12:45:41 -05:00
Matthew Scholefield 0da11b33bd Make mfcc generation use mfcc_size instead of feature_size
feature_size could be different.
2018-07-11 12:45:41 -05:00
Matthew Scholefield 603385291f Fix up docstring for create_model 2018-07-11 12:45:41 -05:00
Matthew Scholefield 252abbeb15 Make loss bias use module level variable 2018-07-11 12:45:41 -05:00
Matthew D. Scholefield 3fc1fe4789 Add libatlas-base-dev to debian dependencies
It is a runtime dependency of the piwheels tensorflow whl
2018-07-02 20:41:54 +00:00
Matthew Scholefield 1f15f9da92 Increase default batch size in train-incremental 2018-06-25 12:37:56 -05:00
Matthew D. Scholefield a83769302f Remove dist/ folder from tar 2018-06-22 10:38:34 -05:00
Matthew Scholefield c663719cce Increment version to 0.2.0 2018-06-20 16:49:50 -05:00
Wu Zhangjin 523eb719f1 listen: not-wake-up: increase the random value's range
the old range is too narrow and therefore make data override often happen.

Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
2018-06-20 16:49:50 -05:00
Wu Zhangjin 83bd6804c9 README: replace precise-record with precise-listen
sync with commit 19bf49a4a.

Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
2018-06-20 16:49:50 -05:00
Wu Zhangjin 3add0c320e activate: add a running directory independent noitfier
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
2018-06-20 16:49:50 -05:00
Matthew Scholefield 7d28057ffd Add build.sh for building properly named packages 2018-06-20 16:49:50 -05:00
Matthew Scholefield 3e507b16c4 Support Python 3.4 on a pi 3 2018-06-20 15:11:57 -05:00
Matthew Scholefield d0e3207639 Increment runner version to 0.2.1 2018-06-18 16:17:00 -05:00
Matthew D. Scholefield bdd8a8e204 Fix setup.sh
Fix missing semicolon and only use brew on mac
No need to install packages in linuxbrew
2018-06-14 16:45:57 -05:00
Matthew D. Scholefield 19f95ae034 Use piwheels for tensorflow on a raspberry pi and upgrade to tensorflow 1.8.0
Way less of a hassle
2018-06-14 16:34:13 -05:00
Wu Zhangjin b14c4b34b8 activate: use a right audio player for mac osx
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
2018-06-13 14:33:58 -05:00
Matthew D. Scholefield 031a72061e
Make pip installation more modular
Allows creating your own venv
2018-06-13 13:41:48 -05:00
Matthew D. Scholefield 8a03eef9ca Refine .gitignores 2018-06-12 13:58:41 -05:00
Matthew D. Scholefield e3e15f65e7 Don't output params warning when it doesn't make sense 2018-06-12 13:58:31 -05:00
Matthew D. Scholefield d6284832ce Add brew dependencies to fix mac install 2018-06-04 15:09:34 -05:00
Matthew D. Scholefield 009e9c1ef9 Add swig and libpulse-dev as dependencies
This fixes #8
2018-05-30 12:19:35 -05:00
Matthew D. Scholefield 989e29bb83 Support pb files in precise-test 2018-04-26 19:04:05 -05:00
Matthew D. Scholefield ef96763327 Make indentation consistent in bash scripts 2018-04-20 12:09:53 -05:00
Matthew D. Scholefield ffcf4a0e9d Support installing tensorflow on other Python versions when on a pi 2018-04-20 12:06:10 -05:00
Matthew D. Scholefield b74e80568b Fix bug with reading from non-pyaudio stream
pyaudio's stream.read is in samples whereas most other streams read in bytes
2018-04-19 13:50:50 -05:00