Code Monkey home page Code Monkey logo

mogpjax's People

Contributors

daniel-dodd avatar mathdr avatar thomaspinder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

mathdr

mogpjax's Issues

dev: Trying to push a PR, but do not have access rights

Hello! I am currently looking at this repo, and finding some issues in some of the files. As I think I would like to utilize a lot of this functionality, I am "fixing" things as I find them.

I currently have a PR ready to go that fixes the gplvm.pct.py example, but cannot push it for code review, as I do not have access rights.

perhaps you can grant me a temporary token so I can push this (and other) PRs?

bug: Tests Fail on Apple M1 running Monterey

Bug Report

MOGPJax version:
0.0.2
Current behavior:

when running pytest on clean virtual environment (using python 3.10.0 and running pip install -e .), every test fails (144 of them) (and there are 792 warnings).

Expected behavior:

All tests pass.

Steps to reproduce:

See above: clean virtualenv running python 3.10.0 and running pip install -e . and pytest.

Now, if I comment out the line:

assert isinstance(mll(params), jnp.DeviceArray)

then all of the tests pass.

Inspecting the return type of mll(params) with type(mll(params)) returns jaxlib.xla_extension.Array, but we cannot
replace the test with

assert isinstance(mll(params), jaxlib.xla_extension.Array)

since

AttributeError: module 'jaxlib.xla_extension' has no attribute 'Array'

Other information:

I can suppress the warnings by replacing (in test_gps.py):

@pytest.mark.parametrize("kernel", [gpx.Matern12, gpx.Matern32, gpx.Matern52, gpx.RBF])

with

@pytest.mark.parametrize("kernel", [jk.Matern12, jk.Matern32, jk.Matern52, jk.RBF])

wherein I import jaxkern.kernels as jk

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.