Giter Club home page Giter Club logo

shadho's People

Contributors

jeffkinnison avatar sabraha2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

shadho's Issues

shadho copying files that are already in directory

Bug: shadho attempts to copy work_queue.py to the same location.

How to Reproduce:

  1. conda create --name shadho-test //create a new environment to reproduce this bug
  2. conda activate shadho-test //activate this environment
  3. conda install -c conda-forge ndcctools //install cctools from conda channel conda-forge
  4. conda install pip //let conda handle pip install
  5. python -m pip install shadho //pip install shadho to shadho-test environment
  6. python -m shadho.installers.workqueue --prefix $CONDA_PREFIX //"glue" shadho and cctools

Error:
Traceback (most recent call last):
File "/afs/crc.nd.edu/user/t/tphung/anaconda3/envs/shadho-test/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/afs/crc.nd.edu/user/t/tphung/anaconda3/envs/shadho-test/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/afs/crc.nd.edu/user/t/tphung/anaconda3/envs/shadho-test/lib/python3.9/site-packages/shadho/installers/workqueue.py", line 209, in
main()
File "/afs/crc.nd.edu/user/t/tphung/anaconda3/envs/shadho-test/lib/python3.9/site-packages/shadho/installers/workqueue.py", line 202, in main
install_shadho_files(prefix, sp_prefix)
File "/afs/crc.nd.edu/user/t/tphung/anaconda3/envs/shadho-test/lib/python3.9/site-packages/shadho/installers/workqueue.py", line 176, in install_shadho_files
shutil.copy(os.path.join(source, 'work_queue.py'), sp_prefix)
File "/afs/crc.nd.edu/user/t/tphung/anaconda3/envs/shadho-test/lib/python3.9/shutil.py", line 418, in copy
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/afs/crc.nd.edu/user/t/tphung/anaconda3/envs/shadho-test/lib/python3.9/shutil.py", line 244, in copyfile
raise SameFileError("{!r} and {!r} are the same file".format(src, dst))
shutil.SameFileError: '/afs/crc.nd.edu/user/t/tphung/anaconda3/envs/shadho-test/lib/python3.9/site-packages/work_queue.py' and '/afs/crc.nd.edu/user/t/tphung/anaconda3/envs/shadho-test/lib/python3.9/site-packages/work_queue.py' are the same file

Temporary Solution: commenting out lines 176 and 177 in file https://github.com/jeffkinnison/shadho/blob/master/shadho/installers/workqueue.py solves the problem.

module shadho cannot be imported

Problem: shadho module cannot be imported.
How to reproduce: (assuming that we have conda or miniconda)

conda create --name shadho-env
conda activate shadho-env
conda install pip
pip install shadho
python -c "import shadho"

The last command throws this error:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "~/anaconda3/envs/shadho-env/lib/python3.9/site-packages/shadho/shadho.py", line 8, in <module>
    from .configuration import ShadhoConfig
ImportError: attempted relative import with no known parent package

It looks like an import error, which hopefully is easy to fix.

Shadho insisting on finding its config file and working directory

Shadho seems to insist on finding its config file as there's no option for me to tell shadho to use the default configuration. It'd be nice if there's an option to do so, maybe in Shadho() object instantiation. Also shadho looks for its working directory .shadho when it doesn't need one. This is because I installed shadho via pip, and I installed pip via conda, so .shadho already lives in a conda environment, instead of the home directory.

Shadho breaks with python 3.10

Per title. This is because shadho depends on package pyrameter, which uses object Sequence from library collections, which is deprecated since python3.3 and removed since python3.9. This issue is reproducible by running shadho-test.sh as specified in this issue, but changing the python version from 3.8 to 3.10 when creating the conda environment. Hope this helps!

Missing Documentation

I was interested in checking out this tool, but when I found my way here I was disappointed to see that the documentation link seems to be broken. Can it be updated or fixed?

image

Ease-of-Use: Make running SHAHDO easier

Currently, SHADHO requires a lot of manual configuration. Much of this can be pushed behind-the-scenes (e.g. Work Queue config) or be automated (e.g. a worker type function for running the training code).

There should be a default use mode that requires no input from the user besides which function to optimize.

Make assignments agnostic to number of trees and ccs

Currently, trees are assigned to ccs under the assumption that the number of trees will be greater than the number of ccs. This will not always hold, and for the sake of robustness the assignment process must work in all cases.

Max_tasks bug

max_tasks parameter in shadho object does not equate to the total number of runs.

For example, passed max_tasks = 2 but received 7 successes:

Experiment nn_mnist_test
-------------------------------------------------------------------
106 Trials	99 Pending	7 Successes	0 Errors
-------------------------------------------------------------------

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.