Comments (2)
Hi,
I have seen this error before, but I will need a bit more details to figure out the problem.
(1) Make sure that any old version is uninstalled and restart R after installing the last version.
(2) If error persists, could you send me the R script and the MOFA object (before training)? Either by email or via the slack channel.
from mofa.
I'm getting the same error.
The problem occurs at line 112 in BayesNet.py
when drop
contains more than one value (in my case, at least, when both dim["by_r2"]
and dim["by_norm"]
contain something). When removeFactors
is called, this line fails:
if hasattr(self,"covariates"): self.covariates = self.covariates[s.arange(len(self.covariates)) != idx]
If idx
contains more than one value, the comparison evaluates to a single boolean value, which causes self.covariates
to contain a nested array (e.g. [[True, False, True]]
instead of [True, False, True]
. This causes any(self.covariates)
in updates.py
to fail because there's no way to determine how that entire array (i.e. self.covariates[0]
-> [True, False, True]
) should evaluate to a single boolean value.
Pull request incoming.
from mofa.
Related Issues (20)
- ERROR in
- errors in installing MOFA HOT 2
- Improving memory efficiency for CITE-seq data analysis HOT 5
- AttributeError: module 'mofapy' has no attribute 'core.entry_point' HOT 4
- Documentation missmatch for getDefaultModelOptions()$numFactors HOT 1
- plotDataHeatmap() error with correlation but not with euclidean distance HOT 2
- MOFA2: IndexError: list index out of range HOT 1
- Question on initialization HOT 2
- Issue with runMOFA(object) HOT 1
- Error in py_call_impl(callable, dots$args, dots$keywords) : AttributeError: 'NoneType' object has no attribute 'getExpectations' HOT 1
- Failure to Capture Common Sources of Variance in Data HOT 1
- error message: mofapy package not found. HOT 2
- AssertionError: dimensionality mismatch HOT 1
- Different data processing on metabolomics, I get different R2. HOT 7
- Thanks. another problem on running MOFA
- Problem to use mofaOBJECT HOT 2
- Problem to use plotVarianceExplained object in ggplot2
- Error in py_call_impl(callable, dots$args, dots$keywords) : UnicodeEncodeError: 'ascii' codec can't encode character '\u03b5' in position 5: ordinal not in range(128)
- predict function should use S3 dispatching
- 'MOFAtools'
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 mofa.