Giter VIP home page Giter VIP logo

Comments (6)

shukon avatar shukon commented on July 1, 2024

I think this depends on the cryptic use of this swap-dynamic (which I implemented based on how I found the code before. Basically this depends on the question whether fANOVA in any way depends on the order being based on the length of the choices. Or why this was designed this way. I suppose dropping the "swap"-block would alleviate this more in the root of the problem. @AndreBiedenkapp ?

from fanova.

AndreBiedenkapp avatar AndreBiedenkapp commented on July 1, 2024

I think it was designed in such a way because of axis-labels potentially becoming too squeezed.
But I agree @shukon that this could be dropped.

from fanova.

shukon avatar shukon commented on July 1, 2024

Hi @FlorentF9 . I tried to fix this in https://github.com/automl/fanova/tree/issue/96-transposed-grid-categoricals , could you maybe check with your data and give feedback?

from fanova.

shukon avatar shukon commented on July 1, 2024

Branch is merged and released as fanova 2.0.16.

from fanova.

FlorentF9 avatar FlorentF9 commented on July 1, 2024

Heatmap axes are still inverted. The reason is simple actually: the generate_pairwise_marginal method returns a matrix zz of shape (R, C) with R the number of rows (= number of values of the first param) and C the number of columns (= number of values of the second param).
Hence the matrix displayed by plt.imshow has an x-axis of size C (columns) and y-axis of size R (columns), so plt.xticks and plt.yticks are inverted in the code (https://github.com/automl/fanova/blob/master/fanova/visualizer.py#L222). Solution is to transpose zz or invert xticks and yticks.

from fanova.

shukon avatar shukon commented on July 1, 2024

🤦 I'm sorry. I think I changed most of the class in style (and actually fixed another bug for the swap-thing), but left the actual issue untouched. Thank you for your patience in pointing this out to me 😄
I decided to invert ticks and label for clarity.

from fanova.

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.