sandrich / classifying_digits_mnist Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
We should do a code coverage check in our CircleCI step (In the slides)
We should improve README to illustrate the command line options and the default behavior
We should add pylint check to the circleci and fix linting issues. Will take care of this
Would be nice (if we add other algorithms) to be able to compare their training time
The output shows 2 x Train Accuracy even though the second number is Test Accuracy
-----------------
Max tree depth: 9
Number of trees: 20
Impurity method: entropy
-----------------
Train Accuracy: 0.946
Train Accuracy: 0.935
Needs change in the README as well!
https://matplotlib.org/devel/testing.html This might help
Seems that one of my changes broke the app
$ python src/app.py -h
Traceback (most recent call last):
File "src/app.py", line 1, in <module>
from src import dataset
ModuleNotFoundError: No module named 'src'
Still unsure how to do this...
It seems that numpy datasets are uploaded into git after having run the test locally. We should not include them since we pull it from the internet
We are on the weak side
Name Stmts Miss Cover
-------------------------------------------
src/__init__.py 0 0 100%
src/algorithm_meta.py 18 7 61%
src/dataset.py 77 8 90%
src/random_forest.py 65 40 38%
src/visualizer.py 21 16 24%
-------------------------------------------
TOTAL 181 71 61%
Details of the last run can be browsed here https://41-291614359-gh.circle-artifacts.com/0/htmlcov/index.html
Tests are failing due to dependency issues
======================================================================
ERROR: test_app (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_app
Traceback (most recent call last):
File "/opt/conda/envs/mnist_classifier/lib/python3.8/unittest/loader.py", line 436, in _find_test_path
module = self._get_module_from_name(name)
File "/opt/conda/envs/mnist_classifier/lib/python3.8/unittest/loader.py", line 377, in _get_module_from_name
__import__(name)
File "/root/project/tests/test_app.py", line 2, in <module>
from src import app
File "/root/project/src/app.py", line 1, in <module>
import dataset
ModuleNotFoundError: No module named 'dataset'
======================================================================ttest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_dataset
Traceback (most recent call last):
File "/opt/conda/envs/mnist_classifier/lib/python3.8/unittest/loader.py", line 436, in _find_test_path
module = self._get_module_from_name(name)
File "/opt/conda/envs/mnist_classifier/lib/python3.8/unittest/loader.py", line 377, in _get_module_from_name
__import__(name)
File "/root/project/tests/test_dataset.py", line 6, in <module>
from src import dataset
File "/root/project/src/dataset.py", line 2, in <module>
import requests
ModuleNotFoundError: No module named 'requests'
ERROR: test_dataset (uni
Tests should mock the model's training
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.