Giter Club home page Giter Club logo

Comments (3)

berndbischl avatar berndbischl commented on June 13, 2024

Any news on this?

I am currently iterating over the R code and this will soon get focus....

from openml.

joaquinvanschoren avatar joaquinvanschoren commented on June 13, 2024

Ok, I went full McGuyver on this one :)

Turns out there is a bug in the specific version of CodeIgniter (PHP backend) we are using. I guess Jan ran against the same issue. I found a github commit that fixes it and used it to patch our system:
bcit-ci/CodeIgniter@effd013

Next, for this specific query, the database data types are no real help because the qualities are stored as strings (for extensibility reasons). I wrote a quick check that detects when a string is actually an integer or a double. This is now returned:

http://openml.org/api_query/?q=SELECT%20d.name%20AS%20dataset,%20MAX(IF(dq.quality=%27NumberOfFeatures%27,%20dq.value,%20NULL))%20AS%20NumberOfFeatures,MAX(IF(dq.quality=%27NumberOfInstances%27,%20dq.value,%20NULL))%20AS%20NumberOfInstances,MAX(IF(dq.quality=%27NumberOfClasses%27,%20dq.value,%20NULL))%20AS%20NumberOfClasses,MAX(IF(dq.quality=%27MajorityClassSize%27,%20dq.value,%20NULL))%20AS%20MajorityClassSize,MAX(IF(dq.quality=%27MinorityClassSize%27,%20dq.value,%20NULL))%20AS%20MinorityClassSize,MAX(IF(dq.quality=%27NumberOfInstancesWithMissingValues%27,%20dq.value,%20NULL))%20AS%20NumberOfInstancesWithMissingValues,MAX(IF(dq.quality=%27NumberOfMissingValues%27,%20dq.value,%20NULL))%20AS%20NumberOfMissingValues,MAX(IF(dq.quality=%27NumberOfNumericFeatures%27,%20dq.value,%20NULL))%20AS%20NumberOfNumericFeatures,MAX(IF(dq.quality=%27NumberOfSymbolicFeatures%27,%20dq.value,%20NULL))%20AS%20NumberOfSymbolicFeatures%20FROM%20dataset%20d,%20data_quality%20dq%20WHERE%20d.did%20=%20dq.data%20AND%20d.isOriginal%20=%20%27true%27%20GROUP%20BY%20dataset

However, this will still fail in case of missing values. If you want to be absolutely sure, you can do a second free query to get the datatype from the quality table (this is also new):
http://openml.org/api_query/?q=SELECT%20name,%20datatype%20FROM%20quality

And do a lookup there.

Are we good?

from openml.

joaquinvanschoren avatar joaquinvanschoren commented on June 13, 2024

Think this is solved?

from openml.

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.