Coder Social home page Coder Social logo

Comments (7)

computron avatar computron commented on August 19, 2024 1

@nitin0301 - thanks for reporting
@ardunn - thanks for checking this

I just pushed matminer v0.5.3 which should fix this.

from matminer_examples.

ardunn avatar ardunn commented on August 19, 2024

Hi @nitin0301,

Which version of matminer are you using (do conda list)? On the current master branch I do not see this issue (I am guessing it is just a typo):

@staticmethod
    def quantile(data_lst, weights=None, q=0.5):
        """
        Return a specific quantile.
        Args:
            data_lst (list or np.ndarray): 1D data list to be used for computing
                quantiles
            q (float): The quantile, as a fraction between 0 and 1.
        Returns:
            (float) The computed quantile of the data_lst.
        """
        q = float(q)
        return np.quantile(data_lst, q=q)

The first thing I would recommend is upgrading your matminer to the newest version.

from matminer_examples.

nitin0301 avatar nitin0301 commented on August 19, 2024

I think it is the current version:

matminer 0.5.2 pypi_0 pypi

from matminer_examples.

computron avatar computron commented on August 19, 2024

Look like somehow the word "zoom" got added in your source code. Please make sure you didn't add it unintentionally. Anyway, you can probably just delete the "zoom" part like in @ardunn 's code example

from matminer_examples.

ardunn avatar ardunn commented on August 19, 2024

@computron it is in the matminer 0.5.2(?) release: https://pypi.org/project/matminer/#files

Seems like the only release it is in?

from matminer_examples.

computron avatar computron commented on August 19, 2024

Yes it looks like that release has some issues, let me try a new one now

from matminer_examples.

nitin0301 avatar nitin0301 commented on August 19, 2024

Thanks @computron. Everything working after removing zoom.

from matminer_examples.

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.