Git Product home page Git Product logo

ensemble_networkx's People

Contributors

jolespin avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

411an13

ensemble_networkx's Issues

[Bug] ValueError: coordinate Samples has dimensions ('[Index Name Here]',), but these are not a subset of the DataArray dimensions ['Samples', 'Edges', 'Statistics']

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

[Bug] `MissingDimensionsError` when providing a MultiIndex for X.index or X.columns (SampleSpecificPerturbationNetwork)

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.