Coder Social home page Coder Social logo

ValueError: Raw data must be data for a single arm for non batched trials. for the below code which is part of the tutorial. for v0.2.6 about ax HOT 4 CLOSED

leeauk21 avatar leeauk21 commented on April 28, 2024
ValueError: Raw data must be data for a single arm for non batched trials. for the below code which is part of the tutorial. for v0.2.6

from ax.

Comments (4)

mpolson64 avatar mpolson64 commented on April 28, 2024 1

@leeauk21 While I can't go back and try and reproduce this error, I believe it may have be related to this issue from June: #1664 . The TL;DR is that Typeguard, the library we were using at the time for runtime type checking, was not working properly and causing strange errors deep in our stack -- this was quite a tricky issue to investigate and we ended up needing to remove Typeguard completely.

If you are unable to upgrade to the latest version of Ax the best advice I can give you is to grep for TRIAL_RAW_DATA_FORMAT_ERROR_MESSAGE (the string of the value error you're seeing) and remove places where it's raised or where Typeguard is used. If I recall correctly, the primary place will be in ax/core/trial.py where we call a method named checked_cast_complex that calls Typeguard under the hood. Removing that checked_cast_complex and just passing in the value directly should solve your issue.

I'm sorry I can't offer more help, but I am sympathetic to your inability to upgrade to to legacy code so I hope this helps. Best of luck!

from ax.

mpolson64 avatar mpolson64 commented on April 28, 2024

Hi @leeauk21, unfortunately I'm unable to reproduce this error using the latest release of Ax, v0.3.4 . Please update to this version and the above snippet should work.

If you're still encountering issues after updating don't hesitate to reopen the task and we will take a look.

from ax.

leeauk21 avatar leeauk21 commented on April 28, 2024

hey Im stuck in a large codebase so im still stuck in python 3.7. Would it be remotely possible for you or others to try the above code with python 3.7 and ax v0.2.6. Thanks!

from ax.

leeauk21 avatar leeauk21 commented on April 28, 2024

Thanks a lot @mpolson64 !!!

from ax.

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.