martinjzhang / adafdr Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi there,
I apologize, this might be a beginner problem. But I couldn't figure out why. Could you help me see it? Thanks!
xbsp.shape #(17113, 524) pbsp.shape #(17113, 1)
I was trying to use a (17113, 524) array as x, I tried both "covariate_type=None" and "covariate_type=np.zeros([524], dtype=bool)" but I have this error:
res = md.adafdr_test(pbsp, xbsp, alpha=0.1, covariate_type=covariate_type)
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/python3.6/multiprocessing/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/python3.6/multiprocessing/pool.py", line 44, in mapstar
return list(map(*args))
File "/python3.6/site-packages/adafdr/method.py", line 364, in method_single_fold_wrapper
f_write=f_write, fast_mode=fast_mode)
File "/python3.6/site-packages/adafdr/method.py", line 605, in method_single_fold
f_write=f_write)
File "/python3.6/site-packages/adafdr/method.py", line 945, in method_init
x_null,x_alt = x[p>0.75],x[p<0.05]
IndexError: boolean index did not match indexed array along dimension 1; dimension is 524 but corresponding boolean dimension is 1
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "", line 1, in
File "/python3.6/site-packages/adafdr/method.py", line 502, in adafdr_test
res = po.map(method_single_fold_wrapper, Y_input)
File "/python3.6/multiprocessing/pool.py", line 266, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/python3.6/multiprocessing/pool.py", line 644, in get
raise self._value
IndexError: boolean index did not match indexed array along dimension 1; dimension is 524 but corresponding boolean dimension is 1
Hi @martinjzhang,
Trying to get AdaFDR installed, I'm getting the following error:
Could not find a version that satisfies the requirement torch==0.3.1 (from versions: 0.1.2, 0.1.2.post1, 0.4.1, 0.4.1.post2, 1.0.0)
No matching distribution found for torch==0.3.1
Any idea?
Thanks in advance!
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.