Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions 1 Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@ RUN pip install flashtext && \
pip install PDPbox && \
pip install ggplot && \
pip install cesium && \
pip install edafa && \
##### ^^^^ Add new contributions above here ^^^^ #####
# clean up pip cache
rm -rf /root/.cache/pip/*
Expand Down
21 changes: 21 additions & 0 deletions 21 tests/test_edafa.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import unittest

from edafa import ClassPredictor

class myPredictor(ClassPredictor):
def __init__(self,*args,**kwargs):
super().__init__(*args,**kwargs)

def predict_patches(self,patches):
return 0

class TestEdafa(unittest.TestCase):
def test_init(self):
conf = '{"augs":["NO",\
"FLIP_UD",\
"FLIP_LR"],\
"mean":"ARITH"}'
p = myPredictor(conf)
pred = p.predict_patches(None)
self.assertEqual(0, pred)

Morty Proxy This is a proxified and sanitized view of the page, visit original site.