Git Product home page Git Product logo

Comments (5)

loichuder avatar loichuder commented on June 3, 2024

Thank you for the report !

Funny that you hit a recursion limit when trying to encode the data. I think it is because the dataset has a dtype we did not account for.

Could you tell us what is the dtype of the dataset you are trying to open ? Or, even better, could you provide us with the problematic file so we can test it out ourselves ? You can scrap other datasets to keep only the problematic one if you wish.

from jupyterlab-h5web.

nicolasshu avatar nicolasshu commented on June 3, 2024

Hi!
Thank you very much! If you don't mind, is there something you can say for me to further understand this error? I'd love to know what led to this and where the problem lied in further detail!

Yes, I apologize for the delay. I had to go back into my scripts and re-create something that was a lot smaller b/c the files I was looking at were ~76GB. Actually, the h5web extension didn't work with any of them. Here is a link for the file I've just uploaded for you!

Thank you very much!

from jupyterlab-h5web.

loichuder avatar loichuder commented on June 3, 2024

Great, thanks for the file : I think I was able to pinpoint the issue.

If you don't mind, is there something you can say for me to further understand this error? I'd love to know what led to this and where the problem lied in further detail!

Sure. As I suspected, this is linked to the data type (or dtype for short) used to save the data.

In your file, the datasets called features are saved using float128 which is not supported by h5web yet. You can check the data type in the Inspect tab, under Type:
image

Now to solve the issue, we will have to bring support for float128 datasets in jupyterlab-h5web.

However, if you have control over your saving process, the quickest way to solve the problem would be to save the data using float64. ⚠️ Careful though, this will result in loss of numerical precision.

For example, this dataset features_64 (created from your features dataset but converted to float64) can be visualized just fine:
image

from jupyterlab-h5web.

loichuder avatar loichuder commented on June 3, 2024

This will be fixed in next release (landing this week or the next). float128 are now converted to float64 for JSON serialization.

from jupyterlab-h5web.

nicolasshu avatar nicolasshu commented on June 3, 2024

Understood! Thank you very much!

from jupyterlab-h5web.

Related Issues (20)

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.