Commit Graph

84 Commits (9642fcc07f1c0d70568c6f5fea1678b641e4fe22)

Author SHA1 Message Date
Matthew Scholefield 9642fcc07f Inject params in precise-simulate 2018-07-25 10:06:14 -05:00
Mikhail Dmitrienko 81a8b18986 Removed redundant code (#20)
Removed a redundant line of code. print("False positive: ", false_positives * 100, "%") is already printed so print(false_positives) isn't needed.
2018-07-16 15:22:00 -05:00
Mikhail Dmitrienko 75e0769026 Changed the maximum possible amount of units (#19)
Changed the maximum possible amount of units for the optimization to return to 70 units.
2018-07-16 11:57:43 -05:00
Matthew Scholefield d6db6c8ec2 Make train_optimize inherit from Trainer 2018-07-12 21:22:08 -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 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 d32fb6fee3 Fix extra comma on assignment 2018-07-12 14:21:54 -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 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 Scholefield 1f15f9da92 Increase default batch size in train-incremental 2018-06-25 12:37:56 -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 3add0c320e activate: add a running directory independent noitfier
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
2018-06-20 16:49:50 -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 e3e15f65e7 Don't output params warning when it doesn't make sense 2018-06-12 13:58:31 -05:00
Matthew D. Scholefield 989e29bb83 Support pb files in precise-test 2018-04-26 19:04:05 -05:00
Matthew D. Scholefield 0cbb98fa78 Increase default weight of weighted_log_loss to 0.7
No point in using it by default if it isn't weighted. This makes it reduce false positives by default
2018-04-18 23:11:54 -05:00
Matthew D. Scholefield a3274b8d33 Fix major bug in precise-train-incremental
Previously it wouldn't update its own buffer so the files it would save would be mostly silence
2018-04-18 17:52:09 -05:00
Matthew D. Scholefield 755af134f6 Use K.mean instead of K.sum in loss
This makes the loss actually reasonable rather than something like 132.3
2018-04-18 17:26:14 -05:00
Matthew D. Scholefield 476728b138 Add warning if loading from folder with many wavs without specifying tags file 2018-04-18 16:09:46 -05:00
Matthew D. Scholefield 45c72a80c2 Add rename folder and tags arguments
Everything is now referred to as tags rather than db since it's a set of tags not a database. It also switches the positional argument to refer to the regular structured data folder, with a separate tags-folder option to override where to load the file ids from the tags from
2018-04-18 15:59:02 -05:00
Matthew D. Scholefield 19bf49a4ae Rename precise-record to precise-listen
This just makes a lot more sense. It's not recording you; it's listening to you
2018-04-18 14:48:43 -05:00
Matthew D. Scholefield bb4cb4badd Fix double slash when loading from folder ending in slash 2018-04-17 20:04:02 -05:00
Matthew D. Scholefield cb00e03d2d Fix chunk size parameter in precise-record 2018-04-17 18:33:08 -05:00
Matthew D. Scholefield 9418990ff1 Don't train when activation subsides in incremental training
This allows batching up larger amounts of data before retraining
2018-04-16 17:31:53 -05:00
Matthew D. Scholefield fbdca29949 Fix database groups file when in subdirectory and formatting 2018-04-12 18:21:24 -05:00
Matthew D. Scholefield befd296128 FIx vectorizing invalid files 2018-03-21 16:34:53 -05:00
Matthew D. Scholefield 1ee402fd54 Fix database files not loading properly 2018-03-21 16:34:53 -05:00
Matthew D. Scholefield dcad96fc4e Fix invalid chunk size in PreciseRunner and fix importing from db 2018-03-21 16:34:53 -05:00
Matthew D. Scholefield 0fe1bceede Change database to simple text file 2018-03-21 16:34:53 -05:00
Matthew D. Scholefield 09e8b91ad2 Add try except clauses to make more robust 2018-03-21 16:34:53 -05:00
Matthew D. Scholefield b5c38ee71a Clean up setup script
Now uses a configurable VENV location used for parent projects
2018-03-21 16:34:53 -05:00
Matthew D. Scholefield 2878e8f963 Refactor test statistics, change buffer_size to mean bytes, and
add pocketsphinx calculation to precise-eval
2018-03-21 16:34:53 -05:00