Comments (7)
Indeed, another helping hand would be very welcome. Tanks for the offer, I've dropped you an invite.
from medpy.
I had this issue as well when using metrics such as dice and jaccard. Had to write my own functions to address this. Just have to replace np.bool with bool.
from medpy.
Hey, thanks for the feedback!
I'll try to squeeze in another release till the end of the year - quite a lot of work, though. Can't promise anything, unfortunately.
If any of you would be willing to make a PR out of your fixes for this depreciation warning, I would include it. Thanks!
from medpy.
I wrote my own function for dice and jaccard calculation rather than what you had in the binary folder. Your code should work if you swap np.bool with bool. I can share my functions if you are interested however.
from medpy.
@loli PR #113 should address this! I mapped numpy.float -> float
, numpy.int -> int
, and numpy.bool -> numpy.bool_
. Specific precision types like numpy.float32
were not changed as these aren't deprecated and I didn't want to change any behavior inadvertently. Similarly I used numpy.bool_
instead of bool
to keep things in numpy as much as possible - this probably wouldn't make a difference but better to be safe.
from medpy.
@loli would you be open to adding additional maintainers to the project? I feel we could get through the open PRs and a lot of the issues decently quickly.
from medpy.
@captainjtx thank you for the report! This should be fixed in #113
Until a new release is out, you can install the latest version with pip install git+https://github.com/loli/medpy.git
from medpy.
Related Issues (20)
- Possible wrong result returned by medpy.io.load HOT 1
- Problem with opening .img/.img.hdr file HOT 1
- reduce redundant computation when computing multiple surface distance-based metrics HOT 3
- Issue with graphcut support HOT 8
- medpy.metric.binary.hd95(pre,gt) always get "1"、“1.414”、‘’1.732“.。。。 HOT 1
- Should Dice coefficient for empty result and empty reference be 1? HOT 1
- ASSD equation is wrong HOT 1
- scipy deprecations HOT 1
- anisotropic_diffusion slicer error HOT 3
- Anisotropic Diffusion Numpy Warning (+ solution ?) HOT 2
- How to remove noise automatically without set any threshold value on DICOM Volume Images& 2D Images ? HOT 1
- When I use medpy.io.load to read .nii files,it always wrong. HOT 1
- Why I cannot load my CT volumns?
- metrics for multi-classes? HOT 1
- Handle few deprecations in scipy HOT 2
- Conda recipe with graphcut support HOT 2
- Broken links and incomplete notebooks HOT 2
- No module named 'load' HOT 1
- No module named 'medpy.graphcut.maxflow' HOT 6
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 medpy.