pking70 / limeaid Goto Github PK
View Code? Open in Web Editor NEWUW Data 515 final project: Local Interpretable Model-agnostic Interpretations (LIME)
License: MIT License
UW Data 515 final project: Local Interpretable Model-agnostic Interpretations (LIME)
License: MIT License
When we try to run the example scripts or notebooks using the LIMEaid module imported from PyPI or through cloning the repo, it breaks with module not found error due to the difference in the module paths.
The project has several modules in the MVC folder structures. During development and unit testing it was found that the import statement for the modules from different directories does not work unless we include statement to insert the path to the modules. However, the caveat is that these insert statement and the corresponding import sys statement need to be present before the statement to import the project modules from other directories. This violates the styling principles of having import statements at the beginning of the file and having import statements in alphabetical order. This is caught by linter as well, and we had to suppress it by applying a linter hint to ignore the relevant error message for this specific case.
An example below, taken from LIME_Education_Ex.py. As you can see from below, we had to import sys and include statements to insert the MVC folder paths into PATH environment variable with the sys.path.insert command. And the actual required import statement(s) is after the "extra" import and insert statements.
import sys
sys.path.insert(0, '../LIMEaid/LIMEaid/controller')
sys.path.insert(0, '../LIMEaid/LIMEaid/model')
sys.path.insert(0, '../LIMEaid/LIMEaid/view')
import fit_sklearn_models as fsm
The workaround is in travis.yml file on line 37, NOTE the ignore switch and the argument value.
flake8 LIMEaid --ignore=E402
When we try to run the example scripts or notebooks using the LIMEaid module imported from PyPI, it breaks with module not found error due to the difference in the module paths.
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.