Validators selection - milestone 1#696
Conversation
|
Hi @miepsik, thanks for the delivery! Someone from our team will look at it shortly. |
|
Hi @miepsik I'm evaluating your delivery.
Thanks for any improvements you can make! |
|
Hi @keeganquigley thanks for the feedback. I've added requested improvements. |
|
@miepsik thanks for the changes.
python -m unittest discover
..n: 34 mi: 92 me: 0 z: 250
n: 34 mi: 92 me: 0 z: 250
n: 34 mi: 92 me: 0 z: 250
n: 34 mi: 92 me: 0 z: 250
n: 34 mi: 92 me: 0 z: 250
n: 34 mi: 92 me: 0 z: 250
n: 34 mi: 92 me: 0 z: 250
n: 34 mi: 92 me: 0 z: 250
n: 34 mi: 92 me: 0 z: 250
n: 34 mi: 92 me: 0 z: 250
n: 34 mi: 92 me: 0 z: 250
n: 34 mi: 92 me: 0 z: 250
domination
n: 34 mi: 92 me: 0 z: 250
n: 34 mi: 92 me: 0 z: 250
n: 34 mi: 92 me: 0 z: 250
n: 34 mi: 92 me: 0 z: 250
n: 34 mi: 92 me: 0 z: 250
n: 34 mi: 92 me: 0 z: 250
n: 34 mi: 92 me: 0 z: 250
n: 34 mi: 92 me: 0 z: 250
domination
n: 34 mi: 92 me: 0 z: 250
n: 34 mi: 92 me: 0 z: 250
n: 34 mi: 92 me: 0 z: 250
n: 34 mi: 92 me: 0 z: 250
n: 34 mi: 92 me: 0 z: 250
n: 34 mi: 92 me: 0 z: 250
n: 34 mi: 92 me: 0 z: 250
n: 34 mi: 92 me: 0 z: 250
n: 34 mi: 92 me: 0 z: 250
n: 34 mi: 92 me: 0 z: 250
n: 34 mi: 92 me: 0 z: 250
n: 34 mi: 92 me: 0 z: 250
n: 34 mi: 92 me: 0 z: 250
n: 34 mi: 92 me: 0 z: 250
n: 34 mi: 92 me: 0 z: 250
n: 34 mi: 92 me: 0 z: 250
(array([5.0000000e+00, 1.9209000e+03, 2.1677018e+06, 9.2000000e+02,
1.0000000e+00, 7.0300000e+02]), array([1.500000e+00, 3.801300e+03, 2.167745e+06, 8.600000e+02,
1.000000e+00, 1.166000e+03]))
.E
======================================================================
ERROR: tests.test_ValidatorSelection (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: tests.test_ValidatorSelection
Traceback (most recent call last):
File "/usr/lib/python3.8/unittest/loader.py", line 436, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/lib/python3.8/unittest/loader.py", line 377, in _get_module_from_name
__import__(name)
File "/home/keegan/validators_selection/tests/test_ValidatorSelection.py", line 2, in <module>
import polkadot
File "/home/keegan/validators_selection/src/polkadot.py", line 12, in <module>
from sklearn.preprocessing import StandardScaler
ModuleNotFoundError: No module named 'sklearn'
----------------------------------------------------------------------
Ran 4 tests in 4.885s
FAILED (errors=1)I don't understand why though because I already installed pip install sklearn
Collecting sklearn
Downloading sklearn-0.0.post1.tar.gz (3.6 kB)
Building wheels for collected packages: sklearn
Building wheel for sklearn (setup.py) ... done
Created wheel for sklearn: filename=sklearn-0.0.post1-py3-none-any.whl size=2342 sha256=5cd6146cdaeed8a7ac64d33c06690d10e7481ec80212aafb2c7627536f353f26
Stored in directory: /home/keegan/.cache/pip/wheels/14/25/f7/1cc0956978ae479e75140219088deb7a36f60459df242b1a72
Successfully built sklearn
Installing collected packages: sklearn
Successfully installed sklearn-0.0.post1
docker run dc2b3dd84423
* Serving Flask app 'polkadot' (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on all addresses (0.0.0.0)
* Running on http://127.0.0.1:14237
* Running on http://172.17.0.2:14237
Press CTRL+C to quitAny idea on the the tests fail manually? Can you please address the comments above? I'm running these on an Ubuntu machine. Thanks! |
|
I'm also having trouble testing out the curl commands. When I run this: It fails to connect, even when the Docker container is running. What do I need to do to get it running on my local 14237 port? Can you add some context to the instructions? Thanks! |
|
Hi @keeganquigley , thanks for your feedback |
|
@miepsik I found your invoice but am not seeing a bitcoin address on it. Can you please re-submit an updated invoice including the BTC address that is listed on your application? Also, can you please translate the invoice items into English? This will help make it easier for our operations team. Thank you! |
|
I didn't notice your comment. Fixed invoice was already sent for this and the second milestone |
|
@miepsik thank you! I have forwarded your invoice internally for payment. |
|
hi @miepsik we transferred the payment today. |
Milestone Delivery Checklist
Link to the application pull request: w3f/Grants-Program#1326 < please fill this in with the PR number of your application.