Giter VIP home page Giter VIP logo

Comments (6)

pghysels avatar pghysels commented on June 12, 2024

Hi Yu-Hang,

Can you try STRUMPACKGaussianProcessRegressor in
/global/cscratch1/sd/pghysels/STRUMPACK/install/include/python/STRUMPACKKernel.py
on cori?

export PYTHONPATH=$PYTHONPATH:/global/cscratch1/sd/pghysels/STRUMPACK/install/include/python
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/global/cscratch1/sd/pghysels/STRUMPACK/install/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/global/cscratch1/sd/pghysels/ButterflyPACK/build

It has __init__, fit and predict similar to GaussianProcessRegressor.

You can also install things yourself:
https://github.com/pghysels/STRUMPACK (branch gpr)
https://github.com/liuyangzhuan/ButterflyPACK

Pieter

from strumpack.

yhtang avatar yhtang commented on June 12, 2024

@pghysels Thanks for the update! I'll try it on my workstation since I don't (yes I'm not joking) have an account on Cori yet. Will let you know as soon as possible!

from strumpack.

pghysels avatar pghysels commented on June 12, 2024

Ok. Let me know if you have issues with the installation.
We might also need to tune some parameters, we can look into this together.

from strumpack.

yhtang avatar yhtang commented on June 12, 2024

@pghysels How can I get a .so file? Currently, I can only get a .a library file after compilation.

from strumpack.

pghysels avatar pghysels commented on June 12, 2024

Add -DBUILD_SHARED_LIBS=ON to the cmake command.
Did you also build ButterflyPACK and enable support for that in STRUMPACK?

      -DTPL_ENABLE_BPACK=ON \
      -DTPL_BPACK_INCLUDE_DIRS="$BPACKHOME/SRC_DOUBLE/;$BPACKHOME/SRC_DOUBLECOMPLEX" \
      -DTPL_BPACK_LIBRARIES="-L$BPACKHOME/build/SRC_DOUBLE/ -ldbutterflypack -L$BPACKHOME/build/SRC_DOUBLECOMPLEX/ -lzbutterflypack" \

You can add

      -DSTRUMPACK_BUILD_TESTS=OFF \
      -DSTRUMPACK_C_INTERFACE=OFF \

to speed up compilation.

Pieter

from strumpack.

yhtang avatar yhtang commented on June 12, 2024

Hi @pghysels and @liuyangzhuan, when I tried to run the regressor using stock kernels from scikit-learn, I got some error that crashes the Python interpreter. Could you please take a look at the details as in #26?

In addition to that, I've done some work to make the regressor (at least) syntactically compatible with generic kernels. However, I guess it will be more efficient if we can figure out #26 first.

from strumpack.

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.