jolespin / ensemble_networkx Goto Github PK
View Code? Open in Web Editor NEWEnsemble networks in Python
License: Other
Ensemble networks in Python
License: Other
I've been getting an error when my X
(pd.DataFrame) has an index name.
ValueError: coordinate Samples has dimensions ('16S_ID',), but these are not a subset of the DataArray dimensions ['Samples', 'Edges', 'Statistics']
My X.index.name is causing the error:
X.index.name
# '16S_ID'
The way around this is to set the name to None
X.index.name = None
It seems like there is currently no way to robustly do correlations on binary data (e.g. correlations between two dichotomous categorical variables).
I'll try to implement the Matthews Correlation Coefficient (also known as the Phi Coefficient) in the EnsembleAssociationNetwork class to resolve this.
I initially posted this issue on StackOverflow (https://stackoverflow.com/questions/76715515/how-to-create-xarray-dataset-with-a-pandas-multiindex-for-one-of-the-dimensions). The gist of the issue is that any Pandas MultiIndex
objects on Pandas DataFrame
or Pandas Series
for X
or y
used in the SampleSpecificPerturbationNetwork().fit
method will throw the following error: MissingDimensionsError: cannot set variable 'Samples' with 2-dimensional data without explicit dimension names. Pass a tuple of (dims, data) instead.
You can't convert them to tuples either, the work around for the time being is to convert them to a string until I figure out a better solution.
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.