Comments (4)
This is another one that should probably use pip install -e .[test]
instead of [dev]
.
from menelaus.
A Python example-script-runner is added among the unit tests, but the example scripts create a lot of output are not always needed:
- when run by the unit test script, examples should not create output (use
test_env_var
) - add unit test script for Jupyter notebooks
- since
examples.yml
runs only example scripts, unit tests should be reorganized so that the main workflow only runs the non-example test files -- maybe using more directories for labelling, etc.
from menelaus.
Unit tests refactored into tests/menelaus
and tests/examples
, which also helps the examples.yml
and github-ci.yml
workflows run those tests separately.
Current issue is FileNotFoundError
appearing for multiple instances of example scripts being run by tests/examples/test_example_scripts.py
-- even when changing those examples to use os.abspath
instead of assuming a root-level CWD.
# in example script
data_path = os.path.join("..", "..", "src", "menelaus", "tools", "artifacts", "example_data.csv")
data_path = os.path.abspath(data_path)
data = pd.read_csv(data_path)
from menelaus.
Added unit test script that runs Juypter notebooks. There needed to be some steps to get it working:
- add
jupyter
,nbconvert
to.[test]
installation
- the script assumes there is a kernel made for notebooks in this repository to be run, and that it has a specific name- for now, I assume that the user has created a virtual environment at the root level called
venv
- I then do
ipython kernell install --name "venv" --user
to set that as the kernel for notebooks - the unit test script assumes that such a "venv" kernel will always be set up
- for now, I assume that the user has created a virtual environment at the root level called
So, any of those set up steps (and some I may be missing) will need to be included in examples.yml
. Apart from that issue, the feature is working as intended, and subsequent commits should pass.
from menelaus.
Related Issues (20)
- `flake8` command hanging? HOT 1
- Add Fundamental Feature Manipulation `Injector`s
- Placeholder Generalization Issue for Automators HOT 1
- Fix __version__ attribute HOT 1
- Fix drift labels in make_example_batch_data (?)
- Fix Typo in README
- Label Dirichlet Injector Issue
- DL Drift Detector
- Select data for benchmarking HOT 1
- Design `nlp` submodule and skeleton of drift detection methods HOT 5
- Add [specific] NLP Drift Detection algorithm
- Add example notebook for NLP drift detector(s) HOT 1
- Fix sphinx build for wilds notebook
- Freeze and/or exclude notebooks from sphinx build
- Consistent parameterization w.r.t. updating reference windows
- Add PSI detector
- Improve Documentation of NLP Example
- Add tests for NLP example
- Release experimental NLP code
- Add detectors for typical statistical tests/divergences
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from menelaus.