Victor Ng
81849c975c
Added a basic integration test so that we can see recommenders running
...
from local development
2018-03-01 14:16:16 -05:00
Victor Ng
48c46a1021
Added testing instructions to close off #29
2018-03-01 14:16:16 -05:00
Sarah Bird
b3418ba69d
flake8
2018-03-01 11:47:46 -05:00
Sarah Bird
2bac0e8e61
Fix cdist usage
2018-03-01 11:47:46 -05:00
Sarah Bird
f2b04e31dc
Fix py2/3 test for strings
2018-03-01 11:47:46 -05:00
Sarah Bird
67043e9a0f
Fix flake8
2018-03-01 11:47:46 -05:00
Sarah Bird
59b6ade6df
Fail if flake8 fails
2018-03-01 11:47:46 -05:00
Sarah Bird
c4c307846c
Fix bash
2018-03-01 11:47:46 -05:00
Sarah Bird
4d4560bebe
Update Travis to do multiple builds with different environmnts
...
* Updates to latest miniconda (review)
* Removes scipy from test_requirements (it's already in dependencies and
we don't want to pin to a high version)
* Make an EMR environment to test against
2018-03-01 11:47:46 -05:00
Sarah Bird
003ecbed59
Ignore vscode
2018-03-01 11:47:46 -05:00
Sarah Bird
fe661d7c09
Ignore pytest_cache folder
2018-03-01 11:47:46 -05:00
Victor Ng
17eb6e763c
Added some basic failure tests for the utils module
2018-02-28 10:52:41 +01:00
Victor Ng
1c82e239aa
bumped to 0.0.24 and force sdist builds because pypi is ridiculous
2018-02-27 19:43:34 +01:00
Victor Ng
11086b1351
Dropped all moto references
2018-02-27 19:43:34 +01:00
Victor Ng
2f4e96f6f3
Refactoring and cleanup of recommenders for the contextmanager
2018-02-27 19:43:34 +01:00
Victor Ng
11fd0edef0
Reworked the RecommendationManager tests to use the context manager
2018-02-27 19:43:34 +01:00
Victor Ng
c1810ba7c3
Reworked LegacyRecommender test cases
2018-02-27 19:43:34 +01:00
Victor Ng
3d267f56ea
Reworked the CollaborativeRecommender to use new test infrastructure
2018-02-27 19:43:34 +01:00
Victor Ng
405b79d716
Initial commit with the reworked recommender instantiation using a
...
context manager
2018-02-27 19:43:34 +01:00
Victor Ng
e7065cf0aa
Added a default_context to setup a root context manager
2018-02-27 19:43:34 +01:00
Victor Ng
161c56a0a2
initial commit of a context manager
2018-02-27 19:43:34 +01:00
Victor Ng
3becd3e176
Explicitly skipped a broken test .
...
Renamed the BaseRecommender to AbstractRecommender as the
BaseRecommender doesn't actually implement any real behavior. It's
more like a pure abstract class.
2018-02-27 19:43:34 +01:00
Victor Ng
2b0a11ad20
Patched logging bug in test_recommendation_manager
2018-02-27 19:43:34 +01:00
Victor Ng
8e0f58b214
Refactored the weight loading from S3 into a cached singleton
2018-02-27 19:43:34 +01:00
Victor Ng
a20f4c1f43
Added a minimum of 0.19.1 version for scipy in test requirements to work
...
around the cdist bug
2018-02-26 16:21:57 +01:00
Victor Ng
464ed1a620
bumped to taar3
2018-02-26 16:21:57 +01:00
Victor Ng
e6e6bbcfdf
bumped to 0.0.22 and changed the upload make target
2018-02-26 16:21:57 +01:00
Victor Ng
cb63f67e3a
flake8 patches
2018-02-22 12:01:29 -05:00
Victor Ng
a7ab93ffc7
Added more s3 mocking to fix broken testcases
2018-02-22 12:01:29 -05:00
Victor Ng
947f798d6c
bumped to version 0.0.21 so that pypi can be updated
2018-02-22 12:01:29 -05:00
Victor Ng
a1bb4b36db
Added ensemble test through the RecommendationManager
2018-02-22 12:01:29 -05:00
Victor Ng
8e98f40bbb
Refactored the RecommendationManager to accept a factory to generate
...
recommender instances.
2018-02-22 12:01:29 -05:00
Victor Ng
63a21c1677
slimmed down EnsembleRecommender testcase to drop unnecessary fake
...
client
2018-02-22 12:01:29 -05:00
Victor Ng
951bc39613
Somehow missed adding the ensemble testcase.
...
Also fixed can_recommend() in the EnsembleRecommender to delegate to
the component recommenders.
2018-02-21 10:30:58 -05:00
Victor Ng
067b509650
plugged up broken tests cases
2018-02-21 10:30:58 -05:00
Victor Ng
11b019cf5b
Added a testcase for EnsembleRecommender with mock weights and mock
...
delegate recommenders
2018-02-21 10:30:58 -05:00
Victor Ng
6079235776
added more comments to the recommendation maanger and the ensemble
...
recommender
2018-02-21 10:30:58 -05:00
Victor Ng
e81d1a34ba
Added a new Ensemble recommender as well as hooks for the ensemble in
...
the recommendation manager
2018-02-21 10:30:58 -05:00
Victor Ng
2a28068239
added comment for egg build and an upload target for pypi
2018-02-21 10:30:58 -05:00
Victor Ng
ec0b8767bb
Added zlib decompression on the JSON blob that comes out of DynamoDB
2018-02-20 14:07:25 +01:00
Victor Ng
f6c2554d43
updated ensemble recommendation and testcase with real GUIDs
2018-02-12 13:54:25 -05:00
Victor Ng
fdfbe42bcd
Added empty __init__.py module to tests package so that we can do
...
relative imports safely between test modules.
2018-02-12 13:54:25 -05:00
Victor Ng
ca562c0228
Added a testcase to verify that ensemble recommendations are dispatching
...
correctly.
2018-02-12 13:54:25 -05:00
Victor Ng
be5f2323d0
Drop HBase support and add in DynamoDB support
2018-02-12 13:54:25 -05:00
Victor Ng
41e509feca
Verified data in collaborative recommender tests tie out to actual live
...
data
2018-01-11 09:52:42 -05:00
Victor Ng
086a6aebd6
Cleaned up confusing comment in testcase
2018-01-11 09:52:42 -05:00
Victor Ng
ec1e8ff807
Cleaned up a bunch of small debugging code like JSON dumps of temporary data.
2018-01-11 09:52:42 -05:00
Victor Ng
0beb4d12ae
Flattened the output of SimilarityRecommender.
...
The output of the SimilarityRecommender::recommend() method
now emits a list of 2-tuples. Each 2-tuple is (recommendation, weight)
2018-01-11 09:52:42 -05:00
Victor Ng
02493ae220
reworked lots of testcases
2018-01-11 09:52:42 -05:00
mlopatka
d4bd7919ea
Merged @mlopatka patch to add weight to SimilarityRecommender
...
LRS values are used as weights in the SimilarityRecommender
2018-01-11 09:52:42 -05:00