Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn of Numpy Deprecation Warning #5

Open
AhmedAbdelmoneim opened this issue Oct 22, 2021 · 0 comments
Open

Turn of Numpy Deprecation Warning #5

AhmedAbdelmoneim opened this issue Oct 22, 2021 · 0 comments
Assignees
Labels
dependencies Pull requests that update a dependency file

Comments

@AhmedAbdelmoneim
Copy link
Collaborator

Calling sgrnable from the command line results in a bunch of Numpy deprecation warnings, we're fixed in to this numpy version due to dependency on Azimuth model. Look into a way to either upgrade Numpy or turn off the warning:

/Users/averynoonan/anaconda3/envs/sgRNAble1/lib/python3.7/site-packages/sklearn/linear_model/least_angle.py:35: DeprecationWarning: np.floatis a deprecated alias for the builtinfloat. To silence this warning, use floatby itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.float64here. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations eps=np.finfo(np.float).eps, /Users/averynoonan/anaconda3/envs/sgRNAble1/lib/python3.7/site-packages/sklearn/linear_model/least_angle.py:597: DeprecationWarning:np.floatis a deprecated alias for the builtinfloat. To silence this warning, use floatby itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.float64here. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations eps=np.finfo(np.float).eps, copy_X=True, fit_path=True, /Users/averynoonan/anaconda3/envs/sgRNAble1/lib/python3.7/site-packages/sklearn/linear_model/least_angle.py:836: DeprecationWarning:np.floatis a deprecated alias for the builtinfloat. To silence this warning, use floatby itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.float64here. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations eps=np.finfo(np.float).eps, copy_X=True, fit_path=True, /Users/averynoonan/anaconda3/envs/sgRNAble1/lib/python3.7/site-packages/sklearn/linear_model/least_angle.py:862: DeprecationWarning:np.floatis a deprecated alias for the builtinfloat. To silence this warning, use floatby itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.float64here. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations eps=np.finfo(np.float).eps, positive=False): /Users/averynoonan/anaconda3/envs/sgRNAble1/lib/python3.7/site-packages/sklearn/linear_model/least_angle.py:1097: DeprecationWarning:np.floatis a deprecated alias for the builtinfloat. To silence this warning, use floatby itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.float64here. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations max_n_alphas=1000, n_jobs=None, eps=np.finfo(np.float).eps, /Users/averynoonan/anaconda3/envs/sgRNAble1/lib/python3.7/site-packages/sklearn/linear_model/least_angle.py:1344: DeprecationWarning:np.floatis a deprecated alias for the builtinfloat. To silence this warning, use floatby itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.float64here. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations max_n_alphas=1000, n_jobs=None, eps=np.finfo(np.float).eps, /Users/averynoonan/anaconda3/envs/sgRNAble1/lib/python3.7/site-packages/sklearn/linear_model/least_angle.py:1480: DeprecationWarning:np.floatis a deprecated alias for the builtinfloat. To silence this warning, use floatby itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.float64here. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations eps=np.finfo(np.float).eps, copy_X=True, positive=False): /Users/averynoonan/anaconda3/envs/sgRNAble1/lib/python3.7/site-packages/sklearn/linear_model/randomized_l1.py:152: DeprecationWarning:np.floatis a deprecated alias for the builtinfloat. To silence this warning, use floatby itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.float64here. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations precompute=False, eps=np.finfo(np.float).eps, /Users/averynoonan/anaconda3/envs/sgRNAble1/lib/python3.7/site-packages/sklearn/linear_model/randomized_l1.py:320: DeprecationWarning:np.floatis a deprecated alias for the builtinfloat. To silence this warning, use floatby itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.float64here. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations eps=np.finfo(np.float).eps, random_state=None, /Users/averynoonan/anaconda3/envs/sgRNAble1/lib/python3.7/site-packages/sklearn/linear_model/randomized_l1.py:580: DeprecationWarning:np.floatis a deprecated alias for the builtinfloat. To silence this warning, use floatby itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.float64here. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations eps=4 * np.finfo(np.float).eps, n_jobs=None, /Users/averynoonan/anaconda3/envs/sgRNAble1/lib/python3.7/site-packages/sklearn/ensemble/gradient_boosting.py:34: DeprecationWarning:np.boolis a deprecated alias for the builtinbool. To silence this warning, use boolby itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.bool_here. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations from ._gradient_boosting import predict_stages /Users/averynoonan/anaconda3/envs/sgRNAble1/lib/python3.7/site-packages/sklearn/ensemble/gradient_boosting.py:34: DeprecationWarning:np.boolis a deprecated alias for the builtinbool. To silence this warning, use boolby itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, usenp.bool_ here. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations from ._gradient_boosting import predict_stages usage: sgrnable [-h] -t TARGET_SEQUENCE -g GENOME_SEQUENCE [GENOME_SEQUENCE ...] [-a AZIMUTH_CUTOFF] [-c COPY_NUMBER [COPY_NUMBER ...]] [-p PURPOSE] [-o OUTPUT_DIR] [-th NUM_THREADS] [-m MAX_MEMORY] [-v] sgrnable: error: the following arguments are required: -t/--target_sequence, -g/--genome_sequence

@AhmedAbdelmoneim AhmedAbdelmoneim added the dependencies Pull requests that update a dependency file label Oct 22, 2021
@AhmedAbdelmoneim AhmedAbdelmoneim self-assigned this Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

1 participant